@import url('fonts.css');

/* ==================================================================
   Carmen Santa María · Consultoría de gestión empresarial
   Paleta extraída del logotipo:
     navy #124063 · turquesa #2FB2C1 · azul claro #A1C8D5
   ================================================================== */

:root {
  /* Marca */
  --navy:        #124063;
  --navy-900:    #0a2439;
  --navy-800:    #0e3252;
  --navy-700:    #16507b;
  --turq:        #2FB2C1;
  --turq-600:    #1d95a4;
  --turq-400:    #55c6d3;
  --turq-300:    #7ed0da;
  --sky:         #A1C8D5;
  --sky-100:     #e2f0f4;

  /* Neutros */
  --ink:         #10293c;
  --body:        #4a6274;
  --muted:       #7b93a3;
  --line:        #dfeaef;
  --bg:          #ffffff;
  --bg-soft:     #f5fafb;
  --bg-tint:     #eef7f9;

  /* Sistema */
  --radius:      20px;
  --radius-lg:   30px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 10px rgba(18, 64, 99, .06);
  --shadow:      0 16px 44px -20px rgba(18, 64, 99, .3);
  --shadow-lg:   0 40px 80px -32px rgba(10, 36, 57, .45);
  --shadow-glow: 0 30px 70px -28px rgba(47, 178, 193, .55);
  --ease:        cubic-bezier(.22, 1, .36, 1);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-h: 82px;

  /* Textura de grano, reutilizada en las secciones oscuras */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--turq); color: #fff; }

/* --------------------------- Tipografía -------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 1.7rem + 5.4vw, 6rem); font-weight: 400; }
h2 { font-size: clamp(2.15rem, 1.4rem + 3.1vw, 3.7rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); }

p { text-wrap: pretty; }

/* --------------------------- Justificado -------------------------- */
/* Texto corrido a bandera justificada. La partición de palabras es
   imprescindible: sin ella el justificado abre huecos enormes entre
   palabras. Se apoya en lang="es" del <html>. */
.about__body p,
.section-head p,
.card p,
.step p,
.faq__body p,
.contact__aside p,
.prose p,
.footer__grid p,
.cta-band p,
.hero__lede {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;   /* no partir palabras cortas */
}

/* Los bloques centrados no se justifican: quedarían descuadrados */
.section-head--center p,
.cta-band p,
.faq__foot,
.form__note {
  text-align: center;
  hyphens: manual;
}

/* En columnas estrechas el justificado empeora la lectura */
@media (max-width: 560px) {
  .about__body p,
  .section-head p,
  .card p,
  .step p,
  .faq__body p,
  .contact__aside p,
  .prose p,
  .footer__grid p,
  .hero__lede {
    text-align: left;
    hyphens: manual;
  }
}

/* Texto con degradado de marca */
.grad-text {
  background: linear-gradient(100deg, var(--turq-400) 0%, var(--sky) 55%, var(--turq-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--dark {
  background: linear-gradient(100deg, var(--turq) 0%, var(--navy) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--turq-600);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.eyebrow--center::after {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem);
  line-height: 1.6;
  color: var(--body);
}

.accent { color: var(--turq); }

/* ---------------------------- Layout ----------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 3rem + 9vw, 9rem);
}
.section--soft { background: var(--bg-soft); }
.section--tint {
  background: linear-gradient(170deg, var(--bg-tint) 0%, #f8fdfe 100%);
}

.section-head { max-width: 48rem; margin-bottom: clamp(2.75rem, 4.5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.2rem; }

/* Monograma decorativo de fondo */
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .045;
  z-index: 0;
  width: clamp(320px, 42vw, 620px);
}
.watermark--right { top: -4%; right: -8%; }
.watermark--left  { bottom: -10%; left: -9%; }

.section > .shell { position: relative; z-index: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--navy); color: #fff;
  padding: .8rem 1.3rem; border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------------------------- Botones ---------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Botón principal.
   Turquesa sólido con texto azul marino: es el único par de la paleta que
   mantiene buen contraste (7:1) tanto sobre fondo claro como sobre el hero
   oscuro. Un degradado que terminase en azul marino se difuminaría contra
   el fondo del hero, que es de ese mismo color. */
.btn--primary {
  background: var(--turq);
  color: var(--navy-900);
  font-weight: 500;
  /* Borde en turquesa oscuro: define el contorno también sobre fondo blanco,
     donde el relleno por sí solo no llega al contraste recomendado */
  border-color: var(--turq-600);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset,
              0 8px 20px -10px rgba(47, 178, 193, .65);
}
/* Brillo suave que barre de izquierda a derecha al pasar el ratón */
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover {
  background: var(--turq-400);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset,
              0 14px 30px -12px rgba(47, 178, 193, .85);
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--sky);
}
.btn--ghost:hover {
  border-color: var(--turq);
  color: var(--turq-600);
  background: var(--bg-tint);
}

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: var(--shadow-lg); }

