/* ============================================================
   QUANTIC — Sistema de diseño
   Base: porcelana fría · tinta azul profunda · cian Quantic
   Divisiones: Salud (cian) · Recovery (coral infrarrojo) · Pet (salvia)
   Tipografía: Fraunces (display) + Instrument Sans (texto)
   ============================================================ */

:root {
  /* Superficie */
  --paper:    #F6F8F9;
  --paper-2:  #ECF1F3;
  --card:     #FFFFFF;
  --night:    #0B1822;
  --night-2:  #10222F;

  /* Tinta */
  --ink:      #0D1B26;
  --ink-2:    #3D5361;
  --ink-3:    #6E8290;

  /* Marca */
  --brand:      #0E80B6;   /* cian profundo, uso general */
  --brand-deep: #0A5E88;   /* enlaces y texto pequeño */
  --brand-glow: #38C6F4;   /* cian vivo sobre oscuro */
  --brand-soft: #E3F2F9;   /* lavados de fondo */

  /* Divisiones */
  --ac: var(--brand);
  --ac-deep: var(--brand-deep);
  --ac-soft: var(--brand-soft);

  /* Geometría y ritmo */
  --r-lg: 2rem;
  --r-md: 1.4rem;
  --r-sm: .9rem;
  --sect: clamp(5.5rem, 14vw, 10rem);
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --wrap: 76rem;

  /* Movimiento */
  --ease: cubic-bezier(.32,.72,0,1);
  --t-med: .65s var(--ease);
  --t-slow: .9s var(--ease);

  /* Tipos */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
}

[data-theme="recovery"] {
  --ac: #DE4B2C; --ac-deep: #B03A20; --ac-soft: #FBEAE4;
}
[data-theme="pet"] {
  --ac: #3E8E6E; --ac-deep: #2F6E55; --ac-soft: #E6F2ED;
}

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 48em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ac-deep); text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); }
.section--tight { padding-block: calc(var(--sect) * .62); }

/* ---------- Tipografía ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 560; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 5.8vw, 3.3rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 3.2vw, 1.65rem); line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
p { text-wrap: pretty; }
.muted { color: var(--ink-2); }
em.q { font-style: italic; font-family: var(--f-display); font-weight: 480; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .6875rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ac-deep);
  padding: .5em 1.1em; border-radius: 99px;
  background: var(--ac-soft);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--ac); }

.label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .55em .6em .55em 1.5em;
  border-radius: 99px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  transition: transform var(--t-med), background var(--t-med), box-shadow var(--t-med);
  box-shadow: 0 14px 34px -18px rgba(13,27,38,.55);
}
.btn:hover { transform: translateY(-2px); background: var(--night-2); }
.btn:active { transform: scale(.98); }
.btn__ico {
  width: 2.3em; height: 2.3em; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  transition: transform var(--t-med), background var(--t-med);
}
.btn__ico svg { width: 1em; height: 1em; }
.btn:hover .btn__ico { transform: translate(3px,-2px) scale(1.06); background: var(--ac); }
.btn--ac { background: var(--ac-deep); }
.btn--ac:hover { background: var(--ac); }
.btn--ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid rgba(13,27,38,.16);
}
.btn--ghost:hover { background: rgba(13,27,38,.045); }
.btn--ghost .btn__ico { background: rgba(13,27,38,.07); }
.btn--ghost:hover .btn__ico { background: var(--ac-soft); }
.btn--wa { background: #25D366; color: #fff; box-shadow: 0 14px 34px -18px rgba(37,211,102,.7); }
.btn--wa:hover { background: #1FB558; }
.btn--wa .btn__ico { background: #fff; color: #25D366; }
.btn--wa:hover .btn__ico { background: #fff; color: #128C7E; }
.btn--ondark { background: #fff; color: var(--ink); }
.btn--ondark:hover { background: var(--paper-2); }
.btn--ondark .btn__ico { background: var(--ink); color: #fff; }

/* ---------- Nav flotante ---------- */
.nav {
  position: fixed; top: max(.9rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 1.6rem), 68rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .65rem .55rem 1.15rem;
  border-radius: 99px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(13,27,38,.07);
  box-shadow: 0 18px 50px -28px rgba(13,27,38,.35);
  transition: box-shadow var(--t-med), background var(--t-med);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: none; align-items: center; gap: 1.7rem; }
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color var(--t-med);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta { display: none; }
@media (min-width: 64em) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; font-size: .9rem; padding: .5em .55em .5em 1.3em; }
  .nav__burger { display: none; }
}

