/* CoserFácil · hoja de estilos de la portada
   Paleta de taller: lino, tinta, hilo rojo, salvia, mostaza y denim. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F0E6;
  --paper-2: #EEE5D6;
  --card: #FFFCF7;
  --ink: #1D2125;
  --ink-2: #4B5157;
  --ink-3: #737A80;
  --line: #E2D7C5;
  --thread: #B93E28;
  --thread-2: #962E1B;
  --thread-soft: #F4DBD1;
  --sage: #56705C;
  --sage-soft: #DCE5D8;
  --mustard: #D6A03C;
  --mustard-soft: #F5E7C6;
  --denim: #2E4766;
  --denim-soft: #DAE2EC;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --sombra: 0 1px 2px rgba(29,33,37,.05), 0 8px 24px -12px rgba(29,33,37,.18);
  --sombra-alta: 0 2px 4px rgba(29,33,37,.06), 0 24px 48px -20px rgba(29,33,37,.32);
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* textura de lino muy sutil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 96; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--thread); font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--thread); color: #fff; }
:focus-visible { outline: 2.5px solid var(--thread); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; position: relative;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--thread { --bg: var(--thread); box-shadow: 0 10px 24px -12px rgba(185,62,40,.8); }
.btn--thread:hover { --bg: var(--thread-2); box-shadow: 0 14px 30px -12px rgba(185,62,40,.85); }
.btn--ink { --bg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(29,33,37,.22); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:disabled { opacity: .35; cursor: default; transform: none; }
.btn--lg { font-size: 1.02rem; padding: 1.02em 1.6em; }
.btn--sm { font-size: .85rem; padding: .62em 1.05em; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }

.enlace { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(185,62,40,.45); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.enlace:hover { text-decoration-color: var(--thread); }
.enlace--flecha { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.enlace--flecha .i { transition: transform .25s var(--ease); }
.enlace--flecha:hover .i { transform: translateX(4px); }

/* ---------- aviso de afiliación ---------- */
.aviso { background: var(--ink); color: #E9E3D9; font-size: .8rem; line-height: 1.45; }
.aviso__in { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.aviso__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mustard); flex: none; }
.aviso a { color: #fff; text-underline-offset: 3px; }

/* ---------- cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.cab.is-scroll { background: rgba(246,240,230,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.cab__in { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__marca { width: 36px; height: 36px; transition: transform .5s var(--ease); }
.logo:hover .logo__marca { transform: rotate(-8deg) scale(1.04); }
.logo__txt { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 48; }
.logo__txt em { font-style: italic; font-weight: 400; color: var(--thread); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: .93rem; font-weight: 500; color: var(--ink-2); text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 9px); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.hamb { display: none; }

/* ---------- comunes de sección ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec__cab { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec__cab--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px 64px; flex-wrap: wrap; }
.sec__cab--split > div { max-width: 600px; }
.sec__cab--split .sec__lead { margin-top: 0; }
.sec__cab--split .sec__lead { max-width: 400px; }
.sec__h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.sec__lead { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.sec__lead a { color: var(--thread); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--thread); margin-bottom: 16px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px); }
.kicker--claro { color: var(--mustard); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.55); border: 1px solid var(--line); padding: 7px 14px 7px 12px; border-radius: 999px; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(86,112,92,.5); animation: pulso 2.4s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(86,112,92,.45); } 70% { box-shadow: 0 0 0 9px rgba(86,112,92,0); } 100% { box-shadow: 0 0 0 0 rgba(86,112,92,0); } }

/* ---------- portada ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__h1 { font-size: clamp(2.75rem, 6.2vw, 5.35rem); line-height: 1; margin-top: 26px; letter-spacing: -.03em; font-variation-settings: "SOFT" 60, "opsz" 144; font-weight: 450; }
.hero__h1 em { position: relative; white-space: nowrap; }
.hero__h1 em::after { content: ""; position: absolute; left: .04em; right: .02em; bottom: -.05em; height: .09em; background: repeating-linear-gradient(90deg, var(--thread) 0 .26em, transparent .26em .42em); border-radius: 2px; transform-origin: left; animation: hilvan 1.2s .6s var(--ease) both; }
@keyframes hilvan { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lead { margin-top: 26px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero__garantias { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.hero__garantias li { display: inline-flex; align-items: center; gap: 7px; }
.hero__garantias .i { color: var(--sage); width: 1.2em; height: 1.2em; }

.hero__vis { position: relative; padding: 18px 18px 60px 34px; }
.arco { margin: 0; position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 32px 32px; overflow: hidden; box-shadow: var(--sombra-alta); background: var(--paper-2); }
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: scale(1.06); animation: zoom 14s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.hero__vis::before { /* pespunte alrededor del arco */
  content: ""; position: absolute; top: 4px; right: 4px; bottom: 46px; left: 20px;
  border: 2px dashed rgba(185,62,40,.55); border-radius: 999px 999px 42px 42px; pointer-events: none;
}
.cinta { position: absolute; top: 9%; right: -14px; z-index: 3; transform: rotate(8deg); background: var(--mustard); color: var(--ink); height: 46px; padding: 0 22px 0 18px; display: flex; align-items: center; border-radius: 4px; box-shadow: var(--sombra);
  background-image: repeating-linear-gradient(90deg, rgba(29,33,37,.55) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(29,33,37,.7) 0 1.5px, transparent 1.5px 40px);
  background-size: 100% 9px, 100% 15px; background-repeat: no-repeat; background-position: 0 0, 0 0; }
