/* ==========================================================================
   Agencia Singular — hoja de estilos
   Paleta y tipografía tomadas del Figma "AGENCIA_SINGULAR" (landing 67:11)
   ========================================================================== */

:root {
  /* Colores de marca (Figma) */
  --blue: #3e6083;
  --blue-deep: #2c4763;      /* texto sobre amarillo: contraste AA */
  --blue-ink: #1f3349;
  --cream: #ebe7d0;
  --cream-soft: #f4f1e2;
  --cream-warm: #efdcb0;     /* crema cálido del botón de diagnóstico */
  --yellow: #fab419;
  --mustard: #d9a621;
  --crimson: #bf2e59;
  --orange: #ed5921;
  --ink: #261f14;
  --white: #fff;

  /* Tipografía */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 5.5vw, 80px);
  --section-y: clamp(56px, 7vw, 88px);
  --header-h: 84px;
  --max: 1280px;
  --shadow-retro: 4px 4px 0 var(--crimson);
  --shadow-retro-blue: 6px 6px 0 var(--blue);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Al saltar a una sección, el contenido queda justo bajo la cabecera fija */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section[id] { scroll-margin-top: calc(var(--header-h) - var(--section-y) + 28px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
ul, ol.steps { margin: 0; padding: 0; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; 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; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--blue-deep); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Iconos (sprite SVG) */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--star { fill: currentColor; stroke: none; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 99px; padding: 14px 28px 14px 24px;
  transition: transform .45s cubic-bezier(.34, 1.8, .5, 1), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { transition: transform .45s cubic-bezier(.34, 1.8, .5, 1), fill .2s ease, color .2s ease; }
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: scale(.9); transition-duration: .08s; }

/* Rebote al hacer clic (la clase la añade main.js) */
.btn.is-bouncing,
.alogo--nav.is-bouncing { animation: btn-bounce .6s cubic-bezier(.28, .84, .42, 1); }
.btn.is-bouncing .icon { animation: star-pop .6s cubic-bezier(.34, 1.8, .5, 1); }
@keyframes btn-bounce {
  0%   { transform: scale(1, 1); }
  18%  { transform: scale(.86, .9); }
  40%  { transform: scale(1.1, 1.05) translateY(-3px); }
  60%  { transform: scale(.96, .98); }
  80%  { transform: scale(1.03, 1.01); }
  100% { transform: scale(1, 1); }
}
@keyframes star-pop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.45) rotate(-25deg); }
  70%  { transform: scale(.9) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.btn--yellow { background: var(--yellow); color: var(--blue-deep); }
.btn--yellow .icon { color: var(--crimson); }
.btn--yellow:hover .icon { transform: rotate(-18deg) scale(1.15); }
/* Solo las estrellas se rellenan al pasar el ratón; los iconos de línea (libro, estetoscopio) no */
.btn--yellow:hover .icon:has(use[href^="#i-star"]) { fill: var(--crimson); }
/* Botón de diagnóstico en la cabecera: crema, para no confundirse con la sección marcada en amarillo */
.btn--cream { background: var(--cream-warm); color: var(--blue-deep); }
.btn--cream .icon { color: var(--crimson); }
.btn--cream:hover .icon { transform: rotate(-18deg) scale(1.15); }
/* Iconos de línea (estetoscopio): se giran pero no se rellenan */
.btn:hover .icon--line { fill: none; }
.btn--retro .icon { color: var(--crimson); }
.btn--retro {
  background: var(--yellow); color: var(--blue-deep); border-radius: var(--radius-sm);
  padding: 15px 36px; font-size: 16px; letter-spacing: 3px; box-shadow: var(--shadow-retro);
}
.btn--retro:hover { box-shadow: 6px 6px 0 var(--crimson); }
.btn--crimson { background: var(--crimson); color: var(--white); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--blue); }
.btn--outline {
  background: transparent; color: var(--yellow); border: 1.5px solid var(--yellow);
  font-weight: 600; font-size: 13px; padding: 9px 16px; letter-spacing: 1.5px;
}
.nav .btn:hover { box-shadow: 3px 3px 0 var(--crimson); }
.btn--outline:hover,
.btn--outline.is-active,
.btn--outline:focus-visible { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.btn--outline:hover .icon,
.btn--outline.is-active .icon,
.btn--outline:focus-visible .icon { fill: var(--crimson); color: var(--crimson); transform: rotate(-18deg) scale(1.2); }
.btn--ghost-cream { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn--ghost-cream:hover { background: var(--cream); color: var(--blue); }
/* Sombra sólida rosa al pasar por los botones de la portada */
.hero .btn--yellow:hover,
.hero .btn--ghost-cream:hover { box-shadow: 3px 3px 0 var(--crimson); }
.btn--block { width: 100%; }

/* ==========================================================================
   Secciones (tarjetas redondeadas del Figma)
   ========================================================================== */
.section { position: relative; padding: var(--section-y) 0; }
.section--blue { background: var(--blue); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }
.page-wrap { padding: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; background: var(--yellow);
  color: var(--blue-deep); font-family: var(--font-display); font-size: 13px; letter-spacing: .06em;
  padding: 4px 12px 4px 6px; border-radius: var(--radius-sm); text-transform: uppercase;
}
.eyebrow .icon { width: 20px; height: 20px; color: var(--crimson); }
.eyebrow--cream { background: var(--cream); color: var(--blue); }
.eyebrow--cream .icon { color: var(--crimson); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
/* Títulos sobre azul: amarillo con sombra sólida rosa (estilo retro, como botones y tarjetas) */
.section--blue .section-title,
.section--blue .faq__intro h2,
.article-hero h1,
.notfound h1 { color: var(--yellow); text-shadow: 3px 3px 0 var(--crimson); }
.section-lead { max-width: 640px; font-size: 17px; margin-top: 14px; }
.badge {
  background: var(--cream); color: var(--blue); font-family: var(--font-display);
  font-size: 12px; padding: 8px 16px; border-radius: var(--radius-sm); text-transform: uppercase;
}
.badge--blue { background: var(--blue); color: var(--cream); }

.boxed-title {
  display: inline-block; border: 4px solid var(--ink); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); max-width: 825px; background: var(--cream);
}
.boxed-title h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; text-transform: uppercase; }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--blue);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 3px 0 var(--crimson); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.nav__logo { display: block; flex: none; }
.alogo--nav { width: 160px; }
.nav__links { display: flex; align-items: center; gap: 10px; list-style: none; }
.nav__links .btn { white-space: nowrap; }
.nav__links a .icon { width: 16px; height: 16px; }
/* Botón de diagnóstico dentro del menú: solo en el desplegable del móvil */
.nav__mcta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__ig {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--yellow); color: var(--yellow); transition: background-color .15s;
}
.nav__ig:hover { background: rgba(250,180,25,.14); }
/* Misma altura que los botones del menú (41 px) para que queden alineados */
.nav__cta { padding: 9px 18px; font-size: 13px; border: 1.5px solid transparent; }
.nav__cta .icon { width: 18px; height: 18px; }
.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--yellow); color: var(--yellow);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; place-items: center;
}

