/* ==========================================================================
   LA NATO · versión "Revista"
   Se carga DESPUÉS del estilo base de index.html y lo reemplaza donde hace falta.
   Todo es CSS propio (sin librerías): la política de seguridad del sitio solo
   permite archivos de esta misma carpeta.
   Referencias de 21st usadas como idea, reescritas desde cero:
   - Editorial Image Hero / Collage Hero ... portada y collage de fotos
   - Text Marquee / Marquee ................. cinta de servicios
   - Magnetic Button ........................ botones que atraen al cursor
   - Cursor Image Trail ..................... foto flotante al pasar por los servicios
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 640;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FFF9F7;
  --sheet: clamp(1.5rem, 4.5vw, 3.25rem);   /* radio de las "hojas" que se apilan */
  --fvs: "SOFT" 0, "WONK" 0, "opsz" 144;    /* Fraunces: contraste alto, estilo revista */
}
html[data-t="a"] { --display: "Fraunces", Georgia, "Times New Roman", serif; }

/* ───────── Botones: píldora plana con relleno que sube ───────── */
.btn {
  isolation: isolate; overflow: hidden;
  border-radius: 999px; padding: 0 1.7rem;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: color .35s var(--ease), background-color .2s, transform .2s var(--ease);
}
.btn::after { display: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover, .btn:focus-visible { transform: none; color: var(--blush); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.97); box-shadow: inset 0 0 0 1.5px var(--ink); transition-duration: .08s; }
.btn.wa-btn:hover { --bg: #25D366; }
.btn.added { --bg: var(--mint); }
.more-nets a { translate: var(--tx, 0px) var(--ty, 0px); }

/* ───────── Barra de progreso y barra fija ───────── */
.progress {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lipstick); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  pointer-events: none;
}
.bar { display: none; }
@media (min-width: 960px) {
  .bar {
    position: fixed; z-index: 50; inset: 0 0 auto 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem clamp(1.5rem, 4vw, 3.25rem);
    background: rgba(251, 238, 234, .84);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(29, 34, 64, .14);
    transform: translateY(-101%); visibility: hidden;
    transition: transform .5s var(--ease-out), visibility 0s .5s;
  }
  .bar.on { transform: none; visibility: visible; transition-delay: 0s; }
  .bar-brand { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 620; font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; line-height: 1; }
  .bar-links { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
  .bar-links a { font-weight: 600; font-size: .95rem; text-decoration: none; padding: .55rem .1rem; position: relative; }
  .bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1.5px; background: var(--lipstick); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
  .bar-links a:hover::after, .bar-links a:focus-visible::after { transform: scaleX(1); }
}

/* ───────── Portada ───────── */
html[data-t="a"] .hero {
  position: relative; padding: 0; overflow: clip; isolation: isolate;
  background:
    radial-gradient(56rem 36rem at 8% 108%, rgba(242, 196, 186, .85), transparent 62%),
    radial-gradient(46rem 32rem at 96% -4%, rgba(165, 217, 205, .38), transparent 64%),
    var(--grain), var(--blush);
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(24rem 24rem at var(--gx, 60%) var(--gy, 30%), rgba(255, 255, 255, .8), transparent 66%);
}
.hero.glow-on .hero-glow { opacity: 1; }
.hero .hero-wrap { max-width: 96rem; position: relative; z-index: 1; padding-top: clamp(.9rem, 2.5vw, 1.5rem); }
.hero .topbar { padding-bottom: clamp(.5rem, 2vw, 1rem); }

.cover { display: grid; position: relative; }
html[data-t="a"] .wordmark { display: block; min-height: 0; margin: 0; position: relative; z-index: 1; text-align: center; line-height: .8; translate: 0 calc(var(--hp, 0) * -6vh); }
html[data-t="a"] .w-name {
  display: block; margin: 0 0 .5em;
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: clamp(1.15rem, 4.4vw, 1.7rem); font-weight: 340; letter-spacing: .01em; line-height: 1;
  color: var(--lipstick);
}
html[data-t="a"] .w-nick {
  position: relative; display: inline-block;
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: 27vw; font-weight: 620; font-stretch: 100%;
  letter-spacing: -.055em; line-height: .84; margin-left: 0;
  white-space: nowrap; color: var(--ink);
}
.w-nick .word { display: inline-block; overflow: hidden; padding: .08em .03em .1em; margin: -.08em -.03em -.1em; }
.w-nick .word.accent { color: var(--lipstick); }
.w-nick .ch { display: inline-block; }
.w-nick::after { /* destello */
  content: ""; position: absolute; right: -.03em; top: .02em; width: .2em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23A5D9CD' d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.figure {
  position: relative; z-index: 3; width: min(80vw, 27rem); margin: -7vw auto 0; right: auto; top: auto;
  translate: 0 calc(var(--hp, 0) * 3vh);
}
.figure img { width: 100%; height: auto; aspect-ratio: 840 / 1151; filter: drop-shadow(0 18px 24px rgba(29, 34, 64, .18)); }

.intro { position: relative; z-index: 4; padding: 1.5rem 0 2rem; max-width: none; }
html[data-t="a"] .intro h2 {
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 560; line-height: 1.08; letter-spacing: -.02em; max-width: 17ch; margin: 0 0 .7rem;
}
.intro p { color: var(--ink-soft); max-width: 30rem; margin: 0; }
.coverlines { display: none; }

/* cinta de servicios */
.marquee {
  position: relative; z-index: 5; overflow: hidden;
  padding: clamp(.7rem, 1.6vw, 1.15rem) 0 calc(clamp(.7rem, 1.6vw, 1.15rem) + var(--sheet) * .9);
  background: var(--grain-light), var(--ink); color: var(--blush);
}
.mq-track { display: flex; width: max-content; }
.mq-set { display: flex; align-items: center; flex: none; }
.mq-i {
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: clamp(1.7rem, 3.8vw, 3.4rem); font-weight: 380; line-height: 1.25; letter-spacing: -.02em;
  padding-inline: clamp(1rem, 2.4vw, 2.2rem); white-space: nowrap;
}
.mq-i:nth-of-type(even) { color: var(--cardigan); }
.mq-star {
  flex: none; width: clamp(1.1rem, 2vw, 1.7rem); aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23A5D9CD' d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 960px) {
  .hero .toplinks { display: none; }
  .hero .topbar { justify-content: center; }
  .cover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3.5rem); align-items: end;
    min-height: 0;
  }
  html[data-t="a"] .wordmark { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .cover { --m: min(20.5vw, 25rem, 36svh); }
  html[data-t="a"] .w-nick { font-size: var(--m); }
  html[data-t="a"] .w-name { font-size: clamp(1.2rem, 1.9vw, 1.7rem); }
  .cover { grid-template-rows: auto minmax(max(24rem, calc(100svh - 11.6rem - var(--m) * .84)), auto); }
  .figure { grid-column: 2; grid-row: 2; width: 100%; max-width: 28rem; justify-self: center; align-self: stretch; margin: calc(var(--m) * -.34) 0 0; display: flex; align-items: flex-end; justify-content: center; }
  .figure img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: 50% 100%; }
  .intro { grid-column: 1; grid-row: 2; align-self: end; padding: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
  html[data-t="a"] .intro h2 { font-size: clamp(2rem, 2.9vw, 2.9rem); max-width: 14ch; margin-bottom: .9rem; }
  .intro p { font-size: 1.1rem; }
  .coverlines { display: grid; grid-column: 3; grid-row: 2; align-self: end; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; z-index: 4; justify-self: end; width: min(100%, 19rem); }
  .coverlines a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 0; border-top: 1px solid rgba(29, 34, 64, .28);
    font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 420; font-size: 1.4rem; letter-spacing: -.015em; line-height: 1.1;
    text-decoration: none; transition: padding .45s var(--ease-out), color .25s;
  }
  .coverlines a:last-child { border-bottom: 1px solid rgba(29, 34, 64, .28); }
  .coverlines a::after {
    content: ""; flex: none; width: 1rem; aspect-ratio: 1; opacity: 0; scale: .3; rotate: -90deg;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23B8405A' d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: opacity .3s, scale .5s var(--ease-out), rotate .6s var(--ease-out);
  }
  .coverlines a:hover, .coverlines a:focus-visible { padding-left: .6rem; color: var(--lipstick); }
  .coverlines a:hover::after, .coverlines a:focus-visible::after { opacity: 1; scale: 1; rotate: 0deg; }
}