.cinta span { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 12px; }
.favorita { position: absolute; left: 0; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--card); border-radius: 20px; box-shadow: var(--sombra-alta); text-decoration: none; color: var(--ink); max-width: 380px; transition: transform .35s var(--ease); animation: flota 6s ease-in-out infinite; }
.favorita:hover { transform: translateY(-4px) rotate(-1deg); }
@keyframes flota { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.favorita__img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: 50% 58%; flex: none; }
.favorita__txt { display: grid; line-height: 1.2; }
.favorita__k { white-space: nowrap; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--thread); }
.favorita__n { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: 3px; }
.favorita__s { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.hero__costura { position: absolute; left: -38%; bottom: -24px; width: 120%; height: 160px; z-index: 2; pointer-events: none; }
.dibuja { stroke-dasharray: 900; stroke-dashoffset: 900; animation: dibuja 2.6s .9s var(--ease) forwards; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }

/* nota circular */
.nota { --n: 8; --size: 62px; position: relative; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--tono-2, var(--thread)) calc(var(--n) * 10%), rgba(29,33,37,.08) 0); }
.nota::before { content: ""; position: absolute; inset: 5px; background: var(--card); border-radius: 50%; }
.nota b, .nota small { position: relative; }
.nota b { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1; }
.nota small { font-size: .62rem; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.nota--sm { --size: 50px; --tono-2: var(--thread); }
.nota--sm b { font-size: 1.05rem; }

/* ---------- marcas ---------- */
.marcas { border-block: 1px solid var(--line); background: rgba(255,252,247,.55); overflow: hidden; padding: 20px 0; }
.marcas__pista { display: flex; width: max-content; animation: desliza 38s linear infinite; }
.marcas:hover .marcas__pista { animation-play-state: paused; }
.marcas__fila { display: flex; align-items: center; }
.marcas__fila li { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ink-2); padding: 0 34px; display: flex; align-items: center; gap: 68px; white-space: nowrap; font-variation-settings: "SOFT" 100, "opsz" 72; }
.marcas__fila li::after { content: ""; width: 26px; height: 2px; margin-right: -34px; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 9px); opacity: .7; }
@keyframes desliza { to { transform: translateX(-50%); } }

/* ---------- bento de proyectos ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-m); text-decoration: none; color: #fff; background: var(--ink); isolation: isolate; }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,22,24,0) 35%, rgba(20,22,24,.78) 100%); }
.tile::after { /* pespunte que aparece al pasar el ratón */
  content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,247,238,.85); border-radius: calc(var(--r-m) - 6px); opacity: 0; transform: scale(1.03); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: scale(1); }
.tile__pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: grid; gap: 4px; }
.tile__tag { justify-self: start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--mustard); color: var(--ink); padding: 5px 9px; border-radius: 6px; margin-bottom: 6px; }
.tile__t { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.tile--xl .tile__t { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tile__t::after { content: "→"; font-family: var(--sans); font-size: .9em; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); }
.tile:hover .tile__t::after { opacity: 1; transform: none; }
.tile__d { font-size: .88rem; opacity: .86; line-height: 1.4; }

/* ---------- test ---------- */
.sec--test { background: linear-gradient(180deg, rgba(238,229,214,0), var(--paper-2) 18%, var(--paper-2) 82%, rgba(238,229,214,0)); }
.test { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.test__intro { position: sticky; top: 110px; }
.test__foto { margin: 34px 0 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--sombra); transform: rotate(-1.5deg); }
.test__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.quiz { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sombra-alta); padding: clamp(22px, 3.4vw, 40px); position: relative; overflow: hidden; }
.quiz::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: calc(var(--r-l) - 8px); pointer-events: none; }

