/* ============ Paula Mateu · paulamateub.com ============ */
:root {
  --blue: #4849E8;
  --blue-dark: #3536c9;
  --lime: #DDF344;
  --lavender: #ABC4FF;
  --bg: #FDFEFF;
  --ink: #16163A;
  --ink-soft: #4a4a6a;
  --line: #e3e5f2;
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 56px);
  --f-display: "Archivo", "Arial Black", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.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 { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* ---------- Botones píldora ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 16px/1 var(--f-sans);
  padding: 18px 34px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 11px 22px; font-size: 15px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(72,73,232,.7); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(22,22,58,.45); }
.btn--lime:hover { background: #e8fa6a; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- 1 · Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--hdr-r, max(var(--gutter), 32px)) 0 var(--hdr-l, max(var(--gutter), 32px));
  background: rgba(253,254,255,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.logo { display: block; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); flex: none; }
.nav .btn { white-space: nowrap; flex: none; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 500; position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- 2 · Portada (composición tipo "I'm ui/ux DESIGNER") ---------- */
.hero {
  /* la portada ocupa algo menos que la pantalla: asoma la franja lima */
  --vis-h: min(max(calc(100svh - 30px), 680px), 980px);
  position: relative; overflow: hidden;
}
.hero__visual { position: relative; height: var(--vis-h); }
.hero::before { /* halo suave detrás de la foto */
  content: ""; position: absolute; left: 50%; bottom: -22%; width: min(78vw, 1000px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(72,73,232,.30), rgba(171,196,255,.45) 45%, rgba(171,196,255,0));
  pointer-events: none;
}
/* Foto: apoyada abajo, cabeza centrada en la página */
.hero__figure {
  position: absolute; z-index: 2; bottom: 0; left: 50%;
  height: calc(var(--vis-h) * .8); aspect-ratio: 732 / 800; /* JS ajusta altura y posición */
  transform: translateX(-41%);
}
.hero__figure img { width: 100%; height: 100%; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .1s; }
/* STRATEGIST partida en dos: STRAT · cabeza · EGIST (JS coloca cada mitad junto a la cabeza) */
.hero__word {
  position: absolute; z-index: 1; inset: 0; margin: 0; pointer-events: none;
  /* versión estrecha de Archivo: letras más altas sin ocupar más ancho */
  font-family: var(--f-display); font-weight: 800; font-stretch: 62.5%;
  font-variation-settings: "wdth" 62.5;
  color: var(--blue); line-height: .82; letter-spacing: -.01em; white-space: nowrap;
  font-size: 9vw;
}
.hero__word .hw { position: absolute; top: 40%; transform: translateY(-50%); }
/* Máquina de escribir: cada letra aparece de golpe, con un cursor detrás de la última */
.hero__word .hw i { font-style: normal; position: relative; }
.js-typing .hero__word .hw i { opacity: 0; }
.js-typing .hero__word .hw i.on { opacity: 1; }
.hero__word .hw--l { right: 55%; }
.hero__word .hw--r { left: 55%; }
/* "social" y "media": a cada lado de la cabeza (JS las coloca) */
.hero__serif {
  position: absolute; z-index: 3; top: 20%;
  font-family: var(--f-serif); font-style: italic; line-height: 1;
  font-size: clamp(40px, 9vw, 150px); color: var(--ink); white-space: nowrap;
  animation: fadeIn 1s ease both .5s;
}
.hero__serif--l { right: 62%; }
.hero__serif--r { left: 60%; }

.hero__sides { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
/* Textos laterales: el izquierdo empieza donde empieza la S de STRAT; el derecho acaba donde acaba la T de EGIST (JS) */
.hero__col { position: absolute; pointer-events: auto; }
.hero__col--l { left: var(--word-start, 64px); top: var(--col-top, 62%); text-align: left; }
.hero__col--r { right: var(--word-end, 64px); top: var(--col-top, 62%); text-align: right; }
.hero__side {
  position: relative; display: block; color: var(--ink); text-decoration: none;
  padding-top: 18px;
}
.hero__q { display: block; white-space: nowrap; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--blue); }
.hero__a { display: block; margin-top: 6px; max-width: 340px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.hero__col--r .hero__a { margin-left: auto; }
/* Si no cabe junto al cuerpo, la pregunta pasa a dos líneas */
.hero--tight .hero__q { white-space: normal; max-width: 280px; }
.hero--tight .hero__a { max-width: 280px; }
.hero--tight .hero__col--r .hero__q { margin-left: auto; }
.hero__side::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px;
  background: var(--lime); transition: width .3s ease;
}
.hero__col--r .hero__side::before { left: auto; right: 0; }
.hero__side:hover::before { width: 72px; }
.hero__side:hover .hero__a { color: var(--blue); }
/* Botón Hablemos: debajo del texto izquierdo, píldora azul sin sombra ni borde */
.hero__cta {
  position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 14px 32px; gap: 12px;
  background: var(--blue); color: #fff; border: 0; box-shadow: none; font-size: 17px;
}
.hero__cta:hover { background: var(--ink); transform: translateX(-50%) translateY(-2px); }
.hero__cta::after { content: "→"; font-size: 1.2em; line-height: 1; transition: transform .25s ease; }
.hero__cta:hover::after { transform: translateX(5px); }
@keyframes ctaPulse { 0%, 80%, 100% { scale: 1; } 88% { scale: 1.05; } 94% { scale: .98; } }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Títulos de sección ---------- */
.section-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  text-align: center; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-title em { text-transform: none; color: var(--blue); font-size: 1.15em; letter-spacing: 0; }

/* ---------- 3 · Números ---------- */
.numbers { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); background: var(--bg); position: relative; z-index: 1; }
.numbers__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); text-align: center;
}
.numbers__list li { padding: 8px clamp(28px, 5vw, 80px); }
.numbers__list li + li { border-left: 1px solid var(--line); }
.numbers__list strong {
  display: inline-flex; align-items: flex-start; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.numbers__plus { font-size: .6em; margin-right: .06em; opacity: .55; }
.numbers__list p {
  margin: 22px auto 0; max-width: 260px; padding-top: 22px; position: relative;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; font-weight: 500; color: var(--ink);
}
.numbers__list p::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 44px; height: 4px; margin-left: -22px;
  border-radius: 4px; background: var(--lime);
  transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) .9s;
}
.numbers__list p em { color: var(--blue); font-size: 1.18em; }
.numbers.is-in .numbers__list p::before { transform: scaleX(1); }
/* entrada escalonada al aparecer */
.numbers__list li { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.numbers__list li:nth-child(2) { transition-delay: .15s; }
.numbers__list li:nth-child(3) { transition-delay: .3s; }
.numbers.is-in .numbers__list li { opacity: 1; transform: none; }

.marquee {
  position: relative; margin-top: clamp(48px, 7vw, 88px); overflow: hidden; background: var(--blue); padding: 34px 0;
}
.marquee::before, .marquee::after { /* los logos entran y salen difuminados en el azul */
  content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blue), rgba(72,73,232,0)); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--blue), rgba(72,73,232,0)); }