/* Grupo derecho de la nav + selector de idioma */
.nav__right { display: flex; align-items: center; gap: .55rem; flex: none; }
.nav__lang {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid rgba(13,27,38,.14);
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.nav__lang svg { width: 100%; height: 100%; flex: none; display: block; border-radius: 50%; }
.nav__lang:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(13,27,38,.45); }

/* Hamburguesa → X */
.nav__burger {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); position: relative; flex: none;
}
.nav__burger span {
  position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 2px; border-radius: 2px;
  background: #fff; transition: transform var(--t-med), opacity var(--t-med);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(9,20,29,.92);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu a {
  font-family: var(--f-display); font-weight: 500; color: #fff;
  font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.28; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: .6em;
  transform: translateY(2.2rem); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), color .4s;
}
.menu a small { font-family: var(--f-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-glow); opacity: .8; }
.menu a:hover { color: var(--brand-glow); }
.menu-open .menu a { transform: translateY(0); opacity: 1; }
.menu-open .menu a:nth-child(1) { transition-delay: .08s; }
.menu-open .menu a:nth-child(2) { transition-delay: .13s; }
.menu-open .menu a:nth-child(3) { transition-delay: .18s; }
.menu-open .menu a:nth-child(4) { transition-delay: .23s; }
.menu-open .menu a:nth-child(5) { transition-delay: .28s; }
.menu-open .menu a:nth-child(6) { transition-delay: .33s; }
.menu-open .menu a:nth-child(7) { transition-delay: .38s; }
.menu-open .menu a:nth-child(8) { transition-delay: .43s; }
.menu__foot { position: absolute; bottom: max(1.6rem, env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.5); font-size: .8rem; }
body.menu-open { overflow: hidden; }

