/* ============================================================
   Aguas de Choloma — Landing "Agua que fluye"
   ============================================================ */

:root {
  /* Water palette */
  --navy:    #052539;
  --navy-2:  #073854;
  --deep:    #0A4D74;
  --blue:    #0A82C4;
  --blue-2:  #1499D6;
  --cyan:    #18BEDC;
  --aqua:    #6FD6EC;
  --celeste: #A9E6F4;
  --foam:    #DCF3F9;
  --paper:   #F4FAFC;
  --white:   #FFFFFF;

  --ink:     #08222F;
  --ink-2:   #2D5468;
  --muted:   #5E7C8B;
  --line:    rgba(10,77,116,0.14);

  --grad-water: linear-gradient(135deg, #0A82C4 0%, #18BEDC 55%, #6FD6EC 100%);
  --grad-deep:  linear-gradient(160deg, #052539 0%, #073854 45%, #0A4D74 100%);

  --shadow-sm: 0 2px 10px rgba(8,34,47,0.06);
  --shadow:    0 16px 44px -18px rgba(8,52,80,0.34);
  --shadow-lg: 0 40px 90px -40px rgba(5,37,57,0.55);

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 30px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

/* El scroll suave se activa por JS tras la carga (app.js): si se define
   aquí, el navegador anima la restauración de scroll al recargar la página. */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { line-height: 1.6; margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--aqua); }
.eyebrow.on-dark::before { background: var(--cyan); }

/* ============================================================
   IMAGE PLACEHOLDERS (on-brand) — swap each .ph for a real <img>
   when you have photos. Aspect ratio comes from data-ar.
   ============================================================ */
.ph {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(233,247,252,0.82);
  background:
    radial-gradient(130% 130% at 78% 12%, rgba(24,190,220,0.42), transparent 55%),
    linear-gradient(150deg, #073854 0%, #0A4D74 48%, #0A82C4 100%);
  overflow: hidden;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 30% 75%, #000, transparent 72%);
}
.ph[data-ar="5/4"]  { aspect-ratio: 5/4; }
.ph[data-ar="4/5"]  { aspect-ratio: 4/5; }
.ph[data-ar="16/10"]{ aspect-ratio: 16/10; }
.ph[data-ar="16/9"] { aspect-ratio: 16/9; }
.ph-ico { width: 38px; height: 38px; opacity: 0.78; }
.ph-cap {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  max-width: 78%; line-height: 1.4; color: rgba(233,247,252,0.7);
}
/* Real photo (loaded from images/ by app.js) covers the placeholder. */
.ph > .ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* Posters/graphics shown whole, framed on the water gradient. */
.ph > .ph-contain { object-fit: contain; padding: 14px; box-sizing: border-box; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px var(--gutter);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(5,37,57,0.5);
  padding-block: 11px;
}
.brand {
  position: relative;
  display: block;
  width: 240px; height: 56px;
  flex: none;
}
.brand-logo {
  position: absolute; left: 0; top: 50%;
  display: block; height: 48px; width: auto;
  transform: translateY(-50%);
  transition: opacity .5s ease, transform .5s ease, height .4s ease;
  will-change: opacity, transform;
}
/* Logo horizontal blanco: visible al cargar, un poco más grande que el de la barra */
.brand-logo--mark { height: 56px; opacity: 1; }
/* Al hacer scroll, el blanco se reduce a la altura de la barra antes de cruzar al de color */
.nav.scrolled .brand-logo--mark { height: 48px; }
/* Logo horizontal a color: aparece cuando la barra blanca está visible */
.brand-logo--full {
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  pointer-events: none;
}
.nav.scrolled .brand-logo--mark {
  opacity: 0;
  transform: translateY(-50%) translateX(8px);
  pointer-events: none;
}
.nav.scrolled .brand-logo--full {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  font-size: 14.5px; font-weight: 600;
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  transition: color .25s, background .25s;
}
.nav-links a:hover { background: rgba(255,255,255,0.16); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { background: var(--foam); color: var(--deep); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 700;
  color: var(--white);
  background: var(--grad-water);
  border-radius: 12px;
  box-shadow: 0 12px 26px -12px rgba(10,130,196,0.75);
  transition: transform .25s, box-shadow .25s, opacity .4s ease;
  white-space: nowrap;
}
/* Oculto mientras se ve el hero (logo blanco); aparece al desplazar (barra blanca / logo a color) */
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(10,130,196,0.8); }
.nav-cta svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--grad-deep);
  overflow: hidden;
  isolation: isolate;
}
#water-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
/* Blurred photo backdrop (swap images/hero-bg.jpg for any photo). */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: #052539 url("images/hero-bg.jpg") center 32% / cover no-repeat;
  filter: blur(7px) saturate(120%) brightness(1.02);
  transform: scale(1.1);
}
/* Dark gradient over the photo so the text stays readable (darker at left). */
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, rgba(5,37,57,0.90) 0%, rgba(5,37,57,0.74) 36%, rgba(7,56,84,0.50) 70%, rgba(10,77,116,0.34) 100%),
    linear-gradient(180deg, rgba(5,37,57,0.12), rgba(5,37,57,0.50));
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  right: -12vw; top: -16vw;
  background: radial-gradient(circle, rgba(24,190,220,0.24), transparent 62%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--celeste);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #45E0A0; box-shadow: 0 0 0 4px rgba(69,224,160,0.25);
}
.hero h1 {
  margin-top: 26px;
  color: var(--white);
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

/* hero title typeface — Space Grotesk (definitiva) */
body[data-titlefont="grotesk"] .hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 .flow {
  background: linear-gradient(100deg, var(--cyan), var(--celeste) 60%, var(--aqua));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(233,247,252,0.82);
}

/* hero call-to-action buttons */
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn-primary, .hero-cta .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: #fff;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.hero-cta .btn-primary {
  background: var(--grad-water);
  box-shadow: 0 16px 34px -14px rgba(10,130,196,0.9);
}
.hero-cta .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(10,130,196,0.95); }
.hero-cta .btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.hero-cta .btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); border-color: rgba(111,214,236,0.55); }
.hero-cta svg { width: 19px; height: 19px; }