/* Portátiles: menú más compacto para que quepa también el botón de diagnóstico */
@media (max-width: 1400px) {
  .nav { gap: 14px; }
  .nav__links { gap: 6px; }
  .nav__links .btn { padding: 9px 12px; letter-spacing: .8px; gap: 6px; }
  .nav__cta { padding: 9px 14px; letter-spacing: .8px; }
  .nav__ig { display: none; }
  .alogo--nav { width: 140px; }
}
@media (max-width: 1240px) {
  .nav__cta { display: none; }
  .nav__ig { display: grid; }
}
@media (max-width: 1120px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--blue); padding: 8px var(--gutter) 24px; gap: 10px;
    border-bottom: 3px solid var(--crimson);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav__links .nav__mcta { display: list-item; margin-top: 6px; }
  .nav__links .nav__mcta .btn { justify-content: center; }
  .nav__links .btn { width: 100%; justify-content: flex-start; font-size: 15px; padding: 12px 18px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__brand { width: min(560px, 100%); margin: 0 0 22px -6px; }
/* El espaciado entre letras deja hueco tras la última: se compensa a la izquierda para centrar de verdad */
.hero__tagline { font-size: 15px; letter-spacing: clamp(.08em, 1vw, .3em); padding-left: clamp(.08em, 1vw, .3em); text-align: center; color: var(--yellow); font-style: italic; font-weight: 500; margin-bottom: 10px; }
.hero__logo { width: 100%; }

/* ==========================================================================
   Logo animado (capas exportadas del Figma, nodo 71:20)
   Caja de referencia: 1546 × 576 px del frame original
   ========================================================================== */
.alogo { position: relative; aspect-ratio: 1546 / 576; }
.alogo__text, .alogo__beat { position: absolute; inset: 0; }
.alogo__beat--a { transform-origin: 38% 53%; }  /* centro de "Agencia" */
.alogo__beat--s { transform-origin: 59% 83%; }  /* centro de "SINGULAR." */
.alogo img { position: absolute; height: auto; max-width: none; }
.alogo__leap { position: absolute; inset: 0; pointer-events: none; transform-origin: 78% 50%; }
.alogo__swing    { position: absolute; inset: 0; transform-origin: 67.01% 45.31%; } /* base de la cola */
.alogo__jaguar   { left: 60.802%; top: 6.424%;  width: 39.198%; }
.alogo__paw      { left: 93.208%; top: 11.979%; width: 6.08%; transform-origin: 47.9% 89.9%; } /* muñeca */
.alogo__tailback { left: 56.533%; top: 6.076%;  width: 19.858%; } /* cola + estrella negra */
.alogo__rstar    { left: 0;       top: 0;       width: 28.719%; transform-origin: 99% 99%; } /* punta de su cola */
.alogo__singular { left: 31.113%; top: 71.181%; width: 55.821%; }
.alogo__agencia  { left: 3.881%;  top: 18.75%;  width: 67.982%; }
.alogo__feet     { left: 60.802%; top: 70.312%; width: 34.217%; }

/* Entrada: la estrella rosa se despliega desde su cola → "Agencia" se escribe → salta el jaguar
   → cae "SINGULAR." → la cola (con la estrella negra) empieza a balancearse */
.alogo__rstar    { animation: alogo-rstar-in .9s cubic-bezier(.3, 1.3, .5, 1) both, alogo-rstar-idle 6s 2.4s ease-in-out infinite; }
.alogo__agencia  { animation: alogo-write 1.1s .25s cubic-bezier(.6, .1, .3, 1) both; }
.alogo__leap     { animation: alogo-leap 1s .55s cubic-bezier(.2, .8, .3, 1) both; }
.alogo__singular { animation: alogo-drop .75s 1s cubic-bezier(.3, 1.5, .5, 1) both; }
.alogo__swing    { animation: alogo-swing 3.4s 1.6s ease-in-out infinite; }

/* Al pasar el ratón solo reacciona el texto: late primero "Agencia" y después "SINGULAR." */
.alogo:hover .alogo__beat--a { animation: alogo-pulse .6s ease-out; }
.alogo:hover .alogo__beat--s { animation: alogo-pulse .6s .3s ease-out; }

/* Logo de la cabecera: solo se mueve la cola */
.alogo--nav :is(.alogo__rstar, .alogo__agencia, .alogo__singular, .alogo__leap, .alogo__beat, .alogo__paw) { animation: none !important; }
.alogo--nav .alogo__swing { animation-delay: 0s; }

@keyframes alogo-rstar-in {
  0%   { clip-path: circle(0% at 99% 99%); transform: scale(.25) rotate(28deg); }
  55%  { clip-path: circle(90% at 99% 99%); transform: scale(1.08) rotate(-5deg); }
  80%  { transform: scale(.97) rotate(2deg); }
  100% { clip-path: circle(150% at 99% 99%); transform: none; }
}
@keyframes alogo-rstar-idle {
  0%, 82%, 100% { filter: none; }
  90% { filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 214, 120, .55)); }
}
/* Zarpazo de la pata cada pocos segundos (solo en el logo grande) */
.hero__logo .alogo__paw { animation: alogo-paw 6s 2.6s ease-in-out infinite; }
@keyframes alogo-paw {
  0%, 78%, 100% { transform: rotate(0); }
  83% { transform: rotate(-9deg); }
  88% { transform: rotate(5deg); }
  93% { transform: rotate(-2deg); }
}
@keyframes alogo-write {
  0%   { clip-path: inset(-20% 100% -20% -5%); }
  100% { clip-path: inset(-20% -5% -20% -5%); }
}
@keyframes alogo-leap {
  0%   { opacity: 0; transform: translate(26%, -16%) rotate(14deg) scale(.85); }
  55%  { opacity: 1; transform: translate(-2.5%, 3%) rotate(-3deg) scale(1.02); }
  78%  { transform: translate(.8%, -1%) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes alogo-drop {
  0%   { opacity: 0; transform: translateY(-70%); }
  60%  { opacity: 1; transform: translateY(6%); }
  80%  { transform: translateY(-3%); }
  100% { opacity: 1; transform: none; }
}
@keyframes alogo-swing {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(3.5deg); }
}
@keyframes alogo-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.08); }
  55%  { transform: scale(.97); }
  75%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.hero h1 { font-family: var(--font-body); font-weight: 400; }