/* ---------- Doble bisel (marcos de imagen y tarjetas) ---------- */
.bezel {
  padding: .45rem;
  border-radius: var(--r-lg);
  background: rgba(13,27,38,.045);
  border: 1px solid rgba(13,27,38,.07);
}
.bezel__core {
  border-radius: calc(var(--r-lg) - .45rem);
  overflow: hidden; position: relative;
  background: var(--card);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6);
}
.bezel--dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.bezel--dark .bezel__core { background: var(--night-2); box-shadow: inset 0 1px 1px rgba(255,255,255,.08); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(5.2rem + clamp(2.5rem, 8vw, 5.5rem)); padding-bottom: var(--sect); overflow: clip; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 82% -12%, rgba(56,198,244,.16), transparent 62%),
    radial-gradient(40rem 30rem at -12% 32%, rgba(14,128,182,.10), transparent 60%),
    var(--paper);
}
.hero__grid { display: grid; gap: clamp(2.4rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 em { font-style: italic; font-weight: 480; color: var(--ac-deep); }
.hero .lead { margin-top: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 2.6rem; }
.proof-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1px solid rgba(13,27,38,.08); border-radius: 99px;
  padding: .5em 1em;
}
.proof-chip svg { width: .95em; height: .95em; color: var(--ac); flex: none; }

.hero__media { position: relative; }
.hero__media .bezel__core img { aspect-ratio: 4/3.1; object-fit: cover; width: 100%; }
.float-stat {
  position: absolute; left: clamp(.6rem, 3vw, -1.6rem); bottom: clamp(.8rem, 3vw, 2rem);
  background: rgba(11,24,34,.88); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 1rem 1.3rem;
  box-shadow: 0 24px 50px -20px rgba(11,24,34,.6);
  max-width: 15rem;
}
.float-stat strong { font-family: var(--f-display); font-size: 1.9rem; font-weight: 480; display: block; line-height: 1; color: var(--brand-glow); }
[data-theme="recovery"] .float-stat strong { color: #FFA78F; }
[data-theme="pet"] .float-stat strong { color: #8FD6BA; }
.float-stat span { font-size: .74rem; line-height: 1.45; display: block; margin-top: .45rem; color: rgba(255,255,255,.75); }

/* ---------- Franja de evidencia (elemento firma) ---------- */
.evidence {
  background:
    radial-gradient(46rem 30rem at 88% 0%, rgba(56,198,244,.13), transparent 60%),
    radial-gradient(30rem 24rem at 4% 100%, rgba(14,128,182,.14), transparent 58%),
    var(--night);
  color: #fff;
  border-radius: clamp(1.6rem, 4vw, 2.6rem);
  margin-inline: max(.6rem, calc((100vw - 82rem) / 2));
  padding: clamp(3.2rem, 8vw, 5.5rem) var(--gutter);
  position: relative; overflow: clip;
}
.evidence .label { color: var(--brand-glow); }
.evidence h2 { color: #fff; max-width: 15em; }
.evidence__grid {
  display: grid; gap: 2.2rem; margin-top: clamp(2.4rem, 6vw, 4rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 54em) { .evidence__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 1.2rem; }
.stat strong {
  font-family: var(--f-display); font-weight: 380; line-height: .95; display: block;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem); letter-spacing: -.02em;
}
.stat strong sup { font-size: .38em; font-weight: 480; vertical-align: super; color: var(--brand-glow); }
.stat span { display: block; margin-top: .7rem; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.66); max-width: 13em; }
.evidence__src { margin-top: clamp(2.4rem, 6vw, 3.6rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.evidence__src p { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 44em; }
.evidence__src p b { color: rgba(255,255,255,.9); font-weight: 600; }

/* ---------- Divisiones ---------- */
.divisions { display: grid; gap: 1.1rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); }
@media (min-width: 56em) {
  .divisions { grid-template-columns: repeat(12, 1fr); }
  .division:nth-child(1) { grid-column: span 12; }
  .division:nth-child(2) { grid-column: span 6; }
  .division:nth-child(3) { grid-column: span 6; }
}
.division {
  position: relative; border-radius: var(--r-lg); overflow: clip;
  background: var(--card); border: 1px solid rgba(13,27,38,.07);
  display: grid; text-decoration: none; color: var(--ink);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.division:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(13,27,38,.35); }
.division__media { position: relative; overflow: hidden; }
.division__media img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; transition: transform 1.1s var(--ease); }
.division:hover .division__media img { transform: scale(1.045); }
@media (min-width: 56em) {
  .division:nth-child(1) { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .division:nth-child(1) .division__media img { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; object-fit: cover; }
  .division:nth-child(1) .division__media { height: 100%; min-height: 22rem; order: 2; }
}
.division__body { padding: clamp(1.5rem, 4vw, 2.6rem); }
.division__body .eyebrow { margin-bottom: 1rem; }
.division__body p { color: var(--ink-2); margin-top: .7rem; font-size: .98rem; max-width: 36em; }
.division__go {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 1.5rem;
  font-weight: 600; font-size: .95rem; color: var(--ac-deep);
}
.division__go .btn__ico { background: var(--ac-soft); color: var(--ac-deep); width: 2.1em; height: 2.1em; }
.division:hover .division__go .btn__ico { transform: translate(3px,-2px); background: var(--ac); color: #fff; }
.division--soon .division__media img { filter: saturate(.85); }
.soon-tag {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  background: rgba(11,24,34,.82); color: #fff; backdrop-filter: blur(8px);
  padding: .55em 1.1em; border-radius: 99px;
}

/* ---------- Split editorial (tecnología) ---------- */
.split { display: grid; gap: clamp(2.4rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.modes { display: grid; gap: .4rem; margin-top: 2rem; counter-reset: mode; }
.mode {
  display: flex; gap: 1.1rem; align-items: baseline;
  background: var(--card); border: 1px solid rgba(13,27,38,.06);
  border-radius: var(--r-sm); padding: 1rem 1.2rem;
  transition: transform var(--t-med), border-color var(--t-med);
}
.mode:hover { transform: translateX(4px); border-color: rgba(14,128,182,.3); }
.mode::before {
  counter-increment: mode; content: "0" counter(mode);
  font-family: var(--f-display); font-weight: 480; font-size: 1.05rem; color: var(--ac); flex: none;
}
.mode b { font-weight: 600; }
.mode span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Cita fundador ---------- */
.founder { background: var(--paper-2); }
.founder blockquote {
  font-family: var(--f-display); font-weight: 440; font-style: italic;
  font-size: clamp(1.5rem, 4.4vw, 2.5rem); line-height: 1.32; letter-spacing: -.01em;
  max-width: 24em; text-wrap: balance;
}
.founder blockquote strong { color: var(--ac-deep); font-weight: 560; }
.founder figcaption { margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem; }
.founder figcaption .label b { display: block; color: var(--ink); font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 600; }

/* ---------- Testimonios ---------- */
.tscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(19rem, 78vw);
  gap: 1rem; overflow-x: auto; padding: .2rem .2rem 1.4rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.tscroll::-webkit-scrollbar { height: 6px; }
.tscroll::-webkit-scrollbar-thumb { background: rgba(13,27,38,.15); border-radius: 3px; }
.tcard {
  scroll-snap-align: start;
  background: var(--card); border: 1px solid rgba(13,27,38,.07); border-radius: var(--r-md);
  overflow: clip; display: flex; flex-direction: column;
}
.tcard img { aspect-ratio: 16/9.5; object-fit: cover; }
.tcard__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.tcard__body p { font-size: .95rem; line-height: 1.55; color: var(--ink-2); flex: 1; }
.tcard__body p::before { content: "“"; font-family: var(--f-display); color: var(--ac); font-size: 1.4em; line-height: 0; margin-right: .05em; }
.tcard__who b { display: block; font-size: .9rem; }
.tcard__who span { font-size: .78rem; color: var(--ink-3); }
.tcard--video .tcard__media { position: relative; }
.tcard--video .tcard__media::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 3.2rem; height: 3.2rem;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230D1B26'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center/1.15rem no-repeat;
  border-radius: 50%; box-shadow: 0 10px 26px -8px rgba(11,24,34,.5);
}

/* ---------- Bandas de logos ---------- */
.logoband { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.4rem); margin-top: 2.2rem; }
.logoband img { height: clamp(1.5rem, 3.4vw, 2.1rem); width: auto; opacity: .55; filter: grayscale(1); transition: opacity var(--t-med), filter var(--t-med); }
.logoband img:hover { opacity: 1; filter: none; }
.logoband--certs img { height: clamp(2.6rem, 6vw, 3.6rem); }

/* ---------- CTA final ---------- */
.endcta { text-align: center; }
.endcta h2 { max-width: 17em; margin-inline: auto; }
.endcta .lead { margin: 1.2rem auto 0; }
.endcta__btns { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(255,255,255,.72); padding: clamp(3.4rem, 8vw, 5.5rem) 0 2rem; margin-top: var(--sect); }
.footer a { color: rgba(255,255,255,.72); transition: color var(--t-med); font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2.6rem; }
@media (min-width: 54em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { font-size: .88rem; margin-top: 1.2rem; max-width: 26em; color: rgba(255,255,255,.55); }
.footer h4 { font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer__legal {
  margin-top: clamp(2.6rem, 6vw, 4rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer__legal a { font-size: .78rem; color: rgba(255,255,255,.45); }
.footer__disclaimer { font-size: .75rem; color: rgba(255,255,255,.38); margin-top: 1.2rem; max-width: 62em; }

/* ---------- Formulario de contacto ---------- */
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.2rem); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field label b { color: var(--ac-deep); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(13,27,38,.12);
  border-radius: .8rem; padding: .8em 1em; width: 100%;
  transition: border-color var(--t-med), background var(--t-med);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D5361' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; background-size: 1em;
  padding-right: 2.6em;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ac); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
.form__consent input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; accent-color: var(--ac-deep); }
.form__consent a { text-decoration: underline; text-underline-offset: 2px; }
.form__send { margin-top: .4rem; justify-self: start; }
.form__msg { padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: .6rem; }
.form__msg strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 560; }
.form__msg p { color: var(--ink-2); font-size: .98rem; }
.form__err { color: #B03A20; font-size: .85rem; padding: 0 clamp(1.4rem, 4vw, 2.2rem) 1.4rem; }
.hp-field { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(2.4rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Página de división: hero oscuro ---------- */
.dhero {
  position: relative; color: #fff; overflow: clip;
  background:
    radial-gradient(50rem 36rem at 85% -10%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 62%),
    radial-gradient(36rem 28rem at 0% 110%, color-mix(in srgb, var(--ac-deep) 30%, transparent), transparent 60%),
    var(--night);
  padding-top: calc(5.2rem + clamp(2.5rem, 8vw, 5rem));
  padding-bottom: var(--sect);
}
.dhero .eyebrow { background: rgba(255,255,255,.08); color: var(--brand-glow); border: 1px solid rgba(255,255,255,.12); }
[data-theme="recovery"] .dhero .eyebrow { color: #FFA78F; }
[data-theme="pet"] .dhero .eyebrow { color: #8FD6BA; }
.dhero h1 em { font-style: italic; font-weight: 440; color: color-mix(in srgb, var(--ac) 62%, #fff); }
.dhero .lead { color: rgba(255,255,255,.72); }
.wave-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.wave {
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: .5em 1em;
  color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: .5em;
}
.wave i { width: .6em; height: .6em; border-radius: 50%; flex: none; }