/* Entrada de la portada: una sola secuencia */
@media (prefers-reduced-motion: no-preference) {
  .w-name { animation: vfade .9s var(--ease-out) .05s both; }
  .w-nick .ch { animation: chup 1.15s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * .075s); }
  .w-nick .word:first-child .ch:nth-child(1) { --i: 0; }
  .w-nick .word:first-child .ch:nth-child(2) { --i: 1; }
  .w-nick .word.accent .ch:nth-child(1) { --i: 3; }
  .w-nick .word.accent .ch:nth-child(2) { --i: 4; }
  .w-nick .word.accent .ch:nth-child(3) { --i: 5; }
  .w-nick .word.accent .ch:nth-child(4) { --i: 6; }
  .w-nick::after { animation: twinkle 1.6s var(--ease-out) 1.5s both; }
  .figure img { animation: figin 1.5s var(--ease-out) .55s both; }
  .intro, .coverlines { animation: vfade 1s var(--ease) 1.05s both; }
  .marquee { animation: vfade .8s var(--ease) 1.2s both; }
  .mq-track { animation: mq 52s linear infinite; }
  .marquee:hover .mq-track { animation-play-state: paused; }
  .mq-star { animation: spin 14s linear infinite; }
  @keyframes chup { from { transform: translateY(108%) rotate(5deg); } }
  @keyframes vfade { from { opacity: 0; transform: translateY(14px); } }
  @keyframes figin { from { opacity: 0; transform: translateY(7%) scale(.97); } }
  @keyframes mq { to { transform: translateX(-50%); } }
  @keyframes spin { to { rotate: 360deg; } }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { flex-wrap: wrap; width: auto; }
  .mq-set + .mq-set { display: none; }
  .mq-set { flex-wrap: wrap; justify-content: center; }
  .hero, .figure, .wordmark { translate: none !important; }
}