/* quick access cards */
.quick {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
}
.qcard {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px;
  border-radius: var(--r);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  color: var(--white);
  overflow: hidden;
  transition: transform .3s, background .3s, border-color .3s;
}
.qcard::after {
  content: "";
  position: absolute; right: -30%; top: -40%;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(24,190,220,0.5), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.qcard:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(111,214,236,0.5);
}
.qcard:hover::after { opacity: 1; }
.qcard .qicon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(24,190,220,0.18);
  color: var(--celeste);
}
.qcard .qicon svg { width: 24px; height: 24px; }
.qcard b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.qcard span { font-size: 13px; color: rgba(233,247,252,0.65); }
.qcard .arrow {
  position: absolute; top: 18px; right: 18px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
  color: var(--celeste);
}
.qcard:hover .arrow { opacity: 1; transform: translateX(0); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(233,247,252,0.6);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border-radius: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  position: relative;
}
.scroll-cue .mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 7px; border-radius: 3px;
  background: var(--celeste); transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; transform: translate(-50%,8px); } }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  position: relative;
  background: var(--white);
  margin-top: -1px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: clamp(40px, 6vw, 72px);
}
.stat { padding: 8px clamp(14px, 3vw, 40px); position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%;
  width: 1px; background: var(--line);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-water);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num .suf { font-size: 0.5em; }