.highlight {
  display: inline; background: var(--yellow); color: var(--blue-deep); font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 26px); letter-spacing: .5px; line-height: 1.5;
  padding: 3px 12px; border-radius: var(--radius-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-transform: uppercase;
}
.hero__copy { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; line-height: 1.55; font-weight: 400; }
.hero__copy strong { font-weight: 800; }
.hero__copy .light { display: block; margin-top: 8px; opacity: .92; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; align-items: center; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; list-style: none; font-size: 14px; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof .icon { width: 16px; height: 16px; color: var(--yellow); }

.hero__visual { position: relative; min-height: 520px; }
.hero__photo {
  position: absolute; inset: 0 0 0 8%; border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--cream); box-shadow: 10px 10px 0 var(--crimson);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(62,96,131,0) 40%, rgba(31,51,73,.55)); }
/* Destello de luz que cruza la foto una sola vez al cargar */
.hero__photo::before {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,248,225,.08) 30%, rgba(255,248,225,.45) 50%, rgba(255,248,225,.08) 70%, transparent 100%);
  transform: skewX(-18deg); animation: photo-shine 1.4s 1.1s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes photo-shine { from { left: -60%; } to { left: 130%; } }

/* Burbuja de chat IA (demostración) */
.ai-card {
  position: absolute; left: -6%; bottom: 8%; width: min(360px, 92%); z-index: 2;
  background: var(--cream-soft); color: var(--ink); border-radius: 18px; padding: 16px 18px;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); font-size: 14px;
}
.ai-card__q { background: var(--blue); color: var(--cream); border-radius: 14px 14px 4px 14px; padding: 9px 12px; margin-left: 18%; font-weight: 600; }
.ai-card__a { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; }
.ai-card__avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--yellow); color: var(--crimson); }
.ai-card__avatar .icon { width: 16px; height: 16px; }
.ai-card__a p { line-height: 1.5; }
.ai-card__a mark { background: var(--yellow); color: var(--blue-deep); padding: 0 4px; border-radius: 4px; font-weight: 800; }
.ai-card__label { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); opacity: .8; }
.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--crimson); }
@keyframes blink { 50% { opacity: 0; } }