/* ───────── Hojas apiladas: cada sección sube sobre la anterior ───────── */
main > section {
  --pad: clamp(4.5rem, 10vw, 9rem);
  padding-block: var(--pad);
  padding-top: calc(var(--pad) + var(--sheet) * .35);
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  box-shadow: 0 -24px 44px -28px rgba(29, 34, 64, .5);
}
main > section:first-child { z-index: 1; }

/* Títulos de sección: gran formato editorial */
html[data-t="a"] .section-head {
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: clamp(2.9rem, 9.5vw, 8.25rem); font-weight: 560; line-height: .94; letter-spacing: -.035em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
html[data-t="a"] .section-head .soft { font-weight: 300; font-variation-settings: var(--fvs); font-size: .6em; letter-spacing: -.025em; color: var(--lipstick); margin-bottom: .1em; }
/* La textura brillante de los títulos se reemplaza por tinta sólida */
.fx, .fx-accent { background: none !important; -webkit-text-fill-color: currentColor; color: var(--ink); }
.fx-accent { color: var(--lipstick); }
.js .reveal.in .rl.fx { animation: none; }

/* ───────── Servicios ───────── */
.skills { background: var(--grain), var(--paper); }
html[data-t="a"] .skills .section-head { text-align: left; margin-left: 0; max-width: none; }
.skills .section-head .rl { margin-left: 0; }
.core li { border-top: 1.5px solid var(--ink); position: relative; }
.core li:last-child { border-bottom: 1.5px solid var(--ink); }
html[data-t="a"] .core h3 {
  font-family: var(--display); font-variation-settings: var(--fvs);
  font-size: clamp(2.5rem, 8.6vw, 7.5rem); font-weight: 480; line-height: .95; letter-spacing: -.035em;
  background: none; padding-bottom: 0;
  transition: transform .7s var(--ease-out), color .3s;
}
.core li:hover h3 { background: none; color: var(--lipstick); transform: translateX(clamp(.5rem, 1.5vw, 1.5rem)); }
.quote { color: var(--ink); }
.hoverpic {
  position: fixed; left: 0; top: 0; z-index: 30; width: 15rem; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: .75rem; overflow: hidden; background: var(--cardigan);
  box-shadow: 0 30px 50px -24px rgba(29, 34, 64, .65);
  opacity: 0; transition: opacity .25s var(--ease); will-change: transform;
}
.hoverpic.on { opacity: 1; }
.hoverpic img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .hoverpic { display: none; } }
html[data-t="a"] .skills .promo { background: var(--paper); border-radius: 1.5rem; box-shadow: inset 0 0 0 1.5px var(--ink), 0 30px 50px -34px rgba(29, 34, 64, .55); }
.promo::before { border-radius: 1.1rem; }
html[data-t="a"] .promo-h { font-variation-settings: var(--fvs); font-weight: 520; }
html[data-t="a"] .support h3 { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 520; font-size: 1.6rem; letter-spacing: -.02em; }