/* Sobre fondo oscuro: cristal translúcido */
.btn--glass {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5);
}

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--turq-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------------------------- Cabecera --------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(18, 64, 99, .6);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Distintivo de marca: monograma en blanco sobre degradado.
   Garantiza contraste a cualquier tamaño, también en móvil. */
.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand__badge {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--turq) 0%, var(--navy) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(18, 64, 99, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brand:hover .brand__badge {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 12px 24px -10px rgba(47, 178, 193, .9);
}
.brand__badge img { width: 68%; height: 68%; object-fit: contain; }

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.brand__name em { font-style: normal; color: var(--turq-600); }
.brand__tag {
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .38rem;
  white-space: nowrap;
  transition: color .4s var(--ease);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__link {
  position: relative;
  font-size: .94rem;
  color: var(--ink);
  padding-block: .4rem;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--turq);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--navy); font-weight: 500; }

.nav__cta { padding: .72rem 1.45rem; font-size: .9rem; }

/* --- Estado sobre el hero oscuro (solo en la portada, sin scroll) --- */
.header--over-hero:not(.is-stuck):not(.is-nav-open) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, .1);
}
.header--over-hero:not(.is-stuck):not(.is-nav-open) .brand__name { color: #fff; }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .brand__name em { color: var(--turq-300); }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .brand__tag { color: rgba(255, 255, 255, .55); }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .nav__link { color: rgba(255, 255, 255, .82); }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .nav__link.is-active { color: #fff; }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .burger { border-color: rgba(255, 255, 255, .3); }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .burger span,
.header--over-hero:not(.is-stuck):not(.is-nav-open) .burger span::before,
.header--over-hero:not(.is-stuck):not(.is-nav-open) .burger span::after { background: #fff; }
.header--over-hero:not(.is-stuck):not(.is-nav-open) .brand__badge {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: none;
}

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: 13px; cursor: pointer;
  transition: border-color .3s var(--ease);
}
.burger span {
  display: block; position: relative;
  width: 19px; height: 1.5px; background: var(--navy);
  transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0;
  width: 19px; height: 1.5px; background: var(--navy);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent !important; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------ Hero ----------------------------- */
/* La portada arranca por debajo de la cabecera: el hero sube para que el
   degradado llegue hasta el borde superior y la cabecera flote encima. */
.main--flush { margin-top: calc(var(--header-h) * -1); }

.hero {
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 2rem + 7vw, 6.5rem))
                 clamp(7rem, 5rem + 10vw, 12rem);
  background: linear-gradient(165deg, #0d3350 0%, var(--navy-900) 55%, #071d2f 100%);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}

/* Aurora: manchas de color que derivan muy lentamente */
.aurora {
  position: absolute;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: 4%; right: 6%;
  background: radial-gradient(circle, rgba(47, 178, 193, .58), transparent 70%);
  animation: drift-a 24s var(--ease) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 40vw; height: 40vw; min-width: 330px; min-height: 330px;
  bottom: 0%; left: 2%;
  background: radial-gradient(circle, rgba(22, 80, 123, .85), transparent 70%);
  animation: drift-b 30s var(--ease) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 32vw; height: 32vw; min-width: 260px; min-height: 260px;
  top: 42%; left: 38%;
  background: radial-gradient(circle, rgba(161, 200, 213, .3), transparent 70%);
  animation: drift-c 27s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-9%, 12%, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(12%, -10%, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(-14%, -8%, 0) scale(.88); } }

/* Grano sutil sobre el degradado */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Onda de transición hacia la sección siguiente */
.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(48px, 7vw, 110px);
  z-index: 1;
  fill: var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.hero .eyebrow { color: var(--turq-300); }

.hero h1 { color: #fff; margin-bottom: 1.7rem; }
.hero h1 .grad-text {
  display: block;
  font-style: italic;
  font-weight: 300;
}

.hero__lede {
  max-width: 35rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, .74);
}
.hero__lede strong { color: #fff; font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.7rem + 1.7vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(120deg, #fff 0%, var(--turq-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stat span {
  display: block;
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  margin-top: .5rem;
  max-width: 13rem;
}

/* Tarjeta de cristal del hero */
.hero__visual { position: relative; }

.hero__card {
  position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.2rem + 2.2vw, 3rem);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  animation: float-card 9s ease-in-out infinite alternate;
}
@keyframes float-card { to { transform: translateY(-14px); } }

/* Filo luminoso superior */
.hero__card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
}