.maps-chip {
  position: absolute; right: -10px; top: 8%; z-index: 2; background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--blue-ink); font-size: 13px; font-weight: 700;
}
.maps-chip .pin { width: 34px; height: 34px; border-radius: 50%; background: var(--crimson); color: var(--white); display: grid; place-items: center; }
.maps-chip .pin .icon { width: 18px; height: 18px; }
.maps-chip small { display: block; font-weight: 600; color: #6b6b6b; }
.maps-chip .stars { color: var(--mustard); letter-spacing: 1px; }

.hero__divider { width: min(717px, 60%); height: 2px; background: var(--yellow); margin: clamp(40px, 5vw, 56px) auto 0; opacity: .7; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__photo { inset: 0 0 0 0; }
  .ai-card { left: -8px; }
}
/* Móvil: la foto se ve entera; la conversación con la IA solo pisa el borde inferior */
@media (max-width: 520px) {
  .hero__visual { min-height: 0; display: flex; flex-direction: column; }
  .hero__photo { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .maps-chip { top: 12px; right: 12px; padding: 7px 10px; gap: 8px; font-size: 12px; border-width: 2px; box-shadow: 3px 3px 0 var(--blue-ink); }
  .maps-chip .pin { width: 26px; height: 26px; }
  .maps-chip .pin .icon { width: 14px; height: 14px; }
  .ai-card { position: relative; left: auto; bottom: auto; width: auto; margin: -74px 14px 0; padding: 12px 14px; font-size: 13px; }
  .ai-card__q { margin-left: 12%; padding: 7px 10px; }
  .ai-card__a { margin-top: 8px; }
  .ai-card__label { margin-top: 6px; font-size: 10px; }
}

/* Cinta de sectores */
.ticker { position: relative; max-width: 100%; background: var(--yellow); color: var(--blue-deep); overflow: hidden; border-top: 3px solid var(--blue-ink); border-bottom: 3px solid var(--blue-ink); margin: 0; transform: rotate(-1deg); position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; gap: 0; animation: ticker 40s linear infinite; }
.ticker ul { display: flex; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 18px; padding: 12px 18px; font-family: var(--font-display); font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.ticker li .icon { width: 16px; height: 16px; color: var(--crimson); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Problema / empatía (Figma pain-section)
   ========================================================================== */
.empathy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.photo-frame { margin: 0; border: 4px solid var(--blue); border-radius: var(--radius); padding: 16px; background: var(--cream); }
.photo-frame img { border: 2px solid var(--blue); border-radius: var(--radius-sm); width: 100%; aspect-ratio: 596 / 380; object-fit: cover; }
.photo-frame figcaption { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.photo-frame figcaption .icon { width: 14px; height: 14px; color: var(--blue); }
.empathy__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.empathy__lead { font-size: 18px; font-weight: 600; color: #000; line-height: 1.6; }
.empathy__body { font-size: 16px; line-height: 1.6; }
.quote-box {
  width: 100%; background: var(--orange); color: var(--white); border-left: 6px solid var(--yellow);
  border-radius: var(--radius); padding: 14px 20px 14px 24px; font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px); line-height: 1.3; text-transform: uppercase;
}
.pain-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 56px); }
.pain-stat { border: 3px solid var(--blue); border-radius: var(--radius); padding: 20px 22px; background: var(--cream-soft); }
.pain-stat strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; text-transform: uppercase; }
.pain-stat p { font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 56px); }
.cta-row p { font-size: 15px; font-weight: 600; }

@media (max-width: 860px) {
  .empathy { grid-template-columns: 1fr; }
  .pain-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cómo te buscan: Google / Maps / IA
   ========================================================================== */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.channel { background: var(--cream); color: var(--blue); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.channel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.channel h3 { font-size: clamp(22px, 2vw, 26px); }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue); color: var(--cream); border-radius: 4px; flex: none; }
.channel--ia { background: var(--yellow); color: var(--blue-deep); }
.channel--ia .icon-tile { background: var(--crimson); }
.channel__search { background: var(--white); border: 2px solid currentColor; border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.channel__search .icon { width: 16px; height: 16px; color: var(--blue); }
.channel ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.channel li { display: flex; gap: 10px; align-items: flex-start; }
.channel li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--crimson); }
.new-tag { font-family: var(--font-display); font-size: 11px; background: var(--crimson); color: var(--white); padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.channels-note { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; max-width: 900px; }
.channels-note .icon { color: var(--yellow); margin-top: 2px; }

@media (max-width: 960px) { .channels { grid-template-columns: 1fr; } }

/* ==========================================================================
   Packs
   ========================================================================== */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pack {
  position: relative; background: var(--cream-soft); border: 3px solid var(--blue); border-radius: var(--radius);
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .5s cubic-bezier(.34, 1.9, .5, 1), box-shadow .5s cubic-bezier(.34, 1.9, .5, 1);
}
.pack:hover { transform: translate(-4px, -8px) rotate(-.6deg); box-shadow: 8px 10px 0 var(--blue); }
.pack--featured { background: var(--blue); color: var(--cream); border-color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow); }
.pack--featured:hover { transform: translate(-4px, -8px) rotate(.6deg); box-shadow: 12px 14px 0 var(--yellow); }
.pack__ribbon {
  position: absolute; top: -16px; left: 20px; background: var(--crimson); color: var(--white);
  font-family: var(--font-display); font-size: 12px; padding: 6px 12px; border-radius: 6px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.pack__ribbon .icon { width: 14px; height: 14px; color: var(--yellow); }
.pack__kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.pack h3 { font-size: 24px; text-transform: uppercase; }
.pack__for { font-size: 14px; line-height: 1.5; }
.pack__price { font-family: var(--font-display); font-size: 34px; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pack__price small { font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.pack--featured .pack__price { color: var(--yellow); }
.pack ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; flex: 1; }
.pack li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.pack li .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--crimson); flex: none; }
.pack--featured li .icon { color: var(--yellow); }
.pack .btn { margin-top: 8px; width: 100%; padding: 13px 18px; font-size: 13.5px; }
.pack--featured .btn--ghost { border-color: var(--yellow); color: var(--yellow); }
.btn--ghost { background: transparent; border: 2px solid var(--blue); color: var(--blue); border-radius: var(--radius-sm); }
.btn--ghost:hover { background: var(--blue); color: var(--cream); }
.packs-note { margin-top: 28px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.packs-note span { display: inline-flex; align-items: center; gap: 8px; }
.packs-note .icon { width: 16px; height: 16px; color: var(--crimson); }

@media (max-width: 1180px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }

/* ==========================================================================
   Servicios (tarjetas del Figma)
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--cream); color: var(--blue); border: 3px solid var(--cream); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 18px; transition: transform .2s, box-shadow .2s;
}
a.service { color: var(--blue); text-decoration: none; cursor: pointer; }
.service:hover, .service:focus-visible { transform: translate(-4px, -8px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--crimson); }
.service:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.service__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service h3 { font-size: 21px; line-height: 1.2; }
.service p { font-size: 15px; line-height: 1.6; }
/* Pie de la tarjeta: etiqueta + flecha (indica que toda la tarjeta lleva al formulario) */
.service__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service__go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); transition: transform .45s cubic-bezier(.34, 1.8, .5, 1), background-color .2s; }
.service__go .icon { width: 18px; height: 18px; }
.service:hover .service__go, .service:focus-visible .service__go { transform: translateX(5px); background: var(--crimson); }
/* Al hacer clic la tarjeta rebota antes de ir al formulario (clase añadida por main.js) */
.service.is-bouncing { animation: btn-bounce .45s cubic-bezier(.28, .84, .42, 1); }
.service__tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }

.trastienda {
  margin-top: 32px; background: var(--yellow); color: var(--blue-deep); border: 3px solid var(--cream);
  border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-display); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.4;
}
.trastienda .icon { width: 20px; height: 20px; color: var(--crimson); }
.trastienda__text strong { font-weight: 400; }
a.trastienda { text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.trastienda:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--crimson); }
.trastienda__text .trastienda__cta { display: inline-block; margin-left: 6px; font-family: var(--font-display); font-weight: 400; color: var(--crimson); white-space: nowrap; }
.trastienda__text span { font-family: var(--font-body); font-weight: 700; }

@media (max-width: 1180px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .trastienda .icon { display: none; } }

/* ==========================================================================
   Test de visibilidad (interactivo)
   ========================================================================== */
.quiz { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.quiz__intro h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; margin: 18px 0 16px; }
.quiz__intro p { font-size: 17px; }
.quiz__intro ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-weight: 600; }
.quiz__intro li { display: flex; gap: 10px; align-items: center; }
.quiz__intro li .icon { color: var(--crimson); width: 20px; height: 20px; }

.quiz__card {
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--blue);
  padding: clamp(22px, 3vw, 34px); color: var(--ink); min-height: 420px; display: flex; flex-direction: column;
}
.quiz__progress { height: 10px; background: var(--cream); border-radius: 99px; overflow: hidden; border: 2px solid var(--ink); }
.quiz__bar { height: 100%; width: 0; background: var(--yellow); transition: width .3s ease; }
.quiz__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin: 12px 0 18px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.quiz__q { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; color: var(--blue); }
.quiz__hint { font-size: 14px; margin-top: 10px; color: #4b4b4b; }
.quiz__options { display: grid; gap: 12px; margin-top: 24px; }
.quiz__opt {
  text-align: left; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--blue); background: var(--cream-soft); color: var(--blue); cursor: pointer;
  display: flex; align-items: center; gap: 12px; transition: background-color .15s, transform .1s;
}
.quiz__opt:hover { background: var(--yellow); color: var(--blue-deep); }
.quiz__opt:active { transform: scale(.99); }
.quiz__opt kbd { font-family: var(--font-display); font-size: 12px; background: var(--blue); color: var(--cream); border-radius: 4px; padding: 2px 7px; }
.quiz__nav { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; }
.link-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

.quiz__result { display: none; flex-direction: column; gap: 18px; }
.quiz__result.is-visible { display: flex; }
.score { display: flex; align-items: center; gap: 20px; }
.score__ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ring, var(--crimson)) calc(var(--p) * 1%), var(--cream) 0); border: 3px solid var(--ink); }
.score__ring span { width: 80px; height: 80px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 28px; color: var(--blue); border: 3px solid var(--ink); }
.score h3 { font-size: 22px; color: var(--blue); }
.score p { font-size: 15px; margin-top: 4px; }
.quiz__tips { list-style: none; display: grid; gap: 10px; }
.quiz__tips li { font-size: 15px; background: var(--cream-soft); border-radius: var(--radius-sm); padding: 10px 12px; border-left: 4px solid var(--orange); }
.quiz__tips li strong { color: var(--blue); }
.quiz__result .btn { align-self: flex-start; }

@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sectores (pestañas)
   ========================================================================== */
.sector-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.sector-tab {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 10px 16px; border-radius: 99px;
  border: 2px solid var(--cream); background: transparent; color: var(--cream); display: inline-flex; gap: 8px; align-items: center;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .5s cubic-bezier(.34, 1.6, .5, 1);
}
.sector-tab:hover { transform: translateY(-3px); }
.sector-tab:active { transform: scale(.94); transition-duration: .1s; }
.sector-tab .icon { transition: transform .5s cubic-bezier(.34, 1.8, .5, 1); }
.sector-tab:hover .icon { transform: rotate(-12deg) scale(1.12); }
.sector-tab .icon { width: 18px; height: 18px; }
.sector-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--blue-deep); animation: tab-pop .5s cubic-bezier(.34, 1.6, .5, 1); }
.sector-tab:hover:not([aria-selected="true"]) { background: rgba(235,231,208,.12); }
.sector-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.sector-panel[hidden] { display: none; }
.sector-panel:not([hidden]) { animation: panel-in .45s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes tab-pop {
  0%   { transform: scale(.92); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes panel-in {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: none; }
}
.sector-panel__main { background: var(--cream); color: var(--blue); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.sector-panel__main h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.sector-panel__main p { font-size: 16px; }
.sector-panel__main ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.sector-panel__main li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.sector-panel__main li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--crimson); }
.sector-panel__side { background: var(--blue-ink); border: 3px dashed var(--yellow); border-radius: var(--radius); padding: 26px; }
.sector-panel__side h4 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--yellow); margin-bottom: 14px; }
.searches { list-style: none; display: grid; gap: 10px; }
.searches li { background: var(--white); color: var(--ink); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.searches li .icon { width: 15px; height: 15px; color: var(--blue); }
.sector-panel__side .pack-suggest { margin-top: 18px; font-size: 14px; color: var(--cream); }
.sector-panel__side .pack-suggest { line-height: 2.2; }
.pack-link { display: inline-block; font-weight: 800; color: var(--yellow); text-decoration: none; border: 2px solid var(--yellow); border-radius: 99px; padding: 1px 12px; line-height: 1.6; transition: background-color .2s, color .2s, transform .45s cubic-bezier(.34, 1.8, .5, 1); }
.pack-link:hover, .pack-link:focus-visible { background: var(--yellow); color: var(--blue-deep); transform: translateY(-2px); }

@media (max-width: 860px) { .sector-panel { grid-template-columns: 1fr; } }

/* ==========================================================================
   Proceso
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.step { position: relative; background: var(--cream-soft); border: 3px solid var(--blue); border-radius: var(--radius); padding: 60px 22px 24px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -20px; left: 20px; font-family: var(--font-display); font-size: 26px;
  background: var(--yellow); color: var(--blue-deep); border: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 4px 12px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15px; }
.step__time { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--crimson); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Compromisos */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise .icon-tile { background: var(--crimson); }
.promise h3 { font-size: 17px; margin-bottom: 4px; text-transform: uppercase; }
.promise p { font-size: 15px; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); }
.faq__intro h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; margin: 18px 0 16px; }
.faq__intro p { font-size: 16px; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--cream); color: var(--blue); border-radius: var(--radius); border: 3px solid var(--cream); }
.faq details[open] { border-color: var(--yellow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--font-display); font-size: 17px; line-height: 1.35;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--crimson); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; font-size: 15.5px; display: grid; gap: 10px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contacto (Figma contact-section)
   ========================================================================== */