/* ───────── Caso Keyla ───────── */
.case { background: var(--grain-light), var(--ink); }
html[data-t="a"] .case .kicker { font-variation-settings: var(--fvs); font-weight: 500; font-size: clamp(1.6rem, 4.4vw, 2.9rem); max-width: 22ch; line-height: 1.04; }
html[data-t="a"] .kB .x10 { font-variation-settings: var(--fvs); font-weight: 520; font-size: clamp(10rem, 56vw, 30rem); line-height: .74; letter-spacing: -.07em; }
.kB .x10 span { font-weight: 300; }
@media (min-width: 960px) { html[data-t="a"] .kB .x10 { font-size: min(30vw, 30rem); } }
@media (prefers-reduced-motion: no-preference) {
  .js .row10 li { opacity: 0; transform: translateY(.9rem) scale(.7); transition: opacity .5s var(--ease), transform .8s var(--ease-out); }
  .js .row10.is-in li { opacity: 1; transform: none; }
  .js .row10.is-in li:nth-child(2) { transition-delay: .07s; } .js .row10.is-in li:nth-child(3) { transition-delay: .14s; }
  .js .row10.is-in li:nth-child(4) { transition-delay: .21s; } .js .row10.is-in li:nth-child(5) { transition-delay: .28s; }
  .js .row10.is-in li:nth-child(6) { transition-delay: .35s; } .js .row10.is-in li:nth-child(7) { transition-delay: .42s; }
  .js .row10.is-in li:nth-child(8) { transition-delay: .49s; } .js .row10.is-in li:nth-child(9) { transition-delay: .56s; }
  .js .row10.is-in li:nth-child(10) { transition-delay: .63s; }
}

/* ───────── Colaboremos ───────── */
.collab { background: var(--grain), var(--blush); }
html[data-t="a"] .lead { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 380; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.18; letter-spacing: -.02em; max-width: 24ch; }

/* ───────── Mi historia ───────── */
.about { background: var(--grain), var(--paper); }
html[data-t="a"] .hitos .when, html[data-t="a"] .tl .when { font-variation-settings: var(--fvs); font-weight: 520; font-size: 1.7rem; }
.cutout { position: relative; margin: 0; width: min(100%, 24rem); justify-self: center; aspect-ratio: 600 / 1150; }
.cutout .arch {
  position: absolute; inset: 12% 4% 0 4%; border-radius: 999px 999px 0 0;
  background: var(--grain-light), var(--lipstick);
}
.cutout img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 24px rgba(29, 34, 64, .28)); }
.about-side { gap: 2.5rem; justify-items: center; }
.about-side .photo.aula { justify-self: start; max-width: 17rem; margin: 0; }
@media (min-width: 960px) {
  .about-side { margin-top: 0; }
  .about-side .photo.aula { margin-top: -9rem; margin-left: -4rem; position: relative; z-index: 2; }
  .about-grid { grid-template-columns: 1.25fr 1fr; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .rvpic { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
  .js .rvpic.is-in { clip-path: inset(-3rem -3rem -3rem -3rem); }
  .js .rvpic img { transform: scale(1.2); transition: opacity .6s var(--ease), transform 1.8s var(--ease-out); }
  .js .rvpic.is-in img { transform: none; }
  .js .cutout img, .js .cutout.is-in img { transform: none; }  /* sin escala: evita desbordar al costado */
  .photo.rvpic { overflow: hidden; }
  .js .cutout img[data-src] { opacity: 0; }
}

/* ───────── Vitrina ───────── */
.shelf { background: var(--grain-light), var(--ink); color: var(--blush); }
.hook, .item::before, .tagcard::before { display: none; }
.rack .item .tagcard { rotate: 0deg; background: transparent; box-shadow: none; border-radius: 0; padding: 0; transform-origin: 50% 50%; }
.rack .item { padding-top: 0; }
.tagcard .pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1.1rem; background: var(--cardigan-soft); box-shadow: 0 26px 40px -30px rgba(29, 34, 64, .65); }
.tagcard .pic img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; transition: transform 1.1s var(--ease-out); }
@media (hover: hover) { .item:hover .pic img { transform: scale(1.07); } }
.tag-body { padding: 1rem .15rem 0; }
.brand { color: var(--ink-soft); font-weight: 600; }
html[data-t="a"] .tagcard h3 { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 500; font-size: 1.35rem; line-height: 1.12; letter-spacing: -.02em; }
.tag-act .btn { justify-content: center; }
.chip { transition: background-color .25s, color .25s, transform .2s; }
.chip:active { transform: scale(.96); }

/* ───────── Contacto ───────── */
.contact { background: var(--grain), var(--cardigan); }
html[data-t="a"] .contact .section-head { font-size: clamp(3.6rem, 17vw, 14rem); font-weight: 540; line-height: .86; }
.contact-lead { font-size: 1.2rem; }
.wa { padding: 1.3rem 1.6rem; border-radius: 1.6rem; }

/* ───────── Fotos ───────── */
.photo { border-radius: 1.1rem; padding: 6px; background: var(--paper); }
.photo img { border-radius: .8rem; }
.photo::after { border-radius: .95rem; }
@media (min-width: 960px) {
  html[data-t="a"] .photo.laugh { width: 100%; }
}

/* ───────── Pie ───────── */
footer { background: var(--grain), var(--blush); position: relative; }