.hero__card-logo {
  width: clamp(150px, 42%, 200px);
  margin: 0 auto 2rem;
}
.hero__card h2 {
  font-size: 1.3rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.005em;
  text-align: center;
  margin-bottom: 1.6rem;
  color: #fff;
}
.check-list { display: grid; gap: 1rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}
.check-list li::before {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  margin-top: .12rem;
  border-radius: 50%;
  background: rgba(47, 178, 193, .22)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ed0da' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  border: 1px solid rgba(47, 178, 193, .35);
}
.hero__card-foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------------------- Cinta de palabras clave ------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.5vw, 3.2rem);
  padding-right: clamp(1.6rem, 3.5vw, 3.2rem);
  flex: none;
}
.ticker__item {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem);
  color: var(--navy);
  opacity: .78;
  white-space: nowrap;
}
.ticker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turq);
  flex: none;
  opacity: .65;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------- Servicios -------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.75rem);
}

/* Tarjeta con borde degradado y resplandor que sigue al cursor */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.2rem + 1.2vw, 2.3rem);
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(18, 64, 99, .05), 0 10px 30px -22px rgba(18, 64, 99, .5);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* Borde: degradado enmascarado, se enciende al pasar el ratón */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--line), var(--line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: background .5s var(--ease);
}
/* Resplandor bajo el cursor */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              rgba(47, 178, 193, .1), transparent 65%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before {
  background: linear-gradient(150deg, var(--turq), var(--sky) 45%, var(--navy));
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--turq) 0%, var(--navy) 100%);
  margin-bottom: 1.5rem;
  color: #fff;
  flex: none;
  box-shadow: 0 12px 26px -14px rgba(47, 178, 193, .95);
  transition: transform .45s var(--ease);
}
.card:hover .card__icon { transform: translateY(-2px) rotate(-5deg); }
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: .75rem; }
.card p { font-size: .95rem; margin-bottom: 1.25rem; }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.6rem;
}
.card__tags li {
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--navy-700);
  background: var(--bg-tint);
  border-radius: var(--radius-pill);
  padding: .32rem .8rem;
}

.card__cta { margin-top: auto; }

/* ------------------------------ Sobre ---------------------------- */
.about { overflow: hidden; }
.about__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about__figure {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  background: linear-gradient(155deg, #fff 0%, var(--bg-tint) 100%);
  box-shadow: var(--shadow);
  text-align: center;
}
/* Halo de color detrás de la tarjeta */
.about__figure::before {
  content: '';
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 178, 193, .3), transparent 68%);
  filter: blur(46px);
}
.about__figure img { width: min(100%, 260px); margin-inline: auto; }
.about__figure figcaption {
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__body > * + * { margin-top: 1.2rem; }
.about__body h2 { margin-bottom: 1.5rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  margin-top: 2.4rem !important;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.pillars h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.pillars h3::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--turq), var(--navy));
  flex: none;
}
.pillars p { font-size: .89rem; line-height: 1.55; }