/* Bucle continuo: dos copias idénticas; la pista se desplaza la mitad y vuelve a empezar sin salto */
.marquee__track { display: flex; width: max-content; animation: marquee 110s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(80px, 9vw, 140px); padding-right: clamp(80px, 9vw, 140px); flex: none; }
.brand { flex: none; display: grid; place-items: center; }
.brand img { width: auto; height: 46px; opacity: .92; }
.brand--sq img { height: 64px; }
.brand--wide img { height: 44px; }
.brand--gva img { height: 62px; opacity: 1; }
.brand--named { display: flex; align-items: center; gap: 12px; }
.brand__name { color: #fff; font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; opacity: .92; }
.brand__name small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; letter-spacing: .18em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 4 · Servicios (carpeta) ---------- */
.services { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.services__title { font-size: clamp(44px, 7vw, 104px); line-height: .95; }
.services__title .services__lime { color: var(--lime); }
.services__title em { display: block; margin-top: .05em; color: var(--ink); }
.folder { max-width: 1160px; margin: 0 auto; --c: var(--blue); --c-ink: #fff; --fill: var(--lime); }
.folder[data-active="campanas"] { --c: var(--lime); --c-ink: var(--ink); --fill: var(--blue); }
.folder[data-active="asesoria"] { --c: var(--lavender); --c-ink: var(--ink); --fill: var(--blue); }

.folder__tabs { display: flex; gap: 6px; padding: 14px 32px 0; overflow-x: auto; scrollbar-width: none; }
.folder__tabs::-webkit-scrollbar { display: none; }
.folder__tab {
  flex: 0 0 auto; cursor: pointer;
  font: 800 clamp(12px, 1.2vw, 15px)/1 var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 20px clamp(18px, 2.4vw, 32px) 18px; border: 0; border-radius: 22px 22px 0 0;
  color: var(--ink); opacity: .8; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.folder__tab[data-tab="gestion"] { background: var(--blue); color: #fff; }
.folder__tab[data-tab="campanas"] { background: var(--lime); }
.folder__tab[data-tab="asesoria"] { background: var(--lavender); }
.folder__tab:hover { opacity: .85; transform: translateY(2px); }
.folder__tab[aria-selected="true"] { opacity: 1; transform: none; }
/* Pestañas cerradas: "tienes una notificación" — punto que late + saltito con meneo */
.folder__tab { position: relative; }
.folder__tab[aria-selected="false"] { animation: tabNudge 2.8s ease-in-out infinite; }
.folder__tab[aria-selected="false"]:nth-child(3) { animation-delay: 1.4s; }
.folder__tab[aria-selected="false"]:hover { animation-play-state: paused; opacity: 1; }
@keyframes tabNudge {
  0%, 55%, 100% { transform: translateY(6px) rotate(0); opacity: .85; }
  62% { transform: translateY(-8px) rotate(-2deg); opacity: 1; }
  69% { transform: translateY(6px) rotate(1.5deg); }
  76% { transform: translateY(-3px) rotate(-1deg); opacity: .95; }
  83% { transform: translateY(6px) rotate(0); opacity: .85; }
}


.folder__body {
  background: var(--c); color: var(--c-ink);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  transition: background-color .45s ease, color .45s ease;
}
.panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.panel:focus-visible { outline-offset: 12px; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(34px, 5.4vw, 76px); line-height: .95; letter-spacing: -.01em;
}
.panel__title em { display: block; font-size: 1.15em; letter-spacing: 0; }
/* Máquina de escribir sin cursor: cada letra ocupa su sitio y se va encendiendo */
.panel__type .ch { opacity: 0; }
.panel__type .ch.on { opacity: 1; }
/* "Para ti si…": tarjeta blanca tipo mensaje, ligeramente girada, con etiqueta de color */
.panel__for {
  position: relative; max-width: 600px; margin-top: 34px;
  padding: 26px 30px 22px; border-radius: 22px 22px 22px 6px;
  background: #fff; color: var(--ink); text-align: left;
  font-family: var(--f-sans); font-weight: 500; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45;
  box-shadow: 0 18px 36px -20px rgba(22,22,58,.5);
  transform: rotate(-1.5deg);
}
.panel__tag {
  position: absolute; top: -15px; left: 22px; transform: rotate(-3deg);
  padding: 6px 14px; border-radius: 999px;
  background: var(--fill); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.folder[data-active="gestion"] .panel__tag { color: var(--ink); }
.panel__fortext::first-letter { text-transform: uppercase; }
.panel__fortext { display: block; }
.panel.is-playing .panel__for { animation: forPop .6s cubic-bezier(.34,1.56,.64,1) .5s both; }
@keyframes forPop { from { opacity: 0; transform: rotate(-6deg) scale(.9) translateY(10px); } to { opacity: 1; transform: rotate(-1.5deg); } }
/* Botón de cada servicio: píldora con círculo que se expande, brillo que pasa y "pop" al acabar la línea del tiempo */
.svc-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 30px; border-radius: 999px;
  background: #fff; color: var(--blue); text-decoration: none;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 16px 34px -16px rgba(22,22,58,.55);
  transition: color .35s ease, transform .25s ease;
}
.svc-btn__label { position: relative; z-index: 1; }
.svc-btn__icon {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--fill); color: #fff;
}
.folder[data-active="gestion"] .svc-btn__icon { color: var(--ink); }
.svc-btn__icon svg { position: relative; z-index: 1; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.svc-btn__icon::before { /* círculo que se expande y rellena el botón al pasar el ratón */
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fill); z-index: -1;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.svc-btn::after { /* brillo que cruza el botón de vez en cuando */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite 6s;
}
@keyframes shine { 0%, 75% { left: -40%; } 95%, 100% { left: 130%; } }
.svc-btn:hover { color: #fff; transform: translateY(-2px); }
.folder[data-active="gestion"] .svc-btn:hover { color: var(--ink); }
.svc-btn:hover .svc-btn__icon::before { transform: scale(14); }
.svc-btn:hover .svc-btn__icon svg { transform: rotate(-45deg); }
.svc-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* aparece con un salto justo cuando la línea del tiempo termina, y luego "respira" */
.panel.is-playing .svc-btn { animation: svcPop .6s cubic-bezier(.34,1.56,.64,1) 9.6s both, svcBreath 3s ease-in-out 10.4s infinite; }
@keyframes svcPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes svcBreath { 0%, 100% { box-shadow: 0 16px 34px -16px rgba(22,22,58,.55), 0 0 0 0 var(--fill); } 50% { box-shadow: 0 16px 34px -16px rgba(22,22,58,.55), 0 0 0 8px transparent; } }
.panel.is-playing .svc-btn:hover { animation: none; }
.panel__desc { max-width: 700px; margin-top: 30px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; font-weight: 500; }

.timeline {
  position: relative; width: 100%; max-width: 940px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: clamp(40px, 5vw, 64px) 0 clamp(36px, 4vw, 52px);
}
.timeline::before { /* línea base */
  content: ""; position: absolute; top: 9px; left: 12.5%; right: 12.5%; height: 2px;
  background: currentColor; opacity: .3;
}
.timeline::after { /* línea que se va rellenando */
  content: ""; position: absolute; top: 8px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px;
  background: var(--fill); transform: scaleX(0); transform-origin: left center;
}
/* Avanza tramo a tramo y se detiene un momento en cada punto (≈ 9,5 s en total) */
.panel.is-playing .timeline::after { animation: tlFillX 10s ease-in-out both; }
@keyframes tlFillX {
  0%, 8% { transform: scaleX(0); }
  30%, 40% { transform: scaleX(.3333); }
  62%, 72% { transform: scaleX(.6667); }
  94%, 100% { transform: scaleX(1); }
}
@keyframes tlFillY {
  0%, 8% { transform: scaleY(0); }
  30%, 40% { transform: scaleY(.3333); }
  62%, 72% { transform: scaleY(.6667); }
  94%, 100% { transform: scaleY(1); }
}
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 500; line-height: 1.35; padding: 0 4px; }
.timeline li::before { /* punto: vacío hasta que llega la línea */
  content: ""; width: 20px; height: 20px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--c); box-shadow: inset 0 0 0 2px var(--c-ink), 0 0 0 6px var(--c); margin-bottom: 10px;
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.panel.is-playing .timeline li::before { background: var(--fill); box-shadow: inset 0 0 0 2px var(--fill), 0 0 0 6px var(--c); animation: dotPop .4s ease both; }
.panel.is-playing .timeline li:nth-child(1)::before { transition-delay: .3s; animation-delay: .3s; }
.panel.is-playing .timeline li:nth-child(2)::before { transition-delay: 3s; animation-delay: 3s; }
.panel.is-playing .timeline li:nth-child(3)::before { transition-delay: 6.2s; animation-delay: 6.2s; }
.panel.is-playing .timeline li:nth-child(4)::before { transition-delay: 9.4s; animation-delay: 9.4s; }
@keyframes dotPop { 50% { transform: scale(1.45); } }
.timeline span { font-family: var(--f-sans); font-weight: 700; font-size: 14px; letter-spacing: .06em; opacity: .7; }

/* ---------- 5 · Sobre mí ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px);
  align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 10vw, 140px);
}
.about__photo { position: relative; }
.about__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%;
  border-radius: 32px; background: var(--lavender);
}
.about__sticker {
  position: absolute; right: -22px; bottom: 34px; transform: rotate(-6deg);
  background: var(--lime); color: var(--ink); padding: 14px 22px; border-radius: 999px;
  font: 500 15px/1.15 var(--f-sans); text-align: center; box-shadow: 0 14px 30px -14px rgba(22,22,58,.4);
}
.about__sticker b { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .03em; }
.about__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(38px, 5vw, 72px); line-height: 1; text-transform: uppercase; margin-bottom: 28px;
}
.about__title em { display: block; text-transform: none; color: var(--blue); font-size: 1.15em; }
/* "hooola": las letras saltan en ola y la mano saluda, cada pocos segundos */
.hola span { display: inline-block; }
.hola span:not(.hola__wave) { animation: holaJump 3.6s ease-in-out infinite; }
.hola span:nth-child(2) { animation-delay: .08s; }
.hola span:nth-child(3) { animation-delay: .16s; }
.hola span:nth-child(4) { animation-delay: .24s; }
.hola span:nth-child(5) { animation-delay: .32s; }
.hola span:nth-child(6) { animation-delay: .4s; }
.hola span:nth-child(7) { animation-delay: .48s; }
@keyframes holaJump { 0%, 30%, 100% { transform: none; } 10% { transform: translateY(-.22em) rotate(-6deg); } 20% { transform: translateY(0) scaleY(.92); } }
.hola__wave { font-size: .7em; margin-left: .15em; transform-origin: 70% 80%; animation: wave 3.6s ease-in-out infinite .5s; }
@keyframes wave { 0%, 40%, 100% { transform: rotate(0); } 8% { transform: rotate(18deg); } 16% { transform: rotate(-10deg); } 24% { transform: rotate(16deg); } 32% { transform: rotate(-6deg); } }
.about__text p + p { margin-top: 16px; }
.about__text p { font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.about__close { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.25; color: var(--ink) !important; margin-top: 28px !important; }

/* ---------- 6 · Mensajes de clientes ---------- */
.reviews {
  background: #f3f5ff; padding: clamp(72px, 10vw, 130px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
}
.reviews__title { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.1; }
.reviews__title em { display: inline-block; color: var(--blue); font-size: 1.9em; line-height: 1; }

.reviews__stage { position: relative; width: 100%; max-width: 1080px; height: 600px; margin: 40px 0 48px; }
.reviews__lines { position: absolute; inset: 20px 0; width: 100%; height: calc(100% - 40px); }
.reviews__lines path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .5; vector-effect: non-scaling-stroke; }

.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg);
  width: 280px; height: 576px; border-radius: 44px; background: var(--ink); padding: 11px;
  box-shadow: 0 40px 70px -30px rgba(22,22,58,.55);
}
.phone::before { /* isla de la cámara */
  content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 99px; background: var(--ink); z-index: 2;
}
.phone__screen { height: 100%; border-radius: 34px; background: #fff; overflow: hidden; text-align: left; }

/* Pantalla de estadísticas (estilo Instagram) */
.ig { display: flex; flex-direction: column; gap: 12px; padding: 44px 14px 14px; font-size: 12px; line-height: 1.3; color: var(--ink); }
.ig small { display: block; color: var(--ink-soft); font-size: 10.5px; }
.ig b { font-variant-numeric: tabular-nums; }
.ig em { font-family: var(--f-sans); font-style: normal; }
.ig__row { display: flex; justify-content: space-between; align-items: center; background: #f4f5fb; border-radius: 14px; padding: 9px 10px; }
.ig__row b { display: block; font-size: 15px; }
.ig__row em { font-size: 11px; font-weight: 700; color: #1f9d55; }
.ig__bar { display: flex; justify-content: space-between; align-items: center; }
.ig__title { font-weight: 700; font-size: 15px; }
.ig__chip { background: #f1f2f8; border-radius: 99px; padding: 4px 9px; font-size: 10px; font-weight: 600; }
.ig__ring { position: relative; width: 150px; height: 150px; margin: 2px auto 0; }
.ig__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ig__ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ig__ring-bg { stroke: #eef0fb; }
.ig__ring-fg { stroke: var(--blue); stroke-dasharray: 310 327; }                 /* 94,8 % */
.ig__ring-acc { stroke: var(--lime); stroke-dasharray: 13 327; stroke-dashoffset: -313; } /* 5,2 % */
.ig__ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ig__ring-txt b { font-size: 23px; letter-spacing: -.02em; }
.ig__legend { display: flex; justify-content: center; gap: 10px; font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.ig__legend b { color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.dot--b { background: var(--blue); } .dot--l { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(22,22,58,.15); }
.ig__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ig__tile { background: #f4f5fb; border-radius: 14px; padding: 9px 10px; }
.ig__tile b { display: block; font-size: 17px; margin: 2px 0 1px; }
.ig__tile em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #1f9d55; }
.ig__tile--lime { background: var(--lime); }
.ig__tile--lime small, .ig__tile--lime em { color: var(--ink); }
.ig__chart { background: #f4f5fb; border-radius: 14px; padding: 9px 10px 10px; }
.ig__chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.ig__chart-head b { font-size: 14px; }
.ig__bars { display: flex; align-items: flex-end; gap: 2px; height: 58px; margin-top: 8px; }
.ig__bars i { flex: 1; height: max(2px, var(--h)); background: var(--blue); border-radius: 2px 2px 0 0; transform-origin: bottom; }
/* animación al aparecer */
.reviews.is-in .ig__bars i { animation: barUp .8s cubic-bezier(.2,.8,.2,1) both; }
.reviews.is-in .ig__bars i:nth-child(n+25) { animation-delay: .5s; }
.reviews.is-in .ig__ring-fg { animation: ringDraw 1.4s cubic-bezier(.65,0,.35,1) both; }
.reviews.is-in .ig__ring-acc { animation: fadeIn .4s ease 1.3s both; }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes ringDraw { from { stroke-dasharray: 0 327; } }

.reviews__cards { position: absolute; inset: 0; margin: 0; padding: 0; }
.msg {
  position: absolute; width: 270px; text-align: left;
  animation: float 6s ease-in-out infinite;
}
/* Mensajes con estilo WhatsApp */
.wa { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; filter: drop-shadow(0 18px 26px rgba(22,22,58,.18)); }
.wa__b {
  position: relative; margin: 0; background: #fff; border-radius: 4px 16px 16px 16px;
  padding: 9px 12px 8px; font-size: 15px; line-height: 1.38; color: #111b21;
}
.wa__b:first-child::before { /* colita */
  content: ""; position: absolute; top: 0; left: -7px; width: 10px; height: 12px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wa__b time { float: right; margin: 8px 0 -4px 10px; font-size: 11px; color: #667781; }
.wa__typing { display: flex; gap: 6px; padding: 18px 24px; }
.wa__typing i { width: 10px; height: 10px; border-radius: 50%; background: #9aa3ad; animation: dot 1.2s ease-in-out infinite; }
.wa__typing i:nth-child(2) { animation-delay: .15s; } .wa__typing i:nth-child(3) { animation-delay: .3s; }
.msg--1 { left: 0; top: 6%; rotate: -4deg; }
.msg--2 { right: 0; top: 2%; rotate: 3deg; animation-delay: -1.5s; }
.msg--3 { left: 2%; bottom: 4%; rotate: 2deg; animation-delay: -3s; }
.msg--4 { right: 2%; bottom: 6%; rotate: -3deg; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- 7 · FAQ ---------- */
.faq { padding: clamp(72px, 10vw, 140px) var(--gutter); }
/* Título con "preguntando…" seleccionado como texto (fondo + tiradores), que se anima al aparecer */
.faq__title { font-size: clamp(28px, 3.6vw, 52px); }
.sel { position: relative; display: block; width: fit-content; margin: .45em auto 0; padding: .02em .22em .14em; isolation: isolate; }
.sel em { display: block; color: var(--ink); font-size: clamp(64px, 9vw, 132px); line-height: 1.1; letter-spacing: -.01em; }
/* "preguntando…" se escribe letra a letra (sin cursor) */
.js-anim .faq .tw { opacity: 0; }
.faq .tw.on { opacity: 1; }
.faq__cards {
  max-width: 1240px; margin: clamp(40px, 5vw, 64px) auto 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch;
}
.qcard {
  position: relative; display: flex; flex-direction: column; gap: 16px; text-align: left;
  background: #eef2ff; color: var(--ink); border: 2px solid transparent; border-radius: 26px; padding: 26px 22px 22px;
  cursor: pointer; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.qcard:nth-child(even) { background: #f6fbd8; }
.qcard:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(22,22,58,.45); }
.qcard__q { margin: 0; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.qcard__a { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.qcard__a:not([hidden]) { animation: qOpen .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* Botón grande y llamativo; toda la tarjeta lo activa */
.qcard__btn {
  margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 20px; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; font: 700 15px/1 var(--f-sans);
  box-shadow: 0 10px 20px -12px rgba(72,73,232,.8);
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.qcard__btn::before { content: ""; position: absolute; inset: 0; border-radius: 26px; } /* la tarjeta entera es clicable */
.qcard__btn i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); }
.qcard__btn i::before, .qcard__btn i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease;
}
.qcard__btn i::after { transform: rotate(90deg); }
.qcard:hover .qcard__btn { transform: scale(1.03); }
.qcard__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* abierta: se despliega en claro, fácil de leer */
.qcard.is-open { background: #fff; border-color: var(--blue); box-shadow: 0 22px 40px -24px rgba(72,73,232,.55); }
.qcard.is-open .qcard__q { color: var(--blue); }
.qcard.is-open .qcard__btn { background: var(--lime); color: var(--ink); box-shadow: none; }
.qcard.is-open .qcard__btn i { background: var(--ink); }
.qcard.is-open .qcard__btn i::before { background: var(--lime); }
.qcard.is-open .qcard__btn i::after { transform: rotate(0deg); background: var(--lime); }
@media (max-width: 1180px) and (min-width: 861px) { .faq__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 8 · Formulario ---------- */
.contact {
  background: var(--blue); color: #fff;
  padding: clamp(64px, 8vw, 110px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px);
}
/* Título arriba y centrado; cuestionario debajo, compacto */
.contact__intro { max-width: 720px; text-align: center; }
.contact__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(44px, 6vw, 88px); line-height: .95; text-transform: uppercase;
}
.contact__title em { text-transform: none; color: var(--lime); font-size: 1.12em; position: relative; display: inline-block; }
/* ¿Hablamos?: las letras caen una a una con rebote, se dibuja un subrayado y los signos se balancean */
.contact__title .cl { display: inline-block; }
.js-anim .contact__title .cl { opacity: 0; transform: translateY(-.6em) rotate(-12deg) scale(.6); }
.contact.is-in .contact__title .cl { animation: clDrop .7s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 70ms) both; }
.contact.is-in .contact__title .cl:first-child, .contact.is-in .contact__title .cl:last-child {
  animation: clDrop .7s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 70ms) both, clSwing 2.4s ease-in-out 1.6s infinite;
  transform-origin: 50% 90%;
}
@keyframes clDrop { from { opacity: 0; transform: translateY(-.6em) rotate(-12deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes clSwing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
.contact__title em::after { /* trazo blanco que se dibuja debajo */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -.04em; height: .06em; border-radius: 99px;
  background: #fff; transform: scaleX(0); transform-origin: left;
}
.contact.is-in .contact__title em::after { transform: scaleX(1); transition: transform .8s cubic-bezier(.65,0,.35,1) .9s; }
.contact__intro p { margin-top: 14px; font-size: 19px; opacity: .9; }

.wizard { width: 100%; max-width: 1040px; background: var(--bg); color: var(--ink); border-radius: 28px; padding: 26px clamp(22px, 3vw, 40px) 22px; display: flex; flex-direction: column; }
.wizard__progress { height: 6px; background: #eceefb; border-radius: 99px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .4s ease; }
.wizard__count { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.step { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; flex: 1; }
.step:not([hidden]) { animation: panelIn .4s ease both; }
.step legend { padding: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 8px; }
.step__hint { font-size: 15px; color: var(--ink-soft); }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* escritorio: opciones en rejilla de 2 columnas, todas del mismo ancho */
@media (min-width: 861px) { .options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .opt span { width: 100%; } }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  border: 2px solid var(--line); font-weight: 500; line-height: 1.3;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.opt span::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; opacity: .4;
  transition: all .2s ease;
}
.opt input[type="checkbox"] + span::before { border-radius: 5px; }
.opt:hover span { border-color: var(--blue); }
.opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt input:checked + span::before { opacity: 1; background: var(--lime); border-color: var(--lime); box-shadow: inset 0 0 0 3px var(--blue); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.fields .check { grid-column: 1 / -1; }
.field span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; font: 400 17px/1.3 var(--f-sans); color: var(--ink);
  padding: 15px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  transition: border-color .2s ease;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field input[aria-invalid="true"], .check input[aria-invalid="true"] + span { border-color: #c81e4b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-top: 6px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); }

.wizard__error { min-height: 1.2em; color: #c81e4b; font-size: 15px; font-weight: 500; margin-top: 8px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.wizard__nav .btn[hidden] { display: none; }
.wizard__nav #btn-back[hidden] + #btn-next { margin-left: auto; }

.step[hidden] { display: none !important; }
.step--done { min-height: 160px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 20px; }
.done__big { font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--blue); }

/* ---------- 9 · Pie ---------- */
.footer {
  background: var(--ink); color: #fff; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start;
}
.logo--footer img { height: 52px; filter: brightness(0) invert(1); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; opacity: .75; grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.footer__legal .linklike { text-decoration: none; }
.footer__legal .linklike:hover { color: var(--lime); }
.footer__copy { font-size: 14px; opacity: .6; grid-column: 1 / -1; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--header-h) + 48px) var(--gutter) 96px; }
.legal__back { display: inline-block; margin-bottom: 24px; color: var(--blue); font-weight: 500; text-decoration: none; }
.legal__back:hover { text-decoration: underline; }
.legal__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(34px, 5vw, 60px); line-height: 1; text-transform: uppercase; margin-bottom: 36px;
}
.legal__body { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.legal__body h2 { color: var(--ink); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; margin: 40px 0 12px; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--ink); }
.legal__body a { color: var(--blue); }

/* ---------- Sticky CTA (móvil) ---------- */
.sticky-cta { display: none; }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px;
  background: #fff; color: var(--ink); border-radius: 24px; padding: 18px 22px;
  box-shadow: 0 24px 60px -20px rgba(22,22,58,.45);
  display: flex; align-items: center; gap: 18px; font-size: 14px;
}
.cookies[hidden] { display: none; }
.cookies a { color: var(--blue); }
.cookies__btns { display: flex; gap: 8px; flex: none; }

/* ================= Responsive ================= */
/* ---------- Línea separadora ---------- */
/* Línea lima fina al final de la portada */
.hero-line { position: relative; z-index: 3; height: 3px; background: var(--lime); }

/* Separador: "¿Hablamos?" con la línea tipo Siri a la izquierda y una burbuja de chat a la derecha */
.siri {
  position: relative; z-index: 3; background: var(--lime);
  display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 80px);
  padding: calc(clamp(22px, 3vw, 40px) - 9px) var(--gutter);   /* compensa el hueco extra entre texto y línea */
}
.siri__voice { position: relative; display: flex; flex-direction: column; align-items: center; }
/* el texto se desvanece y el bocadillo aparece encima de la línea, en su lugar */
.siri__text { transition: opacity .4s ease, transform .4s ease; }
.siri.is-done .siri__text { opacity: 0; transform: translateY(-10px); }
.siri__voice .siri__btn { position: absolute; left: 0; right: 0; bottom: 70px; margin: 0 auto; width: max-content; }
.siri__text {
  min-height: 1.15em; margin: 0;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1;
  color: var(--ink);
}
.siri__typed .q { color: var(--blue); }
.siri__line { display: block; width: min(720px, 90vw); height: 70px; margin-top: 14px; }

/* Burbuja de chat */
.siri__btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 10px 10px 28px;
  border-radius: 30px 30px 30px 8px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 18px 36px -18px rgba(72,73,232,.7);
  transform-origin: 50% 100%;
  opacity: 0; transform: scale(.3) translateY(20px); pointer-events: none;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.siri__btn::before { /* colita de la burbuja */
  content: ""; position: absolute; left: -7px; bottom: 0; width: 16px; height: 16px;
  background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-left-radius: 4px;
}
.siri.is-done .siri__btn { animation: bubblePop .55s cubic-bezier(.34,1.56,.64,1) forwards; pointer-events: auto; }
@keyframes bubblePop { from { opacity: 0; transform: scale(.3) translateY(20px); } to { opacity: 1; transform: none; } }

/* Fase 1: "escribiendo…" */
.siri__dots { display: inline-flex; gap: 6px; padding-right: 18px; }
.siri__dots i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .5; animation: dot 1s ease-in-out infinite; }
.siri__dots i:nth-child(2) { animation-delay: .15s; }
.siri__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Fase 2: aparece "Hablemos" y la flecha lima */
.siri__label, .siri__arrow { display: none; }
.siri.is-ready .siri__dots { display: none; }
.siri.is-ready .siri__label { display: inline; animation: labelIn .45s ease both; }
.siri.is-ready .siri__arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  animation: arrowIn .5s cubic-bezier(.34,1.56,.64,1) both .1s;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes labelIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes arrowIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.siri__btn:hover { background: var(--ink); box-shadow: 0 22px 40px -18px rgba(22,22,58,.6); }
.siri__btn:hover .siri__arrow { transform: rotate(-45deg) scale(1.08); }
.siri__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 700px) {
  .siri { flex-direction: column; gap: 14px; }
}

/* ---------- Portada en tablet y móvil: foto grande; textos y botón debajo ---------- */
@media (max-width: 1024px) {
  .hero { padding-bottom: 40px; }
  .hero__visual { --vis-h: min(max(118vw, 440px), 820px); height: var(--vis-h); }
  .hero::before { bottom: auto; top: 20%; width: 120vw; }
  .hero__sides { position: static; display: flex; flex-direction: column; gap: 24px; padding: 32px var(--gutter) 0; max-width: 560px; margin: 0 auto; pointer-events: auto; }
  .hero__col { position: static; width: auto; max-width: none; text-align: left !important; }
  .hero__q { white-space: normal; }
  .hero__col--r .hero__a { margin-left: 0; }
  .hero__col--r .hero__side::before { left: 0; right: auto; }
  .hero__cta { bottom: 14px; width: calc(100% - 2 * var(--gutter)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav > a:not(.btn) { display: none; }
  .logo img { height: 32px; }

  .numbers__list { grid-template-columns: 1fr; gap: 44px; }
  .faq__cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; gap: 12px;
  }
  .faq__cards::-webkit-scrollbar { display: none; }
  .qcard { flex: 0 0 78%; scroll-snap-align: center; }
  .numbers__list li + li { border-left: 0; }

  .folder__tabs { padding: 14px 20px 0; }
  .folder__body { border-radius: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 360px; text-align: left; }
  .timeline::before { top: 10px; bottom: 30px; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline::after { top: 10px; bottom: 30px; left: 8px; right: auto; width: 4px; height: auto; transform: scaleY(0); transform-origin: center top; }
  .panel.is-playing .timeline::after { animation-name: tlFillY; }
  .timeline li { display: grid; grid-template-columns: 20px auto; grid-template-rows: auto auto; column-gap: 18px; align-items: start; padding: 0 0 22px; }
  .timeline li::before { grid-row: 1 / 3; margin: 0; }
  .timeline span { grid-column: 2; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; margin: 0 auto; width: 100%; }
  .about__sticker { right: -6px; }

  .reviews__stage { height: auto; margin: 32px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .reviews__lines { display: none; }
  .phone { position: relative; left: auto; top: auto; transform: rotate(-2deg); width: 274px; height: 580px; }
  .reviews__cards {
    position: relative; inset: auto; width: calc(100% + 2 * var(--gutter)); display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px var(--gutter) 24px; scrollbar-width: none;
  }
  .reviews__cards::-webkit-scrollbar { display: none; }
  .msg { position: relative; inset: auto !important; flex: 0 0 80%; scroll-snap-align: center; rotate: 0deg !important; animation: none; width: auto; }

  .contact { padding-bottom: 96px; }
  /* Formulario en móvil: opciones a ancho completo (fáciles de tocar), botón principal grande abajo */
  .contact { padding-top: 56px; gap: 22px; }
  .contact__intro p { font-size: 17px; }
  .wizard { padding: 20px 18px 18px; border-radius: 22px; }
  .step legend { font-size: 26px; }
  .options { flex-direction: column; gap: 8px; }
  .opt, .opt span { width: 100%; }
  .opt span { padding: 15px 18px; border-radius: 16px; font-size: 16px; }
  .fields { grid-template-columns: 1fr; }
  .field input { font-size: 16px; padding: 15px 18px; }       /* 16px: evita el zoom automático del iPhone */
  .wizard__nav { flex-direction: column-reverse; gap: 6px; }
  .wizard__nav .btn { width: 100%; }
  #btn-next { padding: 17px; font-size: 17px; }
  #btn-back { border: 0; padding: 10px; font-size: 15px; color: var(--ink-soft); }

  .footer { grid-template-columns: 1fr; padding-bottom: 110px; }
  .footer__links { justify-content: flex-start; flex-direction: column; }

  .sticky-cta {
    display: inline-flex; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

  .cookies { flex-direction: column; align-items: stretch; bottom: 84px; }
  .cookies__btns .btn { flex: 1; }

  /* ---- Ajustes móvil ---- */
  /* Cabecera: "Hablemos" pequeño mientras se ve la portada; cuando aparece el botón fijo de abajo, se oculta (nunca dos a la vez) */
  .header { padding: 0 var(--gutter); }
  .nav .btn { padding: 9px 18px; font-size: 14px; }
  .nav { transition: opacity .25s ease; }
  body.sticky-on .nav { opacity: 0; pointer-events: none; }

  /* Botón fijo: oscuro para destacar sobre azul y lima; respeta la barra de inicio del iPhone */
  .sticky-cta {
    bottom: calc(12px + env(safe-area-inset-bottom)); padding: 16px 24px;
    background: var(--ink); color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 14px 28px -12px rgba(22,22,58,.6);
  }
  .sticky-cta:hover { background: var(--blue); }
  .cookies { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Menos aire entre secciones */
  .numbers { padding: 48px 0 40px; }
  .numbers__list { gap: 28px; }
  .numbers__list p { margin-top: 12px; padding-top: 14px; font-size: 18px; }
  .marquee { margin-top: 40px; padding: 26px 0; }
  /* Logos más pequeños y más juntos: caben más en pantalla */
  .marquee { padding: 20px 0; }
  .marquee__group { gap: 36px; padding-right: 36px; }
  .brand img { height: 24px; } .brand--sq img { height: 34px; } .brand--wide img { height: 22px; } .brand--gva img { height: 32px; }
  .brand img[style*="height"] { height: 18px !important; }
  .brand__name { font-size: 13px; } .brand__name small { font-size: 8px; margin-top: 2px; }
  .brand--named { gap: 8px; }

  /* Portada: sin los textos de "¿Tienes un negocio…?" y "¿Quieres aprender…?" */
  .hero__sides { display: none; }
  .hero { padding-bottom: 0; }

  /* Franja lima: aire por encima del botón Hablemos */
  .siri { padding-top: 44px; padding-bottom: 18px; }
  .services { padding-top: 64px; padding-bottom: 48px; }
  .about { padding-top: 16px; padding-bottom: 64px; gap: 32px; }
  .reviews { padding-top: 64px; padding-bottom: 56px; }
  .faq { padding-top: 64px; padding-bottom: 64px; }

  /* Pestañas de servicios: las tres visibles a la vez, en dos líneas si hace falta */
  .folder__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 10px 10px 0; overflow: visible; }
  .folder__tab { padding: 14px 6px 12px; font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; border-radius: 16px 16px 0 0; }
  /* Servicios: todo alineado a la izquierda (más fácil de leer en pantalla estrecha) */
  .folder__body { padding: 32px 20px 24px; }
  .panel { text-align: left; align-items: stretch; }
  .panel__title { font-size: clamp(30px, 9vw, 40px); }
  .panel__for { margin-top: 28px; padding: 24px 22px 18px; }
  .panel__desc { margin-top: 24px; font-size: 18px; }
  .timeline { max-width: none; margin: 28px 0 24px; }
  .svc-btn { width: 100%; justify-content: space-between; padding-left: 24px; font-size: 17px; text-align: left; }

  /* Mensajes de clientes: apilados como una conversación, sin carrusel */
  .reviews__cards { flex-direction: column; overflow: visible; width: 100%; padding: 0; gap: 14px; }
  .msg { flex: none; width: auto; max-width: 92%; }
  .msg:nth-child(odd) { align-self: flex-start; }
  .msg:nth-child(even) { align-self: flex-end; }

  /* Preguntas: lista vertical compacta, sin carrusel */
  .sel em { font-size: clamp(44px, 14.5vw, 64px); }
  .faq__cards { display: flex; flex-direction: column; overflow: visible; margin-inline: 0; padding: 0; gap: 10px; }
  .qcard { flex: none; padding: 20px 18px 16px; gap: 14px; border-radius: 22px; }
  .qcard__q { font-size: 19px; }
  .qcard__a { font-size: 16px; }
  .qcard__btn { min-height: 46px; }

  /* Pie: enlaces con zona táctil de al menos 44 px */
  .footer__links { gap: 0; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal { gap: 0 20px; }
  .footer__legal a, .footer__legal .linklike { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Móviles pequeños (iPhone SE y similares) */
@media (max-width: 380px) {
  .logo img { height: 28px; }
  .services__title { font-size: 40px; }
  .folder__tab { font-size: 10.5px; padding-inline: 4px; }
  .panel__title { font-size: 30px; }
  .svc-btn { font-size: 16px; gap: 10px; }
  .nav .btn { padding: 8px 14px; }
}



/* ---------- Solo móvil: mensajes de clientes, preguntas y números ---------- */
@media (max-width: 860px) {
  /* Mensajes: móvil pequeño en el centro y mensajes pequeños alrededor, cerca de él */
  .reviews { padding-top: 40px; padding-bottom: 48px; }
  .reviews__stage {
    display: block; position: relative; width: 100%; max-width: 400px; height: clamp(490px, calc(948px - 113vw), 560px); margin: 24px auto 0;
  }
  .reviews__cards { display: block; position: absolute; inset: 0; width: auto; padding: 0; overflow: visible; }
  .phone {
    position: absolute; left: 50%; top: 50%; margin: 0; width: 280px; height: 576px;
    transform: translate(-50%, -50%) rotate(-3deg) scale(.42);
  }
  .msg, .msg:nth-child(odd), .msg:nth-child(even) { position: absolute; width: 47%; max-width: 190px; rotate: 0deg !important; }
  .msg--1 { inset: 0 auto auto 0 !important; }
  .msg--2 { inset: 36px 0 auto auto !important; }
  .msg--3 { inset: auto auto 28px 0 !important; }
  .msg--4 { inset: auto 0 0 auto !important; }
  .reviews__cards .wa { gap: 3px; filter: drop-shadow(0 10px 16px rgba(22,22,58,.14)); }
  .wa__b { font-size: 11px; line-height: 1.35; padding: 6px 8px 5px; border-radius: 3px 12px 12px 12px; }
  .wa__b time { font-size: 8.5px; margin: 3px 0 -2px 6px; }

  /* Preguntas: sin "Ver respuesta", solo el + junto a la pregunta, tarjetas compactas */
  .faq__cards { gap: 8px; }
  .qcard { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 14px 14px 14px 18px; border-radius: 18px; }
  .qcard__q { grid-column: 1; grid-row: 1; font-size: 17px; }
  .qcard__btn, .qcard.is-open .qcard__btn {
    grid-column: 2; grid-row: 1; width: auto; min-height: 0; margin: 0; padding: 0;
    background: none; box-shadow: none;
  }
  .qcard__btn::before { border-radius: 18px; }
  .qcard__btn i { width: 30px; height: 30px; }
  .qcard__btn span { display: none; }
  .qcard__a { grid-column: 1 / -1; grid-row: 2; font-size: 15.5px; }
  .qcard:hover .qcard__btn { transform: none; }

  /* Números: visibles desde el principio, sin esperar a la animación */
  .numbers__list li { opacity: 1; transform: none; transition: none; }
  .numbers__list p::before { transform: scaleX(1); transition: none; }

  /* Servicios (carpeta): título centrado, más aire entre bloques y línea de tiempo compacta */
  .folder__body { padding: 40px 24px 36px; }
  .panel__title { text-align: center; font-size: clamp(26px, 8vw, 36px); line-height: 1; }
  .panel__title em { margin-bottom: 4px; }
  .panel__for { margin-top: 40px; padding: 26px 20px 18px; font-size: 17px; }
  .panel__desc { margin-top: 32px; font-size: 17px; line-height: 1.6; }
  .timeline { margin: 36px 0 36px; }
  .timeline li { grid-template-columns: 20px 24px 1fr; grid-template-rows: auto; column-gap: 12px; align-items: start; padding-bottom: 24px; font-size: 16px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { grid-row: 1; }
  .timeline span { grid-column: 2; font-size: 13px; line-height: 21px; }
  .timeline::before, .timeline::after { bottom: 10px; }
  .svc-btn { margin-top: 8px; }

  /* Sobre mí: primero "hooola, soy Paula", después la foto (más pequeña) y luego el texto */
  .about { display: flex; flex-direction: column; gap: 0; }
  .about__text { display: contents; }
  .about__title { order: 1; margin-bottom: 24px; align-self: stretch; text-align: left; font-size: clamp(40px, 12.2vw, 54px); }
  .about__photo { order: 2; max-width: 300px; margin: 0 auto 28px; }
  .about__text p { order: 3; }

  /* Logos: Generalitat Valenciana justo después de El Campanero, y Ajuntament d'Alberic después de la Generalitat */
  .marquee__group .brand { order: 4; }
  .marquee__group .brand:nth-child(-n+3) { order: 1; }
  .marquee__group .brand--gva { order: 2; }
  .marquee__group .brand:has(img[src*="ajuntament-alberic"]) { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .ig__bars i, .ig__ring-fg { animation: none !important; }
  .timeline::after { transform: none !important; animation: none !important; }
  .timeline li::before { background: var(--fill) !important; }
  .siri.is-done .siri__btn { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { animation: marquee 120s linear infinite !important; }
  .numbers__list li { opacity: 1 !important; transform: none !important; }
  .numbers__list p::before { transform: none !important; }
}