.invite { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.invite { max-width: none; }
.invite h2 { font-size: min(52px, calc((100vw - 2 * var(--gutter)) / 18.5)); text-transform: uppercase; white-space: nowrap; }
.invite__aside { margin-top: 6px !important; font-size: 15px !important; font-style: italic; color: var(--crimson); font-weight: 600; }
.invite h2 + .invite__aside + p { max-width: 640px; margin-left: auto; margin-right: auto; }
.invite p { margin-top: 16px; font-size: 17px; }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--font-display); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--cream-soft);
  border: 2px solid var(--blue); border-radius: var(--radius-sm); padding: 15px 16px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d8a97; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.field--check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--crimson); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--blue);
  font-size: 14px; font-weight: 700; cursor: pointer; background: var(--cream-soft); color: var(--blue);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s ease;
}
.chip:hover span { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--crimson); background: var(--white); }
.chip:active span { transform: scale(.97); transition-duration: .08s; }
.chip input:checked + span { background: var(--blue); color: var(--cream); box-shadow: 3px 3px 0 var(--yellow); }
.chip:hover input:checked + span { background: var(--blue); }
/* Marca de elegido: una estrellita amarilla que aparece al seleccionar */
.chip span::before { content: "★"; display: inline-block; width: 0; opacity: 0; margin-right: -8px; color: var(--yellow); transform: scale(.4); transition: width .2s ease, opacity .2s ease, margin .2s ease, transform .2s ease; }
.chip input:checked + span::before { width: 1em; opacity: 1; margin-right: 0; transform: none; }
.chip--service span::before { display: none; }
.chip span .icon { transition: transform .2s ease; }
.chip:hover span .icon { transform: rotate(-10deg); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form .btn--send {
  background: var(--crimson); color: var(--white); border: 2px solid var(--blue); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .06em; padding: 18px 24px; width: 100%;
}
.form .btn--send:hover { box-shadow: 4px 4px 0 var(--blue); }
.form__status { font-weight: 700; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: #2e7d32; }
.form__status.is-error { color: var(--crimson); }
.hp { position: absolute; left: -9999px; }

.contact-aside { display: grid; gap: 18px; }
.contact-card { background: var(--blue); color: var(--cream); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { font-size: 20px; margin-bottom: 12px; text-transform: uppercase; }
.contact-card ul { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.contact-card li { display: flex; gap: 12px; align-items: center; }
.contact-card a { color: var(--cream); text-decoration: none; font-weight: 700; }
.contact-card a:hover { color: var(--yellow); }
.contact-card .icon { color: var(--yellow); }
.contact-card--yellow { background: var(--yellow); color: var(--blue-deep); }
.contact-card--yellow p { font-size: 15px; }
.contact-card--yellow .btn { margin-top: 14px; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { background: var(--blue); color: var(--cream); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand > img, .footer-logo > img { width: 170px; }
.footer-logo { display: inline-block; }
.footer-logo.is-bouncing { animation: btn-bounce .6s cubic-bezier(.28, .84, .42, 1); }
.text-link { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link:hover { color: var(--yellow); }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 300px; }
.site-footer h2 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 2px solid rgba(235,231,208,.25); font-size: 13px; font-weight: 600; }
.nanny { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; }
.nanny img { width: 36px; height: 36px; border-radius: 6px; border: 2px solid var(--yellow); transition: transform .5s cubic-bezier(.34, 1.8, .5, 1); }
.nanny:hover img { transform: rotate(-16deg) scale(1.2); }
.nanny img:hover { animation: nanny-wiggle .6s ease-in-out; }
@keyframes nanny-wiggle { 0%,100% { transform: rotate(-16deg) scale(1.2); } 30% { transform: rotate(14deg) scale(1.25); } 60% { transform: rotate(-8deg) scale(1.2); } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Botón flotante WhatsApp / diagnóstico en móvil */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  transform: translateY(120%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 6px 0 var(--blue-ink); border: 2px solid var(--blue-ink); }
@media (max-width: 700px) { .sticky-cta { display: block; } body:has(.sticky-cta) .site-footer { padding-bottom: 100px; } }

/* Aparición al hacer scroll */
/* Usa la propiedad `translate` para no interferir con los `transform` del hover */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-in { opacity: 1; translate: none; }
.pack.reveal, .service.reveal, a.trastienda.reveal {
  transition: opacity .6s ease, translate .6s ease, transform .5s cubic-bezier(.34, 1.9, .5, 1), box-shadow .5s cubic-bezier(.34, 1.9, .5, 1);
}
.no-js .reveal { opacity: 1; translate: none; }

/* ==========================================================================
   Páginas de contenido (guía, legal)
   ========================================================================== */
.article-hero { padding: clamp(48px, 7vw, 88px) 0; }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; max-width: 980px; margin-top: 18px; }
.article-hero p { font-size: 18px; max-width: 760px; margin-top: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--yellow); }
.breadcrumbs { font-size: 13px; font-weight: 600; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--yellow); }

.article { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.toc { position: sticky; top: 108px; align-self: start; background: var(--cream-soft); border: 3px solid var(--blue); border-radius: var(--radius); padding: 20px; }
.toc h2 { font-size: 14px; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { padding-left: 18px; margin: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--crimson); }
.prose { max-width: 760px; color: var(--ink); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--blue); font-size: clamp(24px, 2.6vw, 32px); margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { color: var(--blue); font-size: 20px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--crimson); font-weight: 700; }
.prose a.btn { text-decoration: none; }
.prose a.btn--yellow { color: var(--blue-deep); }
.prose strong { color: var(--blue-ink); }
.tldr { background: var(--yellow); color: var(--blue-deep); border-radius: var(--radius); padding: 22px 24px; border: 3px solid var(--blue-ink); }
.tldr h2 { margin-top: 0 !important; font-size: 18px !important; color: var(--blue-deep) !important; text-transform: uppercase; }
.tldr ul { margin-top: 10px; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--cream-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 !important; }
.checklist input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--crimson); flex: none; }
.callout { background: var(--blue); color: var(--cream); border-radius: var(--radius); padding: 24px; box-shadow: 6px 6px 0 var(--crimson); }
.callout h3 { color: var(--yellow) !important; margin-top: 0 !important; }
.callout p { margin-top: 10px; }
.callout .btn { margin-top: 16px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 2px solid var(--cream); text-align: left; vertical-align: top; }
.compare th { background: var(--blue); color: var(--cream); font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.article > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

.legal { max-width: 820px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.notfound { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.notfound h1 { font-size: clamp(40px, 8vw, 96px); }
.notfound p { font-size: 18px; margin: 16px auto 28px; max-width: 520px; }

/* ==========================================================================
   Página de contratación (formulario adaptado a cada servicio)
   ========================================================================== */
.chips--services { gap: 10px; }
.chip--service span { gap: 8px; align-items: center; padding: 10px 16px; }
.chip--service .icon { width: 16px; height: 16px; }
.service-fields { border: 3px solid var(--blue); border-radius: var(--radius); padding: 22px 22px 24px; margin: 0; display: grid; gap: 20px; background: var(--cream-soft); }
.service-fields[hidden] { display: none; }
.service-fields__title { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; color: var(--blue); }
.service-fields__title .icon { color: var(--crimson); }
.field label small { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .7; }
.service-info .icon-tile { background: var(--yellow); margin-bottom: 14px; }
.service-info .icon-tile .icon { color: var(--blue-deep); }
.service-info h3 { margin-bottom: 8px; }
.service-info p { font-size: 15px; }
.service-info h4 { font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin: 18px 0 10px; }
.service-info__time { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--yellow); }
.service-info__time .icon { color: var(--yellow); }
.chips__group { flex-basis: 100%; margin: 6px 0 -2px; font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }
.chips__group:first-of-type { margin-top: 0; }
.service-info__price { font-family: var(--font-display); font-size: 26px; color: var(--yellow); margin: -2px 0 10px; }

/* ==========================================================================
   Ajustes para móvil
   ========================================================================== */
@media (max-width: 600px) {
  /* Eslogan en una sola línea */
  .hero__tagline { font-size: 12.5px; letter-spacing: .1em; padding-left: .1em; }
  /* Botones que se partían en varias líneas */
  .hero__ctas .btn { width: 100%; letter-spacing: .5px; font-size: 13.5px; padding: 14px 18px; white-space: nowrap; }
  .btn--retro { width: 100%; letter-spacing: 1px; padding: 15px 18px; font-size: 13.5px; white-space: nowrap; }
  /* Sectores: una tira que se desliza en lugar de 5 filas */
  .sector-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 6px var(--gutter) 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .sector-tabs::-webkit-scrollbar { display: none; }
  .sector-tab { flex: none; scroll-snap-align: start; }
  /* Tarjetas un poco más compactas */
  .service, .pack { padding: 22px 20px; }
  /* Pie en dos columnas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Contratar en móvil: primero lo que incluye el servicio, luego el formulario */
@media (max-width: 900px) {
  .contact:has(#hire-form) .contact-aside { order: -1; }
  .contact:has(#hire-form) .contact-card--yellow { display: none; }
}

/* ==========================================================================
   Índice lateral de secciones (escritorio)
   ========================================================================== */
.section-rail { position: fixed; right: 14px; top: 50%; translate: 0 -50%; z-index: 45; display: none; }
@media (min-width: 1180px) { .section-rail { display: block; } }
.section-rail ul { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: var(--blue-ink); border: 2px solid var(--cream); border-radius: 99px; }
.section-rail a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--cream); text-decoration: none; border-radius: 50%; }
.section-rail .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s cubic-bezier(.34, 1.8, .5, 1), color .2s, fill .2s; }
.section-rail a:hover .icon, .section-rail a:focus-visible .icon { color: var(--yellow); transform: scale(1.25) rotate(-12deg); }
.section-rail a.is-active .icon { color: var(--yellow); fill: var(--yellow); transform: scale(1.4); }
.section-rail a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
/* Nombres: aparecen todos al pasar el ratón por la columna */
.section-rail__label {
  position: absolute; right: calc(100% + 14px); top: 50%; translate: 10px -50%; opacity: 0; pointer-events: none;
  white-space: nowrap; background: var(--blue-ink); color: var(--cream); border: 2px solid var(--cream); border-radius: 99px;
  padding: 3px 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--crimson); transition: opacity .2s ease, translate .45s cubic-bezier(.34, 1.8, .5, 1);
}
.section-rail:hover .section-rail__label, .section-rail:focus-within .section-rail__label { opacity: 1; translate: 0 -50%; pointer-events: auto; }
.section-rail a.is-active .section-rail__label { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.section-rail a:hover .section-rail__label { border-color: var(--yellow); }
.section-rail li:nth-child(1) .section-rail__label { transition-delay: 0ms; }
.section-rail li:nth-child(2) .section-rail__label { transition-delay: 25ms; }
.section-rail li:nth-child(3) .section-rail__label { transition-delay: 50ms; }
.section-rail li:nth-child(4) .section-rail__label { transition-delay: 75ms; }
.section-rail li:nth-child(5) .section-rail__label { transition-delay: 100ms; }
.section-rail li:nth-child(6) .section-rail__label { transition-delay: 125ms; }
.section-rail li:nth-child(7) .section-rail__label { transition-delay: 150ms; }
.section-rail li:nth-child(8) .section-rail__label { transition-delay: 175ms; }
.section-rail li:nth-child(9) .section-rail__label { transition-delay: 200ms; }
.section-rail li:nth-child(10) .section-rail__label { transition-delay: 225ms; }
/* El salto de entrada del jaguar no debe ensanchar la página en móvil */
.hero { overflow-x: clip; }
/* Con el menú móvil abierto, la barra fija de diagnóstico sobra (ya está en el menú) */
body:has(.nav__links.is-open) .sticky-cta { display: none; }

/* Botón de diagnóstico (cabecera y barra fija del móvil): un destello discreto cada 8 s */
.nav__cta, .sticky-cta .btn { position: relative; overflow: hidden; isolation: isolate; }
.nav__cta::after, .sticky-cta .btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: cta-shine 8s 3s ease-in-out infinite;
}
.nav__cta:hover::after, .sticky-cta .btn:hover::after { animation-play-state: paused; }
@keyframes cta-shine { 0% { left: -40%; } 12%, 100% { left: 130%; } }
/* Contratar en móvil: si ya viene un servicio elegido, se muestra solo ese con opción de cambiarlo */
.chips__change { order: 99; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); background: none; border: 0; cursor: pointer; padding: 8px 4px; }
.chips--services.is-collapsed .chips__group,
.chips--services.is-collapsed .chip:not(:has(input:checked)) { display: none; }
/* Logo del pie: quieto; al pasar el ratón el jaguar mueve la cola */
.alogo--footer { width: 170px; }
.alogo--footer :is(.alogo__rstar, .alogo__agencia, .alogo__singular, .alogo__leap, .alogo__beat, .alogo__swing, .alogo__paw) { animation: none !important; }
.footer-logo:hover .alogo--footer .alogo__swing,
.footer-logo:focus-visible .alogo--footer .alogo__swing { animation: alogo-swing 1.1s ease-in-out infinite !important; }

/* Resultado del test: recomendación */
.quiz__reco { background: var(--blue); color: var(--cream); border-radius: var(--radius); padding: 18px 20px; box-shadow: 5px 5px 0 var(--yellow); display: grid; gap: 6px; }
.quiz__reco-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.quiz__reco-name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.quiz__reco-why { font-size: 14.5px; }
.quiz__reco .btn { justify-self: start; margin-top: 8px; }
.quiz__alt-title, .quiz__tips-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.quiz__alt-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quiz__alt-item { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--blue); border: 2px solid var(--blue); border-radius: 99px; padding: 6px 14px; transition: background-color .2s, color .2s, transform .45s cubic-bezier(.34, 1.8, .5, 1); }
.quiz__alt-item::after { content: " →"; }
.quiz__alt-item:hover { background: var(--blue); color: var(--cream); transform: translateY(-2px); }
.quiz__alt[hidden] { display: none; }