/* ----------------------------- Método ---------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(140deg, var(--turq), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step::after {
  content: '';
  position: absolute;
  top: 1.5rem; left: 4.2rem; right: -1.3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--sky), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; margin-bottom: .6rem; }
.step p { font-size: .93rem; }

/* --------------------- Preguntas frecuentes ---------------------- */
.faq {
  display: grid;
  gap: .9rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.faq__item[open] {
  border-color: var(--sky);
  box-shadow: var(--shadow);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.2rem, 3vw, 1.8rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  font-weight: 500;
  color: var(--navy);
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--turq-600); }

/* Indicador + / − dibujado en CSS */
.faq__item summary::after {
  content: '';
  width: 26px; height: 26px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--bg-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d95a4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--sky-100);
}

.faq__body {
  padding: 0 clamp(1.2rem, 3vw, 1.8rem) 1.5rem;
}
.faq__body p {
  font-size: .95rem;
  line-height: 1.68;
}
.faq__body p + p { margin-top: .8rem; }

.faq__foot {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .95rem;
  color: var(--muted);
}
.faq__foot .link-arrow { margin-left: .4rem; }

/* ---------------------------- Contacto --------------------------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #0d3350 0%, var(--navy-900) 60%, #071d2f 100%);
  color: rgba(255, 255, 255, .78);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact h2, .contact h3 { color: #fff; }
.contact .eyebrow { color: var(--turq-300); }

.contact__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__aside p { margin-top: 1.2rem; }
/* .lede fija un color pensado para fondo claro; sobre el azul marino
   hay que devolverle el color heredado de la sección */
.contact .lede { color: rgba(255, 255, 255, .8); }

.contact__list { display: grid; gap: 1.15rem; margin-top: 2.6rem; }
.contact__item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__item-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  color: var(--turq-300);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.contact__item:hover .contact__item-icon {
  background: rgba(47, 178, 193, .18);
  border-color: rgba(47, 178, 193, .45);
}
.contact__item-icon svg { width: 20px; height: 20px; }

/* Se selecciona solo el rótulo (dentro del div de texto), no el <span> del
   icono: si no, su «display: block» ganaba por especificidad al «display:
   grid» del cuadro y el icono se descolocaba a la esquina superior */
.contact__item > div > span {
  display: block;
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.contact__item a, .contact__item strong {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  word-break: break-word;
}
.contact__item a { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contact__item a:hover { border-color: var(--turq-300); color: var(--turq-300); }

/* Formulario */
.form {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7);
  color: var(--body);
}
.form h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form > p { font-size: .9rem; margin-bottom: 1.9rem; }

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--navy);
}
.field label .req { color: var(--turq); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .9rem 1.05rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b93a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 17px;
  padding-right: 2.7rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .75; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--turq);
  box-shadow: 0 0 0 4px rgba(47, 178, 193, .14);
}
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: #d9534f;
  background: #fdf5f5;
}
.field .error {
  font-size: .78rem;
  color: #c0403c;
  min-height: 1em;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}
.consent input {
  width: 19px; height: 19px;
  margin-top: .15rem;
  flex: none;
  accent-color: var(--turq);
  cursor: pointer;
}
.consent a { color: var(--turq-600); border-bottom: 1px solid var(--sky); }
.consent a:hover { border-color: var(--turq); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0; width: 0;
  overflow: hidden;
}

.form__submit { grid-column: 1 / -1; margin-top: .5rem; }
.form__submit .btn { width: 100%; padding-block: 1.1rem; }
.btn.is-loading { pointer-events: none; opacity: .72; }
.btn.is-loading .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: .75;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__note {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  margin-top: .3rem;
}

.form__alert {
  grid-column: 1 / -1;
  display: none;
  gap: .7rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  font-size: .89rem;
  line-height: 1.5;
  margin-bottom: .4rem;
}
.form__alert.is-visible { display: flex; }
.form__alert svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
.form__alert--ok  { background: #e8f7f3; color: #14705c; border: 1px solid #b6e4d8; }
.form__alert--err { background: #fdeeee; color: #a83a36; border: 1px solid #f3c9c8; }

/* ------------------------------ CTA ------------------------------ */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
  background: linear-gradient(112deg, var(--turq) 0%, var(--navy) 55%, var(--navy-900) 100%);
  color: #fff;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .17;
  mix-blend-mode: overlay;
}
.cta-band h2 { color: #fff; margin-bottom: 1.1rem; }
.cta-band p { max-width: 40rem; margin: 0 auto 2.2rem; color: rgba(255, 255, 255, .85); }

/* ------------------------------ Pie ------------------------------ */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .58);
  padding-block: clamp(3.5rem, 2rem + 4vw, 5rem) 2rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__logo { width: 180px; margin-bottom: 1.4rem; }
.footer__grid p { max-width: 30rem; }

.footer h4 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer__links { display: grid; gap: .65rem; }
.footer__links a { transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--turq-300); }