/* ==========================================================================
   AJUSTE 2 · paleta más sobria, vitrina "boutique" oscura, formulario premium
   ========================================================================== */

/* Tipografía: líneas equilibradas y párrafos sin palabras huérfanas */
h1, h2, h3, .section-head, .lead, .kicker, .contact-lead { text-wrap: balance; }
p, li { text-wrap: pretty; }
body { font-kerning: normal; font-optical-sizing: auto; }
.price b, .bag-count, .wa .num, .hitos .when { font-variant-numeric: tabular-nums lining-nums; }

/* ───────── Vitrina oscura: los productos rosados resaltan como en boutique ───────── */
.shelf :focus-visible { outline-color: var(--mint); }
html[data-t="a"] .shelf .section-head .soft { color: var(--cardigan); }
.shelf .fx { color: var(--blush); }
.shelf-intro p { color: rgba(251, 238, 234, .78); }
.shelf-intro strong { color: var(--blush); }
.shelf .chip { color: var(--blush); border-color: rgba(251, 238, 234, .55); }
.shelf .chip[aria-pressed="false"] { background: transparent; }
.shelf .chip[aria-pressed="true"] { background: var(--blush); color: var(--ink); border-color: var(--blush); }
.shelf .chip:hover { border-color: var(--blush); }
.shelf .brand { color: var(--cardigan); }
html[data-t="a"] .shelf .tagcard h3 { color: var(--blush); }
.shelf .price { color: rgba(251, 238, 234, .72); }
.shelf .price b { color: var(--blush); }
.shelf .tagcard .pic { box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); }
.shelf .tag-act .btn { --bg: var(--blush); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--blush); }
.shelf .tag-act .btn.ghost { --bg: transparent; --fg: var(--blush); box-shadow: inset 0 0 0 1.5px rgba(251, 238, 234, .6); }
.shelf .tag-act .btn::before { background: var(--lipstick); }
.shelf .tag-act .btn:hover, .shelf .tag-act .btn:focus-visible { color: var(--blush); box-shadow: inset 0 0 0 1.5px var(--lipstick); }
.shelf .tag-act .btn.added { --bg: var(--mint); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mint); }
.shelf .shelf-note { color: rgba(251, 238, 234, .65); }
.shelf .shelf-note a { color: var(--cardigan); }
.shelf .rack { scrollbar-color: var(--cardigan) transparent; }

/* ───────── Formulario: tarjeta con borde de luz que gira ───────── */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ficha {
  border: 1.5px solid transparent; border-radius: 1.6rem;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    conic-gradient(from var(--ang), var(--ink) 0 16%, var(--lipstick) 30%, var(--cardigan) 42%, var(--mint) 52%, var(--ink) 66% 100%) border-box;
  box-shadow: 0 40px 70px -44px rgba(29, 34, 64, .7);
  transition: box-shadow .5s var(--ease);
}
.ficha::before { display: none; }
.ficha:focus-within { box-shadow: 0 40px 70px -40px rgba(29, 34, 64, .75), 0 0 0 6px rgba(184, 64, 90, .1); }
@media (prefers-reduced-motion: no-preference) {
  .ficha { animation: ang 9s linear infinite; }
  .ficha:focus-within { animation-duration: 3.5s; }
  @keyframes ang { to { --ang: 360deg; } }
}