/* Test en móvil */
@media (max-width: 600px) {
  .quiz__card { min-height: 560px; }                         /* misma altura en todas las preguntas */
  .score { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; align-items: center; }
  .score > div:last-child { display: contents; }
  .score__ring { width: 76px; height: 76px; }
  .score__ring span { width: 54px; height: 54px; font-size: 20px; }
  .score h3 { font-size: 19px; }
  .score p { grid-column: 1 / -1; }
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .quiz__reco .btn { justify-self: stretch; padding: 13px 14px; }
  .quiz__reco .cta-pack { display: none; }  /* el nombre del pack ya está justo encima */
}

/* Contratar: título en dos líneas fijas (no salta al cambiar de servicio) */
.hire-title { display: flex; flex-direction: column; }
.hire-title [data-hire-title] { font-size: min(1em, calc((100vw - 2 * var(--gutter)) / 18.5)); white-space: nowrap; }
.hire-title__kicker { font-size: .45em; letter-spacing: .12em; color: var(--cream); text-shadow: none; margin-bottom: .2em; }
.service-info { transition: opacity .25s; }
.service-info:not([hidden]) { animation: panel-in .35s cubic-bezier(.3, 1.2, .5, 1); }

/* Contratar en móvil: primero el selector, justo debajo la información del servicio y después el resto */
@media (max-width: 900px) {
  .contact:has(#hire-form) { display: flex; flex-direction: column; gap: 22px; }
  .contact:has(#hire-form) > #hire-form { display: contents; }
  #hire-form > * { order: 3; }
  #hire-form > .chips--services { order: 1; }
  .contact:has(#hire-form) .contact-aside { order: 2; }
  .contact:has(#hire-form) .service-info { padding: 18px 20px; }
  .contact:has(#hire-form) .service-info .icon-tile { display: none; }
  .contact:has(#hire-form) .service-info h4 { margin-top: 12px; }
}