/* cinta métrica de progreso */
.metro { position: relative; height: 54px; border-radius: 6px; background: var(--mustard-soft); overflow: hidden; margin-bottom: 30px; }
.metro__regla { position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(29,33,37,.35) 0 1px, transparent 1px 1%), repeating-linear-gradient(90deg, rgba(29,33,37,.6) 0 1.5px, transparent 1.5px 5%), repeating-linear-gradient(90deg, rgba(29,33,37,.85) 0 2px, transparent 2px 25%);
  background-size: 100% 10px, 100% 17px, 100% 26px; background-repeat: no-repeat; }
.metro__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: var(--mustard); mix-blend-mode: multiply; transition: width .7s var(--ease); }
.metro__fill::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 3px; background: var(--thread); }
.metro__n { position: absolute; inset: auto 0 6px 0; display: flex; }
.metro__n li { flex: 1; text-align: right; padding-right: 6px; font: 700 .78rem/1 var(--serif); color: var(--ink); }

.paso { border: 0; margin: 0; padding: 0; display: none; }
.paso.is-on { display: block; animation: entra .5s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.paso legend { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 500; line-height: 1.15; padding: 0; margin-bottom: 22px; }
.paso__n { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.opts { display: grid; gap: 12px; }
.opt { position: relative; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s, background .2s; }
.opt:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--sombra); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__l { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--serif); background: var(--paper); border: 1.5px dashed var(--line); transition: .25s; }
.opt__t { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.opt__d { font-size: .88rem; color: var(--ink-3); line-height: 1.35; }
.opt:has(input:checked) { border-color: var(--thread); background: #FFF7F3; }
.opt:has(input:checked) .opt__l { background: var(--thread); color: #fff; border-color: var(--thread); }
.opt:has(input:focus-visible) { outline: 2.5px solid var(--thread); outline-offset: 3px; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.quiz__hint { font-size: .85rem; color: var(--ink-3); }

.resultado { animation: entra .6s var(--ease); }
.res__k { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); display: flex; align-items: center; gap: 8px; }
.res__cab { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; margin: 16px 0 20px; }
.res__vis { border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-2); }
.res__vis img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.res__n { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1.05; }
.res__tipo { color: var(--ink-3); font-size: .9rem; margin-top: 6px; }
.res__por { display: grid; gap: 10px; margin: 6px 0 24px; }
.res__por li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.res__por .i { color: var(--sage); margin-top: 3px; width: 20px; height: 20px; }
.res__acc { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.res__alt { margin-top: 24px; padding-top: 20px; border-top: 1.5px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; font-size: .95rem; color: var(--ink-2); }
.res__alt b { color: var(--ink); }
.res__nota { margin-top: 18px; font-size: .8rem; color: var(--ink-3); }

/* ---------- ranking ---------- */
.ranking { display: grid; gap: 28px; counter-reset: r; }
.prod { display: grid; grid-template-columns: minmax(300px, 1fr) 1.25fr; background: var(--card); border-radius: var(--r-l); box-shadow: var(--sombra); overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); scroll-margin-top: 100px; }
.prod:hover { box-shadow: var(--sombra-alta); }
.prod__vis { position: relative; margin: 0; background: var(--tono); overflow: hidden; min-height: 100%; aspect-ratio: auto; }
.prod__vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform 1.1s var(--ease); }
.prod:hover .prod__vis img { transform: scale(1.04); }
.prod__vis::after { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(255,250,243,.85); border-radius: 20px; pointer-events: none; z-index: 2; }
.prod__pos { position: absolute; left: 24px; top: 22px; z-index: 3; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,252,247,.92); backdrop-filter: blur(6px); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(29,33,37,.35); font-variation-settings: "SOFT" 100, "opsz" 48; }
.sello { position: absolute; right: 22px; top: 26px; z-index: 3; background: var(--tono-2); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(29,33,37,.4); }
.prod__ia { position: absolute; left: 24px; bottom: 20px; z-index: 3; font-size: .68rem; color: rgba(29,33,37,.62); background: rgba(255,252,247,.78); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.prod__info { padding: clamp(24px, 3.2vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.prod__cab { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.prod__tipo { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prod__n { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 6px; }
.prod__res { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: .93rem; }
.pc ul { display: grid; gap: 8px; align-content: start; }
.pc li { position: relative; padding-left: 26px; line-height: 1.45; }
.pc li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.pc__si li::before { content: "+"; background: var(--sage-soft); color: var(--sage); }
.pc__no li::before { content: "–"; background: var(--thread-soft); color: var(--thread); }
.prod__acc { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: auto; padding-top: 4px; }
.prod:nth-child(even) { grid-template-columns: 1.25fr minmax(300px, 1fr); }
.prod:nth-child(even) .prod__vis { order: 2; }

/* ---------- tabla ---------- */
.tabla { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: var(--sombra); -webkit-overflow-scrolling: touch; }
.tabla table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
.tabla td:nth-child(7) { white-space: normal; min-width: 96px; }
.tabla tbody th { white-space: normal; min-width: 150px; }
.tabla th:first-child, .tabla td:first-child { padding-left: 22px; }
.tabla th:last-child, .tabla td:last-child { padding-right: 22px; text-align: right; }
.tabla th, .tabla td { padding: 14px 11px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--paper); border-bottom: 1.5px dashed var(--line); }
.tabla tbody tr { transition: background .2s; }
.tabla tbody tr:hover { background: #FFF8F1; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; position: sticky; left: 0; background: inherit; }
.tabla tbody th a { text-decoration: none; }
.tabla tbody th a:hover { color: var(--thread); }
.tabla tbody tr th { background: var(--card); }
.tabla tbody tr:hover th { background: #FFF8F1; }
.i--si { color: var(--sage); width: 1.3em; height: 1.3em; }
.i--no { color: var(--ink-3); width: 1.2em; height: 1.2em; }
.barra { --n: 8; display: inline-flex; align-items: center; gap: 10px; }
.barra::before { content: ""; width: 56px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--thread) calc(var(--n) * 10%), rgba(29,33,37,.1) 0); }
.barra b { font-family: var(--serif); font-size: 1.05rem; }
.nota-pie { margin-top: 14px; font-size: .84rem; color: var(--ink-3); }

/* ---------- método ---------- */
.metodo { position: relative; color: #F3EEE6; background: #16191C; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; isolation: isolate; }
.metodo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .24; z-index: -1; filter: saturate(.9); }
.metodo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 80% 10%, rgba(185,62,40,.28), transparent 55%), linear-gradient(180deg, rgba(22,25,28,.55), rgba(22,25,28,.92)); }
.metodo__cab { max-width: 760px; }
.metodo .sec__lead { color: #CFC8BD; }
.metodo h2 em { color: var(--mustard); }
.criterios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.crit { position: relative; padding: 26px 24px 30px; border-radius: var(--r-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.crit__p { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--mustard); line-height: 1; font-variation-settings: "SOFT" 100, "opsz" 144; }
.crit h3 { font-size: 1.25rem; margin-top: 14px; color: #fff; }
.crit p { margin-top: 8px; font-size: .92rem; color: #BFB8AD; line-height: 1.5; }
.crit__barra { position: absolute; left: 24px; right: 24px; bottom: 14px; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.crit__barra::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 4%); background: repeating-linear-gradient(90deg, var(--mustard) 0 6px, transparent 6px 10px); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .2s var(--ease); }
.crit.is-in .crit__barra::after { transform: scaleX(1); }
.compromisos { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 44px; padding-top: 30px; border-top: 1.5px dashed rgba(255,255,255,.18); }
.compromisos p { display: inline-flex; align-items: center; gap: 10px; color: #E6DFD4; font-weight: 500; }
.compromisos .i { color: var(--mustard); width: 1.25em; height: 1.25em; }

/* ---------- guías ---------- */
.guias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guia { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.guia figure { margin: 0 0 18px; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; }
.guia figure::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(255,247,238,.9); border-radius: 12px; opacity: 0; transition: opacity .35s; }
.guia img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.guia:hover img { transform: scale(1.05); }
.guia:hover figure::after { opacity: 1; }
.guia__meta { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--thread); }
.guia h3 { font-size: 1.45rem; margin-top: 8px; transition: color .2s; }
.guia:hover h3 { color: var(--thread); }
.guia h3 + p { margin-top: 10px; color: var(--ink-2); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__cab { position: sticky; top: 110px; }
.faq__lista { border-top: 1.5px dashed var(--line); }
.faq details { border-bottom: 1.5px dashed var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231D2125' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--thread-soft); }
.faq summary:hover { color: var(--thread); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq details p a { color: var(--thread); }
.faq details[open] p { animation: entra .45s var(--ease); }

/* ---------- cierre ---------- */
.cierre { padding: 0 0 clamp(72px, 10vw, 120px); }
.cierre__in { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; background: var(--thread); color: #FFF7EE; border-radius: 36px; padding: clamp(36px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.cierre__in::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(255,247,238,.42); border-radius: 26px; pointer-events: none; }
.cierre__in::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(214,160,60,.45), transparent 65%); z-index: -1; }
.cierre h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.cierre h2 em { color: var(--mustard-soft); }
.cierre p { margin-top: 16px; font-size: 1.1rem; color: #FBE3D9; max-width: 32em; }
.cierre .btn { margin-top: 28px; --bg: #FFF7EE; --fg: var(--thread-2); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.cierre .btn:hover { --bg: #fff; }
.cierre__foto { margin: -20px 0; justify-self: end; width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); border: 6px solid #FFF7EE; }
.cierre__foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- pie ---------- */
.pie { background: var(--ink); color: #BDB6AB; padding: 72px 0 40px; font-size: .93rem; }
.pie__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.pie__marca p { margin-top: 16px; max-width: 34ch; line-height: 1.55; }
.logo--claro { color: #F6F0E6; }
.pie h3 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #F6F0E6; font-weight: 700; margin-bottom: 16px; }
.pie ul { display: grid; gap: 10px; }
.pie a { text-decoration: none; transition: color .2s; }
.pie a:hover { color: #fff; }
.pie__legal { margin-top: 56px; padding-top: 24px; border-top: 1.5px dashed rgba(255,255,255,.14); display: grid; gap: 8px; font-size: .8rem; color: #8F8A82; }
.pie__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* botón flotante en móvil */
.flotante { position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translate(-50%, 140%); transition: transform .45s var(--ease); display: none; }
.flotante.is-on { transform: translate(-50%, 0); }

/* ---------- animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a:nth-child(5) { display: none; }
  .criterios { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .test, .faq { grid-template-columns: 1fr; }
  .hero__vis { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero__costura { left: -10%; width: 110%; }
  .test__intro, .faq__cab { position: static; }
  .test__foto { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .prod, .prod:nth-child(even) { grid-template-columns: 1fr; }
  .prod:nth-child(even) .prod__vis { order: 0; }
  .prod__vis { aspect-ratio: 1 / 1; min-height: 0; }
  .guias { grid-template-columns: 1fr 1fr; }
  .guias .guia:nth-child(3) { display: none; }
  .cierre__in { grid-template-columns: 1fr; }
  .cierre__foto { display: none; }
  .pie__grid { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0 0 auto 0; top: 0; padding: 96px var(--gutter) 32px; flex-direction: column; gap: 4px; background: var(--paper); box-shadow: var(--sombra-alta); transform: translateY(-105%); transition: transform .45s var(--ease); z-index: -1; }
  .nav a { font-family: var(--serif); font-size: 1.6rem; padding: 10px 0; color: var(--ink); border-bottom: 1.5px dashed var(--line); }
  .nav a:nth-child(5) { display: block; }
  .nav a::after { display: none; }
  .cab.is-open .nav { transform: none; }
  .cab.is-open { background: var(--paper); }
  .cab__cta { margin-left: auto; }
  .hamb { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
  .hamb span:not(.sr) { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .cab.is-open .hamb span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .cab.is-open .hamb span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .flotante { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cab__in { height: 64px; gap: 12px; }
  .cab__cta { display: none; }
  .hamb { margin-left: auto; }
  .logo__txt { font-size: 1.28rem; }
  .logo__marca { width: 32px; height: 32px; }
  .aviso { font-size: .74rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__garantias { flex-direction: column; gap: 8px; }
  .hero__vis { padding: 14px 6px 70px 14px; }
  .hero__vis::before { left: 4px; right: -2px; bottom: 58px; top: 2px; }
  .cinta { right: -6px; height: 40px; padding: 0 14px; }
  .favorita { left: -4px; right: 0; max-width: none; bottom: 14px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .tile--xl { grid-column: 1 / -1; grid-row: span 2; }
  .tile--tall { grid-row: span 2; }
  .tile__pie { padding: 14px; }
  .tile__t { font-size: 1.05rem; }
  .tile__d { display: none; }
  .tile--xl .tile__d { display: block; }
  .opt { padding: 14px; grid-template-columns: 34px 1fr; }
  .opt__l { width: 34px; height: 34px; }
  .res__cab { grid-template-columns: 96px 1fr; }
  .res__cab .nota { grid-column: 2; justify-self: start; }
  .pc { grid-template-columns: 1fr; }
  .prod__acc .btn { width: 100%; }
  .criterios { grid-template-columns: 1fr; }
  .guias { grid-template-columns: 1fr; }
  .guias .guia:nth-child(3) { display: flex; }
  .faq details p { padding-right: 0; }
  .cierre__in { border-radius: 26px; }
  .cierre .btn { width: 100%; }
  .pie__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marcas__pista { animation: none; }
  .dibuja { stroke-dashoffset: 0; }
}
.resultado:focus { outline: none; }