/* Campos: fondo limpio y una línea que se dibuja al escribir */
.field label, .field legend { transition: color .25s; }
.field:focus-within > label, .field:focus-within > legend { color: var(--lipstick); }
.field input, .field textarea {
  border: 0; border-radius: .7rem .7rem .2rem .2rem;
  border-bottom: 1.5px solid rgba(29, 34, 64, .4);
  background:
    linear-gradient(var(--lipstick), var(--lipstick)) left bottom / 0 2px no-repeat,
    rgba(251, 238, 234, .75);
  transition: background-size .55s var(--ease-out), background-color .25s, border-color .25s;
}
.field input:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field textarea:focus { background-size: 100% 2px, auto; background-color: #fff; border-bottom-color: transparent; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--lipstick); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(74, 78, 104, .7); }
.field [aria-invalid="true"] { background-color: #FBE3E6; border-bottom-color: var(--lipstick); }

/* Opciones: la elegida se llena con un pequeño rebote */
.pills span { transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease-out); border-width: 1.5px; }
.pills label:hover span { border-color: var(--lipstick); }
.pills input:checked + span { background: var(--ink); color: var(--blush); }
@media (prefers-reduced-motion: no-preference) {
  .pills input:checked + span { animation: pop .45s var(--ease-out); }
  @keyframes pop { 40% { transform: scale(1.08); } }
}
.ficha .btn { width: 100%; justify-content: center; min-height: 3.6rem; font-size: 1.1rem; }
@media (min-width: 640px) { .ficha .btn { width: auto; justify-self: start; } }

/* ───────── Vista previa del mensaje de WhatsApp ───────── */
.chat {
  width: 100%; max-width: 23rem; justify-self: center;
  border-radius: 1.6rem; overflow: hidden;
  background: #EFE6DC;
  box-shadow: 0 30px 60px -36px rgba(29, 34, 64, .7), inset 0 0 0 1.5px rgba(29, 34, 64, .12);
  rotate: -2deg;
}
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--ink); color: var(--blush); }
.chat-head img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--cardigan); }
.chat-head span { display: grid; line-height: 1.2; }
.chat-head b { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 560; font-size: 1.1rem; }
.chat-head small { font-size: .78rem; opacity: .75; }
.chat-body {
  position: relative; display: grid; justify-items: end; gap: .5rem; padding: 1.1rem 1rem 1.3rem; min-height: 12rem; align-content: end;
  background-image: radial-gradient(rgba(29, 34, 64, .07) 1px, transparent 1.2px); background-size: 14px 14px;
}
.bubble {
  margin: 0; max-width: 92%; max-height: 17rem; overflow: hidden;
  padding: .7rem .85rem .75rem; border-radius: 1rem 1rem .3rem 1rem;
  background: #D9FDD3; color: #111B21; font-size: .9rem; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.bubble .ph { color: rgba(17, 27, 33, .5); background: rgba(17, 27, 33, .06); border-radius: .3rem; padding: 0 .3rem; }
.typing { display: none; gap: .25rem; padding: .55rem .75rem; border-radius: 1rem; background: #D9FDD3; }
.typing i { width: .4rem; height: .4rem; border-radius: 50%; background: rgba(17, 27, 33, .45); }
.chat.typing-on .typing { display: inline-flex; }
.chat-cap { margin: 0; padding: .65rem 1rem .8rem; font-size: .82rem; color: var(--ink-soft); text-align: center; background: rgba(255, 255, 255, .45); }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: dot 1s var(--ease) infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  .bubble.pop { animation: bubble .45s var(--ease-out); }
  @keyframes dot { 30% { transform: translateY(-.25rem); } }
  @keyframes bubble { from { transform: scale(.96) translateY(4px); opacity: .6; } }
}
@media (min-width: 960px) {
  .collab-copy { grid-column: 1; grid-row: 1; }
  .ficha { grid-column: 2; grid-row: 1 / span 2; }
  .chat { grid-column: 1; grid-row: 2; justify-self: start; margin-top: -1rem; }
}
@media (min-width: 960px) {
  .collab-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 5vw, 5rem); }
  html[data-t="a"] .collab .section-head { font-size: clamp(3rem, 6.4vw, 6.2rem); }
}

/* ───────── Cursiva editorial (Fraunces Italic, alojada en /nato) ─────────
   Solo en líneas completas de apoyo, nunca en una palabra suelta. */
html[data-t="a"] .section-head .soft,
html[data-t="a"] .w-name { font-style: italic; letter-spacing: -.01em; }
html[data-t="a"] .section-head .soft { font-weight: 320; }
.mq-i:nth-of-type(even) { font-style: italic; font-weight: 340; }

/* ==========================================================================
   AJUSTE 3 · Caso Keyla como historia con scroll · Formulario como chat
   ========================================================================== */

/* ───────── Caso Keyla ───────── */
.ks .ks-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 7vw, 5rem); }
html[data-t="a"] .ks .kicker { margin: 0; font-size: clamp(2.2rem, 6.4vw, 5rem); line-height: 1; max-width: 16ch; color: var(--blush); }
.ks .xtext { margin: 0; font-size: clamp(1.2rem, 3.6vw, 1.7rem); line-height: 1.3; font-weight: 500; max-width: 26ch; color: rgba(251, 238, 234, .9); }
.ks .xtext b { color: var(--cardigan); font-weight: 800; } .ks .xtext b.m { color: var(--mint); }

.story { display: grid; gap: 1.5rem; position: relative; }
.story-stick { position: sticky; top: .75rem; z-index: 3; }
.phone {
  display: grid; gap: .7rem; padding: .9rem 1rem 1rem;
  background: var(--paper); color: var(--ink); border-radius: 1.4rem;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.ph-top { display: flex; align-items: center; gap: .7rem; }
.ph-av {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 600; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--lipstick), var(--cardigan));
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--lipstick);
}
.ph-id { display: grid; line-height: 1.2; min-width: 0; }
.ph-id b { font-size: .95rem; }
.ph-id small { font-size: .8rem; font-weight: 650; color: var(--lipstick); }
.ph-stats { display: flex; align-items: baseline; gap: .5rem; }
.ph-num { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 560; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.ph-lbl { color: var(--ink-soft); font-size: .9rem; }
.ph-x { margin-left: auto; align-self: center; padding: .2rem .65rem; border-radius: 999px; background: var(--mint); font-weight: 750; font-variant-numeric: tabular-nums; }
.ph-bar { height: 6px; border-radius: 6px; background: rgba(29, 34, 64, .1); overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lipstick)); transform-origin: 0 50%; transform: scaleX(0); }
.ph-grid { display: none; }