.footer__social { display: flex; gap: .65rem; margin-top: 1.7rem; }
.footer__social a {
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}
.footer__social a:hover {
  background: var(--turq);
  border-color: var(--turq);
  transform: translateY(-3px);
}
/* Los glifos se dibujan centrados dentro de un lienzo de 24×24 */
.footer__social svg { width: 20px; height: 20px; display: block; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.9rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .42);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__bottom a:hover { color: var(--turq-300); }

/* -------------------- Páginas legales (interior) ------------------ */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 380px at 82% 0%, rgba(47, 178, 193, .16), transparent 62%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.prose { max-width: 47rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
.prose h2 {
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  margin-top: 2.8rem;
  margin-bottom: .9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 500;
  margin-top: 1.8rem;
  margin-bottom: .5rem;
}
.prose p, .prose ul, .prose ol { margin-bottom: 1.05rem; font-size: .97rem; }
.prose ul { list-style: none; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turq);
}
.prose a { color: var(--turq-600); border-bottom: 1px solid var(--sky); }
.prose a:hover { border-color: var(--turq); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: .92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { color: var(--navy); font-weight: 500; background: var(--bg-soft); }
.prose__scroll { overflow-x: auto; }

.todo {
  background: #fff8e6;
  border: 1px solid #f0dca8;
  border-left: 3px solid #e0b23c;
  border-radius: 13px;
  padding: 1rem 1.2rem;
  font-size: .89rem;
  color: #7a5c14;
  margin-bottom: 1.6rem;
}
.todo strong { color: #5e4610; }

/* ----------------------- Página de gracias ----------------------- */
.thanks {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(800px 460px at 50% 0%, rgba(47, 178, 193, .16), transparent 62%),
    #fff;
}
.thanks__icon {
  width: 88px; height: 88px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--turq), var(--navy));
  display: grid; place-items: center;
  box-shadow: 0 22px 46px -18px rgba(47, 178, 193, .95);
}
.thanks__icon svg { width: 40px; height: 40px; stroke: #fff; }
.thanks p { max-width: 36rem; margin: 1.2rem auto 2.4rem; }

/* --------------------- Animaciones de entrada -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 1000px) {
  .hero__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .about__figure { max-width: 400px; margin-inline: auto; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .step::after { display: none; }
  .watermark { display: none; }
}

@media (max-width: 880px) {
  .burger { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -28px rgba(18, 64, 99, .6);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path .5s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 1.05rem 0;
    font-size: 1.05rem;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.6rem; width: 100%; padding-block: 1rem; }

  body.nav-open { overflow: hidden; }

  /* Con el menú abierto la cabecera pasa siempre a fondo claro */
  .header.is-nav-open {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
  }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }

  .brand__tag { display: none; }
  .brand__badge { width: 40px; height: 40px; border-radius: 12px; }
  .brand__name { font-size: 1.25rem; }

  .hero { padding-bottom: clamp(5rem, 14vw, 7rem); }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 1.6rem 2rem; }
  .hero__stat { min-width: 42%; }
  .hero__card { animation: none; }

  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}

/* -------------------- Accesibilidad / impresión ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .aurora span, .hero__card, .ticker__track { animation: none !important; }
}

@media (prefers-contrast: more) {
  :root { --body: #2c4356; --muted: #536877; --line: #b9ccd6; }
}

@media print {
  .header, .footer, .cta-band, .form, .burger, .ticker,
  .aurora, .hero__wave, .watermark { display: none !important; }
  body { color: #000; }
  .hero, .contact { background: #fff !important; color: #000 !important; }
  .hero h1, .hero__lede, .contact h2 { color: #000 !important; }
  .section { padding-block: 1.5rem; }
}