.stat .label { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.stat .desc { margin-top: 3px; font-size: 13.5px; color: var(--muted); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 60px);
  color: var(--ink);
}
.section-head p { margin-top: 18px; font-size: clamp(16px,1.6vw,19px); color: var(--ink-2); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.svc {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.svc + .svc { margin-top: clamp(56px, 8vw, 110px); }
.svc.reverse { grid-template-columns: 1fr 1.05fr; }
.svc.reverse .svc-media { order: -1; }

.svc-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.svc-media .ph { display: grid; }
.svc-media .badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  background: rgba(5,37,57,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.svc-media .badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #45E0A0;
  box-shadow: 0 0 0 0 rgba(69,224,160,0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(69,224,160,0.6);} 70%{ box-shadow: 0 0 0 12px rgba(69,224,160,0);} 100%{ box-shadow:0 0 0 0 rgba(69,224,160,0);} }

.svc-num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--cyan);
}
.svc h3 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 46px); color: var(--ink); }
.svc p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 50ch; }
.svc-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.svc-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.svc-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  display: grid; place-items: center;
  background: var(--foam); color: var(--blue);
}
.svc-list .tick svg { width: 15px; height: 15px; }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote {
  position: relative;
  background: var(--grad-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.quote .ripple-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.quote .wrap { position: relative; z-index: 2; text-align: center; padding-block: clamp(72px,10vw,128px); }
.quote .mark {
  font-family: var(--font-display); font-size: 120px; line-height: 0.4;
  color: var(--cyan); opacity: 0.5; height: 50px; display: block;
}
.quote blockquote {
  margin: 0 auto; max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-size: clamp(30px, 5.4vw, 68px);
  line-height: 1.05; letter-spacing: -0.02em;
}
.quote blockquote .hl {
  background: linear-gradient(100deg, var(--cyan), var(--celeste));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote cite {
  display: block; margin-top: 28px;
  font-family: var(--font-body); font-style: normal;
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about-media { position: relative; }
.about-media .ph { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-media .float-card {
  position: absolute; right: -22px; bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.about-media .float-card .ring {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-water); color: var(--white);
}
.about-media .float-card b { font-family: var(--font-display); font-size: 24px; display:block; line-height: 1; }
.about-media .float-card span { font-size: 12.5px; color: var(--muted); }

.about-copy h2 { font-size: clamp(30px, 4.4vw, 54px); margin-top: 16px; color: var(--ink); }
.about-copy p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px;
  background: var(--foam); color: var(--deep);
  font-size: 13.5px; font-weight: 700;
}
.about-pill svg { width: 16px; height: 16px; }

/* ============================================================
   NEWS
   ============================================================ */
.news { background: var(--paper); }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(36px,5vw,52px); }
.ncard {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ncard .nbody { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ncard .ntag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); padding: 5px 11px; border-radius: 100px; background: var(--foam);
}
.ncard h4 { font-size: 20px; color: var(--ink); }
.ncard p { font-size: 14.5px; color: var(--muted); }
.ncard .nmeta {
  margin-top: auto; display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--deep);
}
.ncard .nmeta svg { width: 16px; height: 16px; transition: transform .3s; }
.ncard:hover .nmeta svg { transform: translateX(4px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: var(--blue);
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid var(--line);
  transition: background .25s, border-color .25s, transform .25s;
}
.btn-text:hover { background: var(--foam); border-color: var(--cyan); transform: translateY(-2px); }
.btn-text svg { width: 17px; height: 17px; }

/* ============================================================
   PAGOS EN LÍNEA (simulación)
   ============================================================ */
.pay { background: linear-gradient(180deg, var(--paper) 0%, #E6F4F9 100%); }
.pay-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
}
.pay-intro h2 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 52px); color: var(--ink); }
.pay-accent {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pay-lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 46ch; }
.pay-points { margin-top: 26px; }
.pay-demo-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px; padding: 14px 16px;
  background: rgba(240,180,41,0.12);
  border: 1px solid rgba(200,140,20,0.35);
  border-radius: var(--r-sm);
  font-size: 13.5px; color: #7A5410; line-height: 1.5;
}
.pay-demo-note svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: #B07A14; }

.pay-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pay-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.pay-secure {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--deep);
}
.pay-secure svg { width: 16px; height: 16px; color: var(--blue); }
.pay-steps {
  display: flex; gap: 4px; margin: 0; padding: 0; list-style: none;
  counter-reset: paystep;
}
.pay-steps li {
  counter-increment: paystep;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 100px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.pay-steps li::before {
  content: counter(paystep);
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px;
  background: rgba(10,77,116,0.10); color: var(--ink-2);
}
.pay-steps li.is-active { background: var(--foam); color: var(--deep); }
.pay-steps li.is-active::before { background: var(--grad-water); color: #fff; }
.pay-steps li.is-done { color: var(--blue); }
.pay-steps li.is-done::before { content: "✓"; background: #DDF5E8; color: #1A9D5C; }

.pay-pane { display: none; padding: 26px 26px 28px; }
.pay-pane.is-active { display: block; }

.pay-label { display: block; margin: 16px 0 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pay-pane .pay-label:first-child { margin-top: 0; }
.pay-input {
  width: 100%;
  padding: 13px 15px;
  font: 600 15.5px var(--font-body); color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pay-input::placeholder { color: var(--muted); font-weight: 500; }
.pay-input:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(24,190,220,0.16); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-hint { margin-top: 9px; font-size: 13px; color: var(--muted); }
.pay-error { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: #C0392B; }
.pay-brand { font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }

.pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px; border: 0; border-radius: 13px;
  font: 700 15.5px var(--font-body); color: #fff;
  background: var(--grad-water);
  box-shadow: 0 14px 30px -12px rgba(10,130,196,0.8);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(10,130,196,0.9); }
.pay-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.pay-btn-label b { font-weight: 800; }
.pay-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: payspin .7s linear infinite;
}
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px auto 0; padding: 8px 12px;
  border: 0; border-radius: 10px; background: transparent;
  font: 700 13.5px var(--font-body); color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pay-back:hover { background: var(--foam); color: var(--deep); }
.pay-back svg { width: 15px; height: 15px; }
#pay-pane-2 .pay-back { display: flex; }

.pay-summary {
  display: grid; gap: 0;
  margin-bottom: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.pay-sum-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 16px;
  font-size: 14px; color: var(--ink-2);
}
.pay-sum-row + .pay-sum-row { border-top: 1px solid var(--line); }
.pay-sum-row b { color: var(--ink); font-weight: 700; }
.pay-sum-total { background: var(--foam); }
.pay-sum-total span { font-weight: 700; color: var(--deep); }
.pay-sum-total b { font-family: var(--font-display); font-size: 19px; color: var(--deep); }

.pay-done { text-align: center; }
.pay-check {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 6px auto 18px;
  border-radius: 50%;
  background: #DDF5E8; color: #1A9D5C;
}
.pay-check svg { width: 30px; height: 30px; }
.pay-done h3 { font-size: 26px; color: var(--ink); }
.pay-done-sub { margin: 10px auto 20px; max-width: 38ch; font-size: 14.5px; color: var(--ink-2); }
.pay-done .pay-summary { text-align: left; }

.pay-foot {
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px; color: var(--muted); text-align: center;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--grad-deep); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.contact .hero-grid-lines { mask-image: radial-gradient(circle at 20% 80%, #000, transparent 75%); }
.contact-grid {
  position: relative; z-index: 2;
  display: grid; align-items: stretch;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 60px);
}
.contact-side { display: flex; flex-direction: column; justify-content: center; }
.contact-head { max-width: 540px; }
.contact-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 16px; color: var(--white); }
.contact-head h2 .flow {
  background: linear-gradient(100deg, var(--cyan), var(--celeste));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-head > p { margin: 18px 0 0; font-size: 17px; color: rgba(233,247,252,0.8); max-width: 56ch; }

.contact-actions {
  display: grid; gap: 14px; margin-top: 32px;
  grid-template-columns: 1fr;
}
.caction {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  transition: transform .25s, background .25s, border-color .25s;
}
.caction:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); border-color: rgba(111,214,236,0.5); }
.caction .cicon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; color: var(--white);
}
.caction.wa .cicon { background: #1FAE5A; }
.caction.tel .cicon { background: var(--grad-water); }
.caction.mail .cicon { background: rgba(24,190,220,0.2); color: var(--celeste); }
.caction .cicon svg { width: 24px; height: 24px; }
.caction b { display: block; font-family: var(--font-display); font-size: 18px; }
.caction span { font-size: 13.5px; color: rgba(233,247,252,0.62); }
.caction .go { margin-left: auto; color: var(--celeste); opacity: .7; }

.info-row { display: flex; gap: 15px; }
.info-row .ri {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(24,190,220,0.16); color: var(--celeste);
}
.info-row .ri svg { width: 20px; height: 20px; }
.info-row b { font-family: var(--font-display); font-size: 15.5px; display: block; margin-bottom: 5px; }
.info-row p { font-size: 14.5px; color: rgba(233,247,252,0.72); line-height: 1.5; }

/* Componente de oficinas: toggle + mapa + detalle */
.offices {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.offices-tabs {
  display: flex; gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.otab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 18px; border-radius: 12px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700;
  color: rgba(233,247,252,0.65);
  background: transparent; border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.otab .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; transition: background .25s, box-shadow .25s, opacity .25s; }
.otab:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.otab.is-active {
  color: var(--white);
  background: rgba(24,190,220,0.16);
  border-color: rgba(111,214,236,0.4);
}
.otab.is-active .dot { background: #45E0A0; opacity: 1; box-shadow: 0 0 0 4px rgba(69,224,160,0.22); }

.offices-body { display: flex; flex-direction: column; flex: 1; }
.offices-map { position: relative; flex: 1; min-height: 320px; background: rgba(5,37,57,0.5); }
.offices-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.15) contrast(1.02);
}
.offices-detail {
  padding: 26px 28px 28px;
  display: grid; gap: 22px 28px; align-content: start;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.offices-detail .info-row .ri { width: 44px; height: 44px; }
.offices-detail .info-row .ri svg { width: 22px; height: 22px; }
.offices-detail .info-row b { font-size: 17px; }
.offices-detail .info-row p { font-size: 15.5px; }
.offices-detail .map-open {
  grid-column: 1 / -1;
  justify-self: stretch; justify-content: center;
  padding: 15px 26px; font-size: 15.5px;
}
.offices-detail .map-open svg { width: 19px; height: 19px; }
.map-open {
  justify-self: start; align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #fff;
  background: var(--grad-water);
  box-shadow: 0 14px 30px -12px rgba(10,130,196,0.9);
  transition: transform .25s, box-shadow .25s;
}
.map-open:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(10,130,196,0.95); }
.map-open svg { width: 17px; height: 17px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(233,247,252,0.7); }
.footer .wrap { padding-block: clamp(48px, 6vw, 72px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: 220px; height: auto; }
.footer-brand p { margin-top: 20px; font-size: 14.5px; max-width: 34ch; }
.fcol h5 {
  font-family: var(--font-display); font-size: 15px; color: var(--white);
  margin: 0 0 16px; font-weight: 700;
}
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fcol a { font-size: 14.5px; transition: color .2s; }
.fcol a:hover { color: var(--celeste); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: rgba(233,247,252,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .25s, color .25s, transform .25s;
}
.socials a:hover { background: var(--grad-water); color: var(--white); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { padding-top: 110px; padding-bottom: 70px; }
  .quick { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .quick .qcard:last-child { grid-column: 1 / -1; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat + .stat:nth-child(3)::before, .stat + .stat::before { display: none; }
  .svc, .svc.reverse { grid-template-columns: 1fr; }
  .svc.reverse .svc-media { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: 1fr; gap: 40px; }
  .pay-box { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-head { max-width: 640px; margin-inline: auto; text-align: center; }
  .contact-head > p { margin-inline: auto; }
  .contact-actions { max-width: 560px; width: 100%; margin-inline: auto; }
  .offices-map { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle {
    flex: none;
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    color: var(--white); cursor: pointer;
  }
  /* "Llamar" pasa a solo icono: el texto es un nodo suelto, se oculta con font-size 0 */
  .nav-cta { flex: none; font-size: 0; gap: 0; padding: 13px; border-radius: 12px; }
  .nav-cta svg { width: 20px; height: 20px; }
  .nav.scrolled .nav-toggle { background: var(--foam); color: var(--deep); border-color: transparent; }
  .brand { width: 206px; height: 48px; }
  .brand-logo { height: 41px; }
  .brand-logo--mark { height: 48px; }
  .nav.scrolled .brand-logo--mark { height: 41px; }
  .hero-inner { padding-top: 104px; padding-bottom: 48px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.1em; padding: 7px 14px; }
  .hero h1 { margin-top: 22px; }
  .hero-sub { margin-top: 20px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .quick { margin-top: 32px; gap: 12px; }
  .scroll-cue { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .offices-detail { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .about-media .float-card { right: 12px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .qcard { padding: 18px; }
  .pay-head { padding: 14px 18px; }
  .pay-pane { padding: 20px 18px 22px; }
  .pay-steps li { padding: 6px 8px; font-size: 0; gap: 0; }
  .pay-steps li.is-active { font-size: 12.5px; gap: 7px; }
  .quick { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .brand { width: 176px; height: 41px; }
  .brand-logo { height: 35px; }
  .brand-logo--mark { height: 41px; }
  .nav.scrolled .brand-logo--mark { height: 35px; }
}
@media (max-width: 360px) {
  .nav { padding-inline: 12px; gap: 8px; }
  .brand { width: 160px; }
  .brand-logo { height: 32px; }
  .brand-logo--mark { height: 38px; }
  .nav.scrolled .brand-logo--mark { height: 32px; }
}