.story-steps { display: grid; }
.st { padding: 1.4rem 0; color: var(--blush); opacity: .32; transition: opacity .5s var(--ease); }
.st.is-active, .story.done .st-end { opacity: 1; }
.st p { margin: 0 0 .8rem; max-width: 34rem; color: rgba(251, 238, 234, .9); }
.st a { color: var(--cardigan); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; }
.st-list .st { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; border-top: 1px dashed rgba(251, 238, 234, .28); }
.st-n { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 520; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: .9; color: var(--mint); }
html[data-t="a"] .st-list .st p { margin: 0; font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 420; font-size: clamp(1.4rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -.015em; color: var(--blush); }
.st-end { padding-top: 2rem; }
html[data-t="a"] .st-end .x10 { margin: 0; font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 520; font-size: clamp(8rem, 40vw, 19rem); line-height: .78; letter-spacing: -.07em; color: var(--cardigan); }
.st-end .x10 span { font-weight: 300; color: var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .st-end .x10 { transform: scale(.9); transform-origin: left bottom; transition: transform 1s var(--ease-out); }
  .story.done .st-end .x10 { transform: none; }
}
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .story-stick { top: 5.5rem; }
  .phone { padding: 1.4rem 1.3rem 1.3rem; border-radius: 2.2rem; box-shadow: 0 0 0 9px #11152C, 0 0 0 10px rgba(251, 238, 234, .15), 0 40px 70px -30px rgba(0, 0, 0, .8); gap: 1rem; }
  .ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: .3rem 0 0; padding: 0; list-style: none; }
  .ph-grid li { aspect-ratio: 1; border-radius: 5px; background: rgba(29, 34, 64, .07); transition: background-color .6s var(--ease), transform .6s var(--ease-out); }
  .ph-grid li.on { transform: none; }
  .ph-grid li.on:nth-child(3n+1) { background: var(--cardigan); }
  .ph-grid li.on:nth-child(3n+2) { background: var(--lipstick); }
  .ph-grid li.on:nth-child(3n) { background: var(--mint); }
  .st { min-height: 52vh; display: grid; align-content: center; }
  .st-list .st { min-height: 48vh; }
  .st-end { min-height: 60vh; }
}

