/* ===================== TOKENS ===================== */
:root {
  --navy: #1E3A6E;
  --navy-deep: #16294F;
  --navy-800: #16294F;
  --gold: #F5B82E;
  --gold-dark: #e0a415;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;

  --ink: #14213d;
  --text: #33415c;
  --muted: #64748b;
  --line: #e6eaf1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 12px 30px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.16);

  --max: 1160px;
  --pad: clamp(1.1rem, 4vw, 2rem);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-whatsapp .wa-icon { width: 22px; height: 22px; fill: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}
.brand-logo { width: auto; height: 46px; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0.4rem; }
.nav-menu a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-menu a:hover { background: var(--bg-soft); }
.nav-menu a.nav-cta {
  background: var(--gold);
  color: var(--navy-deep);
}
.nav-menu a.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 184, 46, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(245, 184, 46, 0.14);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero-sub strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.hero-badges li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-deep);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9);
}
.hero-badges li::after {
  content: "";
  position: absolute;
  left: 5px; top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 5px; height: 9px;
  border: solid var(--navy-deep);
  border-width: 0 2px 2px 0;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 5.4;
  object-fit: cover;
  object-position: center 88%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%; height: 62%;
  background: var(--gold);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.9;
}

/* ===================== SECTIONS ===================== */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background:
    radial-gradient(900px 400px at 15% -20%, rgba(245,184,46,0.18), transparent 60%),
    var(--navy);
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.eyebrow--center { display: inline-block; }
.eyebrow--light { color: var(--gold); background: rgba(245, 184, 46, 0.18); }
.section-lead { margin-top: 0.9rem; color: var(--muted); font-size: 1.08rem; }
.section-lead--light { color: rgba(255,255,255,0.82); }

/* ===================== SERVICE CARDS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.28rem; margin-bottom: 0.55rem; color: var(--navy); }
.card p { color: var(--text); font-size: 1rem; }

/* ===================== TRUST ===================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.trust-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform .22s ease, background .22s ease;
}
.trust-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.trust-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
}
.trust-icon svg { width: 32px; height: 32px; }
.trust-item h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.trust-item p { color: rgba(255,255,255,0.78); font-size: 0.96rem; }

/* ===================== GALLERY ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===================== COBERTURA ===================== */
.cobertura-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.cobertura-copy h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.cobertura-copy > p { color: var(--text); margin-bottom: 1.4rem; }
.coverage-list { display: grid; gap: 0.7rem; margin-bottom: 1.2rem; }
.coverage-list li {
  display: flex; flex-direction: column;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.coverage-list li span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.coverage-note { font-size: 0.96rem; color: var(--muted); font-style: italic; }

.cobertura-map {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}
.map-svg { width: 100%; max-width: 420px; height: auto; }
.map-city text { font-family: var(--font-head); font-weight: 600; font-size: 13px; fill: var(--navy); }
.map-hub-label { font-family: var(--font-head); font-weight: 800; font-size: 14px; fill: var(--navy-deep); }
.map-pulse { transform-origin: 200px 168px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ===================== CONTACTO ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  color: #fff;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
a.contact-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); border-color: var(--gold); }
.contact-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--gold);
  color: var(--navy-deep);
  margin-bottom: 0.7rem;
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-card--wa .contact-icon { background: var(--whatsapp); }
.contact-card--wa .contact-icon .wa-icon { fill: #fff; }
.contact-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.contact-value--link:hover { color: var(--gold); }
.contact-cta { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 0.35rem; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.footer-brand img {
  height: 52px; width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.95rem; max-width: 34ch; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; transition: color .18s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.95rem; }
.footer-hours { margin-top: 0.8rem; color: var(--gold); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 0;
  font-size: 0.88rem;
  text-align: center;
}

/* ===================== FLOATING WHATSAPP ===================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover { background: var(--whatsapp-dark); transform: translateY(-3px); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; }
.wa-float .wa-float-label { white-space: nowrap; }

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children within a grid */
.cards .reveal:nth-child(2), .trust-grid .reveal:nth-child(2),
.contact-grid .reveal:nth-child(2), .gallery .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .trust-grid .reveal:nth-child(3),
.contact-grid .reveal:nth-child(3), .gallery .reveal:nth-child(3) { transition-delay: .16s; }
.trust-grid .reveal:nth-child(4), .contact-grid .reveal:nth-child(4),
.gallery .reveal:nth-child(4) { transition-delay: .24s; }
.gallery .reveal:nth-child(5) { transition-delay: .32s; }
.gallery .reveal:nth-child(6) { transition-delay: .40s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; max-width: 460px; margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cobertura-inner { grid-template-columns: 1fr; }
  .cobertura-copy { order: 2; }
  .cobertura-map { order: 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item { aspect-ratio: 3 / 4; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.8rem var(--pad) 1.2rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path .3s ease, opacity .25s ease;
  }
  .nav-menu.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.85rem 1rem; }
  .nav-menu a.nav-cta { text-align: center; margin-top: 0.3rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .gallery-item { aspect-ratio: 3 / 4; }
  .wa-float .wa-float-label { display: none; }
  .wa-float { padding: 0.9rem; }
  .btn { width: 100%; }
}

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map-pulse { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