/* ───────── Formulario como chat ───────── */
.cv[hidden] { display: none; }
.cv {
  width: 100%; max-width: 31rem; justify-self: center;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: clamp(30rem, 74svh, 39rem);
  border: 1.5px solid transparent; border-radius: 1.6rem; overflow: hidden;
  background:
    linear-gradient(#EFE6DC, #EFE6DC) padding-box,
    conic-gradient(from var(--ang), var(--ink) 0 16%, var(--lipstick) 30%, var(--cardigan) 42%, var(--mint) 52%, var(--ink) 66% 100%) border-box;
  box-shadow: 0 40px 70px -40px rgba(29, 34, 64, .75);
}
@media (prefers-reduced-motion: no-preference) {
  .cv { animation: ang 9s linear infinite; }
  .cv:focus-within { animation-duration: 3.5s; }
}
.cv-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: var(--ink); color: var(--blush); }
.cv-head img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--cardigan); }
.cv-head span { display: grid; line-height: 1.2; }
.cv-head b { font-family: var(--display); font-variation-settings: var(--fvs); font-weight: 560; font-size: 1.15rem; }
.cv-head small { font-size: .8rem; opacity: .75; }
.cv-log {
  overflow-y: auto; overscroll-behavior: contain; padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  background-image: radial-gradient(rgba(29, 34, 64, .07) 1px, transparent 1.2px); background-size: 14px 14px;
}
.cv-log:focus-visible { outline-offset: -3px; }
.cv-msg {
  position: relative; max-width: 86%; padding: .6rem .85rem; border-radius: 1rem;
  font-size: .97rem; line-height: 1.45; color: #111B21;
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.cv-msg p { margin: 0; }
.cv-msg.nato { align-self: flex-start; background: #fff; border-top-left-radius: .3rem; }
.cv-msg.me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: .3rem; padding-right: 2.3rem; }
.cv-msg.summary { font-size: .9rem; max-width: 92%; }
.cv-tick { position: absolute; right: .6rem; bottom: .5rem; width: 1rem; color: #3B9BD6; }
.cv-tick svg { display: block; width: 100%; }
.cv-msg.typing { display: inline-flex; gap: .3rem; padding: .8rem .9rem; }
.cv-msg.typing i { width: .42rem; height: .42rem; border-radius: 50%; background: rgba(17, 27, 33, .45); }
.cv-end { display: grid; gap: .4rem; justify-items: end; margin-top: .4rem; }
.cv-end .btn { min-height: 3.1rem; font-size: 1rem; }
.cv-again { font: inherit; font-size: .9rem; font-weight: 600; background: none; border: 0; color: var(--ink); text-decoration: underline 1.5px dashed; text-underline-offset: .25em; padding: .6rem .3rem; cursor: pointer; }
.cv-quick { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding: .75rem 1rem 1rem; background: #F6F1EA; }
.cv-quick[hidden] { display: none; }
.cv-chip {
  font: inherit; font-weight: 650; font-size: .95rem; min-height: 2.75rem; padding: 0 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.cv-chip:hover, .cv-chip:focus-visible { background: var(--ink); color: var(--blush); }
.cv-chip:active { transform: scale(.96); }
.cv-comp { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem .75rem; background: #F6F1EA; }
.cv-comp[hidden] { display: none; }
.cv-comp input, .cv-comp textarea {
  flex: 1; min-width: 0; min-height: 3rem; padding: .75rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid transparent; border-radius: 1.5rem; background: #fff; resize: none;
}
.cv-comp input:focus, .cv-comp textarea:focus { border-color: var(--lipstick); outline: none; }
.cv-comp input:focus-visible, .cv-comp textarea:focus-visible { outline: 2px solid var(--lipstick); outline-offset: 2px; }
.cv-comp input[hidden], .cv-comp textarea[hidden], .cv-skip[hidden] { display: none; }
.cv-send {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #25D366; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background-color .2s;
}
.cv-send:hover { background: #1FB958; transform: scale(1.06); }
.cv-send:active { transform: scale(.94); }
.cv-send svg { width: 1.3rem; height: 1.3rem; }
.cv-skip { flex: none; min-height: 3rem; padding: 0 .4rem; font: inherit; font-weight: 650; font-size: .9rem; color: var(--ink); background: none; border: 0; text-decoration: underline 1.5px dashed; text-underline-offset: .25em; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .cv-msg { animation: msgin .35s var(--ease-out) both; }
  .cv-msg.typing i { animation: dot 1s var(--ease) infinite; }
  .cv-msg.typing i:nth-child(2) { animation-delay: .15s; } .cv-msg.typing i:nth-child(3) { animation-delay: .3s; }
  .cv-msg.nato { transform-origin: 0 0; } .cv-msg.me { transform-origin: 100% 0; }
  @keyframes msgin { from { opacity: 0; transform: translateY(6px) scale(.97); } }
}
@media (min-width: 960px) {
  .cv { grid-column: 2; grid-row: 1 / span 2; justify-self: end; max-width: 32rem; }
}

/* El caso base tenía overflow:hidden, que impide que el celular quede fijo al bajar */
.case.ks { overflow: visible; }

/* El formulario base tiene display:grid, que anula el atributo hidden: en modo chat se oculta así */
.ficha[hidden] { display: none; }
/* Caso Keyla: en celular cada paso necesita su espacio para que el contador avance al ritmo de la lectura;
   el párrafo inicial nunca se atenúa (es texto chico) y los pasos inactivos quedan legibles */
.st { opacity: .5; }
.story-steps > .st:first-child { opacity: 1; }
@media (max-width: 959px) {
  .st-list .st { min-height: 42svh; align-content: center; }
  .st-end { min-height: 50svh; display: grid; align-content: center; }
}

/* Caso Keyla con su perfil real (foto y publicaciones guardadas en /nato, con permiso de Keyla) */
.ph-av { overflow: hidden; background: var(--cardigan); }
.ph-av img { width: 100%; height: 100%; object-fit: cover; }
.ph-bio { display: none; margin: 0; font-size: .82rem; line-height: 1.35; color: var(--ink-soft); }
.ph-bio b { display: block; color: var(--ink); font-size: .9rem; }
.ph-grid li { overflow: hidden; }
.ph-grid li img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(.82); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.ph-grid li.on img { opacity: 1; transform: none; }
.ph-grid li.on:nth-child(n) { background: rgba(29, 34, 64, .07); }
@media (min-width: 960px) { .ph-bio { display: block; } }
@media (prefers-reduced-motion: reduce) { .ph-grid li img { transition: none; } }
