/* =========================================================
   Mil y un hilo — hoja de estilos
   Paleta sacada de sus prendas: terracota, ocre mohair, salvia y rosa empolvado sobre papel crema.
   ========================================================= */

@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --papel: #f5ede1;
  --papel-2: #ede1cf;
  --papel-3: #e5d5bf;
  --blanco: #fffaf3;
  --tinta: #2b1d16;
  --tinta-2: #6a5649;
  --sol: #df5f27;
  --sol-osc: #b9481a;
  --ocre: #c9962b;
  --salvia: #5f6b46;
  --salvia-cl: #a9ad84;
  --rosa: #ecc6b2;
  --linea: rgba(43, 29, 22, .14);
  --sombra: 0 18px 50px -24px rgba(60, 30, 10, .45);
  --radio: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --ancho: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --cab: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cab) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 120; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--sol); font-weight: 350; }
h2 { font-size: clamp(34px, 5vw, 60px); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--sol); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--papel); padding: 10px 16px; border-radius: 99px; z-index: 100; }
.saltar:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 99px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 19px; height: 19px; stroke-width: 2.2; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sol { background: var(--sol); color: #fff; box-shadow: 0 10px 24px -12px rgba(223, 95, 39, .8); }
.btn--sol:hover { background: var(--sol-osc); }
.btn--linea { border-color: var(--tinta); background: transparent; }
.btn--linea:hover { background: var(--tinta); color: var(--papel); }
.btn--crema { background: var(--papel); color: var(--tinta); }
.btn--crema:hover { background: #fff; }
.btn--ancho { width: 100%; }
.btn--peq { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--peq svg { width: 17px; height: 17px; }
.btn.hecho { background: var(--salvia); box-shadow: none; }
.btn.hecho svg { transform: none; }
.enlace { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--sol); }

.antetitulo { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 18px; }
.antetitulo::before { content: ""; width: 26px; height: 2px; background: var(--sol); border-radius: 2px; }
.antetitulo--claro { color: rgba(245, 237, 225, .75); }
.punto-dot { display: none; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(245, 237, 225, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.cabecera.con-sombra { box-shadow: 0 1px 0 var(--linea); }
.cabecera__in { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gut); height: var(--cab); display: flex; align-items: center; gap: 28px; }
.logo { display: block; flex: none; }
.logo__img {
  display: block; width: 84px; aspect-ratio: 520 / 466; background: var(--tinta);
  -webkit-mask: url(/assets/img/logo.png) center / contain no-repeat; mask: url(/assets/img/logo.png) center / contain no-repeat;
  transition: background-color .3s;
}
.logo:hover .logo__img { background: var(--sol); }
.logo__img--grande { width: 150px; background: var(--papel); }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 99px; transition: background-color .2s; }
.menu a:hover, .menu a[aria-current] { background: var(--papel-2); }
.cabecera__acc { display: flex; align-items: center; gap: 10px; }
/* Selector de idioma */
.idioma { position: relative; }
.idioma summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: background-color .2s; user-select: none; }
.idioma summary::-webkit-details-marker { display: none; }
.idioma summary svg { width: 20px; height: 20px; stroke-width: 1.5; }
.idioma summary:hover, .idioma[open] summary { background: var(--papel-2); }
.idioma__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; list-style: none; margin: 0; padding: 6px; min-width: 180px; background: var(--blanco); border-radius: 16px; box-shadow: 0 1px 0 var(--linea), var(--sombra); animation: entra .2s both; }
.idioma__menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.idioma__menu a:hover { background: var(--papel); }
.idioma__menu a[aria-current] { color: var(--sol); font-weight: 700; }
.idioma__cod { display: grid; place-items: center; width: 30px; height: 24px; border-radius: 6px; background: var(--papel-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--tinta); }
.idioma__menu a[aria-current] .idioma__cod { background: var(--sol); color: #fff; }
.e404 + .e404 { margin-top: 18px; }
.e404__otro { font-size: 15px; }
.btn-cesta { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 99px; border: 1.5px solid var(--tinta); background: transparent; font-weight: 600; transition: background-color .2s, color .2s; }
.btn-cesta:hover { background: var(--tinta); color: var(--papel); }
.btn-cesta svg { width: 22px; height: 22px; stroke-width: 1.5; }
.btn-cesta__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--sol); color: #fff; font-size: 13px; font-weight: 700; }
.btn-cesta.salta { animation: salta .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes salta { 40% { transform: scale(1.12) rotate(-4deg); } }
.btn-menu { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--papel-2); position: relative; }
.btn-menu span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .3s; }
.btn-menu span:first-child { top: 19px; } .btn-menu span:last-child { top: 26px; }
.btn-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: clamp(72px, 10vw, 130px) var(--gut); }
.seccion__cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.seccion__cab h1 { font-size: clamp(42px, 6.4vw, 80px); }
.seccion__cab--centro { flex-direction: column; align-items: center; text-align: center; }
.seccion__lado { max-width: 380px; color: var(--tinta-2); margin: 0; }

/* ---------- Hilo decorativo (se dibuja al hacer scroll) ---------- */
.hilo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hilo path { stroke: var(--sol); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; opacity: .55; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__in { position: relative; max-width: var(--ancho); margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--gut) clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__titulo { font-size: clamp(50px, 8.2vw, 112px); line-height: .94; letter-spacing: -.035em; margin-bottom: 26px; }
.hero__titulo em { position: relative; display: inline-block; }
.hero__titulo em::after { /* subrayado como un hilo */
  content: ""; position: absolute; left: 2%; right: -2%; bottom: -.06em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 60 2, 90 20, 150 10 S 250 4, 298 12' fill='none' stroke='%23df5f27' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__entrada { font-size: clamp(17px, 1.5vw, 20px); max-width: 30em; color: var(--tinta-2); margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__datos { list-style: none; padding: 26px 0 0; margin: 40px 0 0; display: flex; gap: clamp(20px, 4vw, 44px); border-top: 1px dashed var(--linea); font-size: 15px; color: var(--tinta-2); }
.hero__datos strong { display: block; font: 400 34px/1 var(--serif); color: var(--tinta); margin-bottom: 4px; }
.hero__fotos { position: relative; aspect-ratio: 1 / 1.08; }
.arco { margin: 0; overflow: hidden; border-radius: 999px 999px var(--radio) var(--radio); background: var(--papel-2); }
.arco img { width: 100%; height: 100%; object-fit: cover; }
.arco--grande { position: absolute; right: 0; top: 0; width: 74%; height: 92%; box-shadow: var(--sombra); }
.arco--peque { position: absolute; left: 0; bottom: 0; width: 40%; height: 48%; border: 6px solid var(--papel); box-shadow: var(--sombra); animation: flota 7s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.sello-giro { position: absolute; left: 12%; top: 6%; width: 124px; height: 124px; border-radius: 50%; background: var(--ocre); color: var(--tinta); display: grid; place-items: center; box-shadow: var(--sombra); }
.sello-giro svg { position: absolute; inset: 0; animation: gira 22s linear infinite; }
.sello-giro text { font: 600 11.5px var(--sans); text-transform: uppercase; fill: var(--tinta); stroke: none; }
.sello-giro svg.sello-giro__aguja { position: static; width: 46px; height: 46px; animation: none; stroke: var(--tinta); }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Cinta (punto jersey) ---------- */
.cinta { position: relative; background: var(--sol); color: #fff; overflow: hidden; padding: 20px 0; }
.cinta::before { content: ""; position: absolute; inset: 0; opacity: .16; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M1 1 L8 12 L15 1' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cinta__mov { position: relative; display: flex; align-items: center; gap: 28px; width: max-content; animation: cinta 38s linear infinite; font: 400 clamp(26px, 3.4vw, 40px)/1 var(--serif); }
.cinta__mov em { font-style: italic; }
.cinta__mov i { font-style: normal; font-size: .6em; opacity: .75; }
@keyframes cinta { to { transform: translateX(-33.333%); } }
.punto-banda { height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M2 2 L9 15 L16 2' fill='none' stroke='%23df5f27' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x; }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filtros button { height: 44px; padding: 0 20px; border-radius: 99px; border: 1.5px solid var(--linea); background: transparent; font-weight: 600; transition: all .2s; }
.filtros button span { opacity: .55; margin-left: 4px; font-weight: 500; }
.filtros button:hover { border-color: var(--tinta); }
.filtros button[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }

/* ---------- Tarjetas de producto ---------- */
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.tarjeta { display: flex; flex-direction: column; transition: opacity .35s, transform .35s; }
.tarjeta.oculta { display: none; }
.tarjeta.entra { animation: entra .5s both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.tarjeta__foto { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 200px 200px var(--radio) var(--radio); background: var(--tono, var(--papel-2)); }
.tarjeta__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.tarjeta__b { opacity: 0; }
.tarjeta:hover .tarjeta__b { opacity: 1; }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.04); }
.tarjeta__sello { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 250, 243, .92); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.tarjeta__cuerpo { padding: 18px 4px 0; display: flex; flex-direction: column; flex: 1; }
.tarjeta__titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tarjeta h3 { font-size: 25px; line-height: 1.1; }
.tarjeta h3 a { text-decoration: none; }
.tarjeta h3 a:hover { color: var(--sol); }
.tarjeta h3 em { font-size: .8em; }
.precio { font: 600 19px/1 var(--sans); white-space: nowrap; }
.precio--grande { font: 400 44px/1 var(--serif); letter-spacing: -.02em; }
.tarjeta__frase { color: var(--tinta-2); font-size: 15.5px; margin: 6px 0 16px; }

/* Compra rápida: idioma + añadir */
.compra--mini { margin-top: auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.idiomas { display: inline-flex; gap: 3px; padding: 4px; margin: 0; border: 0; border-radius: 99px; background: var(--papel-2); }
.idiomas label { position: relative; cursor: pointer; }
.idiomas input { position: absolute; opacity: 0; pointer-events: none; }
.idiomas span { display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--tinta-2); transition: all .2s; }
.idiomas label:hover span { color: var(--tinta); }
.idiomas input:checked + span { background: var(--blanco); color: var(--tinta); box-shadow: 0 2px 8px -3px rgba(43, 29, 22, .35); }
.idiomas input:focus-visible + span { outline: 2.5px solid var(--sol); }

/* ---------- Cómo funciona ---------- */
.como { text-align: center; }
.pasos { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.pasos::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed var(--sol); opacity: .5; }
.pasos li { position: relative; padding: 0 12px; }
.pasos__n { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--papel); border: 2px solid var(--tinta); font: italic 400 30px/1 var(--serif); position: relative; }
.pasos li:nth-child(2) .pasos__n { background: var(--rosa); }
.pasos li:nth-child(3) .pasos__n { background: var(--ocre); }
.pasos h3 { font-size: 27px; margin-bottom: 10px; }
.pasos p { color: var(--tinta-2); max-width: 22em; margin: 0 auto; }
.incluye { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; justify-content: center; background: var(--blanco); border-radius: var(--radio); padding: 26px 30px; border: 1.5px dashed var(--linea); }
.incluye h3 { font-size: 22px; }
.incluye ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.incluye li { padding: 8px 14px; border-radius: 99px; background: var(--papel-2); font-size: 15px; font-weight: 500; }

/* ---------- Bloque gratis ---------- */
.gratis-bloque { max-width: none; background: var(--salvia); color: var(--papel); border-radius: clamp(24px, 4vw, 48px); margin: 0 clamp(8px, 1.5vw, 20px); padding-left: max(var(--gut), calc((100% - var(--ancho)) / 2 + var(--gut))); padding-right: max(var(--gut), calc((100% - var(--ancho)) / 2 + var(--gut))); }
.gratis-bloque h2 em { color: var(--rosa); }
.gratis-bloque .seccion__lado { color: rgba(245, 237, 225, .8); }
.gratis-rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.gratis-t { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.gratis-t__foto { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 12px; border: 5px solid rgba(245, 237, 225, .18); transition: transform .4s, border-color .3s; }
.gratis-t:hover .gratis-t__foto { transform: rotate(-3deg) scale(1.03); border-color: var(--rosa); }
.gratis-t__foto img { width: 100%; height: 100%; object-fit: cover; }
.gratis-t strong { font: 400 23px/1.15 var(--serif); }
.gratis-t__tec { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 250, 243, .94); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: transform .3s; }
.play::after { content: ""; position: absolute; left: 22px; top: 18px; border-left: 15px solid var(--sol); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play--grande { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.play--grande::after { left: 32px; top: 26px; border-left-width: 21px; border-top-width: 13px; border-bottom-width: 13px; }
.gratis-t:hover .play, .video__marco:hover .play { transform: scale(1.1); }

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sobre__foto { aspect-ratio: 4 / 5; box-shadow: var(--sombra); }
.sobre h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 24px; }
.sobre p { color: var(--tinta-2); font-size: 18px; }
.pilares { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.pilares li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dashed var(--linea); color: var(--tinta-2); }
.pilares span { font: italic 400 26px/1 var(--serif); color: var(--tinta); }
.btn svg rect, .btn svg circle { stroke-width: 1.8; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.redes .btn { min-height: 46px; padding: 0 15px; gap: .45em; font-size: 15px; }
.redes .btn svg { width: 19px; height: 19px; }
.redes .btn:hover svg { transform: none; }

/* ---------- Preguntas ---------- */
.acordeon { max-width: 820px; margin: 0 auto; }
.acordeon details { border-bottom: 1.5px solid var(--linea); }
.acordeon summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font: 400 clamp(20px, 2.2vw, 25px)/1.25 var(--serif); }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--papel-2) 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='%232b1d16' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s, background-color .3s; }
.acordeon details[open] summary::after { transform: rotate(45deg); background-color: var(--rosa); }
.acordeon details p, .acordeon details ul { margin: 0 4px 24px; color: var(--tinta-2); max-width: 44em; }

/* ---------- Ficha de producto ---------- */
.ficha { max-width: var(--ancho); margin: 0 auto; padding: 22px var(--gut) clamp(40px, 6vw, 80px); }
.migas { font-size: 14.5px; color: var(--tinta-2); margin-bottom: 22px; display: flex; gap: 8px; }
.migas a { text-decoration: none; font-weight: 600; color: var(--tinta); }
.migas a:hover { color: var(--sol); }
.ficha__in { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.galeria { position: sticky; top: calc(var(--cab) + 16px); display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.galeria__pista { grid-column: 2; grid-row: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 280px 280px var(--radio) var(--radio); aspect-ratio: 4 / 5; background: var(--tono); }
.galeria__pista::-webkit-scrollbar { display: none; }
.galeria__foto { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.galeria__foto img { width: 100%; height: 100%; object-fit: cover; }
.galeria__minis { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.galeria__minis button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; aspect-ratio: 4 / 5; opacity: .6; transition: all .2s; }
.galeria__minis button[aria-selected="true"], .galeria__minis button:hover { opacity: 1; border-color: var(--tinta); }
.galeria__minis img { width: 100%; height: 100%; object-fit: cover; }
.ficha__info h1 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 20px; }
.ficha__intro { font-size: 18px; color: var(--tinta-2); }
.compra { margin: 28px 0 30px; padding: 24px; border-radius: var(--radio); background: var(--blanco); box-shadow: 0 1px 0 var(--linea), var(--sombra); }
.idiomas--grande { display: block; width: 100%; padding: 0; background: none; border-radius: 0; }
.idiomas--grande legend { font-weight: 600; font-size: 14px; margin: 0 0 10px 2px; padding: 0; color: var(--tinta-2); }
.idiomas__op { display: flex; gap: 3px; padding: 5px; border-radius: 99px; background: var(--papel); }
.idiomas--grande label { flex: 1; }
.idiomas--grande span { height: 44px; font-size: 15px; letter-spacing: 0; }
.compra__fila { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.compra__fila .btn { flex: 1; min-height: 58px; font-size: 17px; }
.compra__garantias { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px dashed var(--linea); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--tinta-2); }
.compra__garantias li::before { content: "✓"; color: var(--salvia); font-weight: 700; margin-right: 6px; }
.datos { margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.datos div { background: var(--papel); padding: 16px 18px; }
.datos div:last-child { grid-column: 1 / -1; }
.datos dt { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 4px; }
.datos dd { margin: 0; font-size: 15.5px; }
.acordeon--ficha summary { font-size: 22px; padding: 20px 2px; }
.lista-hilo { list-style: none; padding: 0 !important; }
.lista-hilo li { padding: 5px 0 5px 26px; position: relative; }
.lista-hilo li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 2px; background: var(--sol); border-radius: 2px; }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 99px; background: var(--papel-2); font-size: 14.5px; color: var(--tinta); }
.relacionados { padding-top: 40px; }
.rejilla--3 .tarjeta:nth-child(n+4) { display: none; }

/* Barra fija de compra (móvil) */
.compra-fija { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--blanco); box-shadow: 0 12px 40px -10px rgba(43, 29, 22, .45); transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.compra-fija.visible { transform: none; }
.compra-fija img { width: 44px; height: 55px; object-fit: cover; border-radius: 10px; }
.compra-fija div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.compra-fija strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compra-fija span { font-size: 13px; color: var(--tinta-2); }

/* ---------- Página gratis ---------- */
.videos { display: grid; gap: clamp(36px, 6vw, 72px); margin-bottom: 70px; }
.video { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.video:nth-child(even) .video__marco { order: 2; }
.video__marco { position: relative; padding: 0; border: 0; aspect-ratio: 16 / 10; border-radius: var(--radio); overflow: hidden; background: var(--tinta); box-shadow: var(--sombra); }
.video__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video__marco:hover img { transform: scale(1.03); }
.video__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 8px 0 14px; }
.video p { color: var(--tinta-2); font-size: 17.5px; }
.video .gratis-t__tec { color: var(--sol); opacity: 1; }
.banda-gratis { display: flex; align-items: center; gap: 18px; margin-top: 56px; padding: 22px 26px; border-radius: var(--radio); background: var(--salvia); color: var(--papel); text-decoration: none; font-size: 17px; transition: transform .25s; }
.banda-gratis:hover { transform: translateY(-3px); }
.banda-gratis > span:nth-child(2) { flex: 1; }
.banda-gratis svg { width: 26px; height: 26px; flex: none; }
.banda-gratis__tag { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--rosa); color: var(--tinta); font-weight: 700; font-size: 14px; }
.banda-gratis--sol { background: var(--sol); }

/* ---------- Gracias / listo ---------- */
.gracias { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.listo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.listo h1, .listo h3 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 8px; }
.cesta .listo h3 { font-size: 30px; }
.listo p { color: var(--tinta-2); }
.listo__check { width: 84px; height: 84px; stroke: var(--salvia); stroke-width: 3; }
.listo__check circle { fill: #e4e6d2; stroke: none; }
.listo__check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: traza .6s .2s forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
.listo__descargas { list-style: none; padding: 0; margin: 14px 0 26px; width: 100%; max-width: 440px; display: grid; gap: 10px; }
.listo__descargas a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--blanco); border: 1.5px solid var(--linea); text-decoration: none; text-align: left; transition: border-color .2s; }
.listo__descargas a:hover { border-color: var(--sol); }
.listo__descargas a span { flex: 1; line-height: 1.3; }
.listo__descargas small { display: block; color: var(--tinta-2); }
.listo__descargas svg { width: 24px; height: 24px; color: var(--sol); flex: none; }

/* ---------- Textos legales / 404 ---------- */
.texto-legal { max-width: 780px; }
.texto-legal h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 24px; }
.texto-legal h2 { font-size: 26px; margin: 34px 0 10px; }
.texto-legal p, .texto-legal li { color: var(--tinta-2); }
.texto-legal mark { background: #f8d7b5; padding: 0 4px; border-radius: 4px; }
.pendiente { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #fde2c6; color: var(--sol-osc) !important; font-weight: 600; font-size: 14.5px; }
.error404 { text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error404 h1 { font-size: clamp(42px, 7vw, 84px); margin-bottom: 14px; }
.error404 p { color: var(--tinta-2); margin-bottom: 28px; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: var(--papel); margin-top: clamp(40px, 6vw, 80px); }
.pie .punto-banda { background-color: var(--papel); transform: scaleY(-1); }
.pie__in { max-width: var(--ancho); margin: 0 auto; padding: 64px var(--gut) 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.pie__lema { font: 400 24px/1.3 var(--serif); margin: 20px 0 0; }
.pie__lema em { color: var(--rosa); }
.pie__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pie h3 { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 237, 225, .55); margin-bottom: 16px; }
.pie__cols a { display: block; padding: 5px 0; text-decoration: none; opacity: .9; }
.pie__cols a:hover { color: var(--rosa); }
.pie__legal { max-width: var(--ancho); margin: 0 auto; padding: 22px var(--gut) 30px; border-top: 1px solid rgba(245, 237, 225, .14); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(245, 237, 225, .6); }
.pie__legal a { text-decoration: none; }
.pie__legal a:hover { color: var(--papel); }
.pie__pago { margin-left: auto; }

/* =========================================================
   Cesta: panel lateral (escritorio) / hoja inferior (móvil)
   ========================================================= */
.velo { position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 22, .42); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s; }
.velo.abierto { opacity: 1; }
.cesta {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  display: flex; flex-direction: column; background: var(--papel);
  box-shadow: -20px 0 60px -20px rgba(43, 29, 22, .4);
  transform: translateX(105%); transition: transform .42s cubic-bezier(.2, .8, .2, 1), width .35s;
}
.cesta:not(.abierta) { visibility: hidden; transition: transform .42s cubic-bezier(.2, .8, .2, 1), visibility 0s .42s; }
.cesta.abierta { transform: none; }
.cesta.en-pago { width: min(540px, 100%); }
.cesta__cab { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--linea); }
.cesta__cab h2 { font-size: 28px; }
.cesta__pasos { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; counter-reset: p; }
.cesta__pasos li { font-size: 12px; font-weight: 600; color: var(--tinta-2); display: flex; align-items: center; gap: 4px; }
.cesta__pasos li + li::before { content: ""; width: 12px; height: 1.5px; background: var(--linea); margin-right: 2px; }
.cesta__pasos li.activo { color: var(--sol); }
.cesta__pasos li.hecho { color: var(--salvia); }
.cesta__cerrar { margin-left: auto; }
.cesta__pasos + .cesta__cerrar { margin-left: 0; }
.cesta__cerrar, .cesta__volver { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--papel-2); display: grid; place-items: center; transition: background-color .2s; }
.cesta__cerrar:hover, .cesta__volver:hover { background: var(--papel-3); }
.cesta__cerrar svg, .cesta__volver svg { width: 20px; height: 20px; stroke-width: 2; }
.cesta__vista { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }
.cesta__lista { list-style: none; padding: 0; margin: 0; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--linea); align-items: center; animation: entra .35s both; }
.item__foto { width: 76px; height: 94px; border-radius: 40px 40px 10px 10px; object-fit: cover; background: var(--papel-2); }
.item__nombre { font: 400 19px/1.15 var(--serif); margin: 0 0 8px; text-decoration: none; display: block; }
.item .idiomas span { min-width: 36px; height: 30px; font-size: 12.5px; padding: 0 8px; }
.item__der { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; }
.item__precio { font-weight: 700; }
.item__quitar { border: 0; background: none; font-size: 13.5px; color: var(--tinta-2); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.item__quitar:hover { color: var(--sol-osc); }
.item.sale { animation: sale .3s forwards; }
@keyframes sale { to { opacity: 0; transform: translateX(30px); } }
.cesta__vacia { text-align: center; padding: 50px 10px; display: none; flex-direction: column; align-items: center; gap: 12px; }
.cesta__vacia.visible { display: flex; }
.cesta__vacia p { color: var(--tinta-2); margin-bottom: 10px; }
.cesta__vacia strong { color: var(--tinta); font: 400 24px/1.3 var(--serif); }
.ovillo-vacio { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 8px; background: repeating-linear-gradient(-35deg, var(--rosa) 0 6px, #e3b39c 6px 9px); box-shadow: inset -8px -10px 0 rgba(43, 29, 22, .08); }
.cesta__pie { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--blanco); }
.cesta__pie[hidden] { display: none; }
.cesta__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cesta__total strong { font: 400 32px/1 var(--serif); }
.cesta__pie .btn { min-height: 56px; font-size: 17px; }
.cesta__nota { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--tinta-2); }
.cesta__nota svg { width: 18px; height: 18px; flex: none; }
.cesta__resumen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--papel-2); margin: 8px 0 16px; font-size: 14.5px; }
.cesta__resumen .fotos { display: flex; }
.cesta__resumen .fotos img { width: 34px; height: 42px; border-radius: 18px 18px 6px 6px; object-fit: cover; border: 2px solid var(--papel-2); margin-left: -10px; }
.cesta__resumen .fotos img:first-child { margin-left: 0; }
.cesta__resumen > span:nth-child(2) { flex: 1; line-height: 1.3; }
.cesta__resumen small { color: var(--tinta-2); }
.cesta__resumen strong { font-size: 17px; }
.cesta__stripe { min-height: 380px; border-radius: 14px; }
.cargando { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 0; color: var(--tinta-2); font-size: 15px; }
.cargando span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--papel-3); border-top-color: var(--sol); animation: gira .8s linear infinite; }
.cesta__vista--listo { display: flex; align-items: center; justify-content: center; }

/* Demo de pago (mientras no hay claves de Stripe) */
.demo-pago { background: var(--blanco); border-radius: 16px; padding: 22px; border: 1.5px solid var(--linea); }
.demo-pago__aviso { font-size: 13px; font-weight: 600; background: #fde2c6; color: var(--sol-osc); padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; }
.demo-pago__wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.demo-pago__wallets span { display: grid; place-items: center; height: 48px; border-radius: 10px; background: #000; color: #fff; font-weight: 600; font-size: 15px; }
.demo-pago__o { text-align: center; font-size: 13px; color: var(--tinta-2); margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.demo-pago__o::before, .demo-pago__o::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.demo-pago label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.demo-pago .campo { height: 46px; border-radius: 10px; border: 1.5px solid var(--linea); background: #fff; padding: 0 14px; display: flex; align-items: center; color: #9a8a7e; font-size: 15px; margin-bottom: 14px; }
.demo-pago .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-pago .check { display: flex; gap: 10px; font-size: 13.5px; color: var(--tinta-2); font-weight: 400; margin: 4px 0 18px; }
.demo-pago .check input { accent-color: var(--sol); width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* Aviso flotante */
.aviso { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 160%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 99px; background: var(--tinta); color: var(--papel); font-size: 15px; box-shadow: var(--sombra); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2); max-width: calc(100% - 32px); }
.aviso:not(.visible) { visibility: hidden; transition: transform .4s, visibility 0s .4s; }
.aviso.visible { transform: translate(-50%, 0); }
.aviso button { border: 0; background: var(--sol); color: #fff; padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1060px) {
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .gratis-rejilla { grid-template-columns: repeat(2, 1fr); }
  .rejilla--3 .tarjeta:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  :root { --cab: 64px; }
  .menu { position: fixed; top: var(--cab); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gut) 24px; background: var(--papel); border-bottom: 1px solid var(--linea); box-shadow: var(--sombra); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s; }
  .menu.abierto { transform: none; opacity: 1; visibility: visible; }
  .menu a { font: 400 28px/1.2 var(--serif); padding: 12px 0; border-radius: 0; border-bottom: 1px dashed var(--linea); }
  .menu a:hover, .menu a[aria-current] { background: none; color: var(--sol); }
  .cabecera__acc { margin-left: auto; gap: 6px; }
  .idioma summary { padding: 0 10px; }
  .btn-menu { display: block; }
  .logo__img { width: 62px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__fotos { max-width: 520px; width: 100%; margin: 0 auto; }
  .seccion__cab { flex-direction: column; align-items: flex-start; gap: 16px; }
  .seccion__cab--centro { align-items: center; }
  .pasos { grid-template-columns: 1fr; gap: 34px; }
  .pasos::before { top: 34px; bottom: 34px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--sol); }
  .pasos li { background: var(--papel); padding-bottom: 6px; }
  .sobre { grid-template-columns: 1fr; }
  .sobre__foto { max-width: 520px; }
  .ficha__in { grid-template-columns: 1fr; }
  .galeria { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gut) * -1); }
  .galeria__pista { grid-column: 1; border-radius: 0; }
  .galeria__minis { grid-column: 1; grid-row: 2; flex-direction: row; justify-content: center; gap: 8px; }
  .galeria__minis button { width: 10px; height: 10px; border-radius: 50%; aspect-ratio: auto; background: var(--papel-3); border: 0; opacity: 1; }
  .galeria__minis button[aria-selected="true"] { background: var(--sol); width: 26px; border-radius: 99px; }
  .galeria__minis img { display: none; }
  .compra-fija { display: flex; }
  .video, .video:nth-child(even) { grid-template-columns: 1fr; }
  .video:nth-child(even) .video__marco { order: 0; }
  .pie__in { grid-template-columns: 1fr; }
  .pie__pago { margin-left: 0; }
  .pilares li { grid-template-columns: 1fr; gap: 4px; }

  /* La cesta pasa a hoja inferior */
  .cesta, .cesta.en-pago { top: auto; left: 0; width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; transform: translateY(105%); box-shadow: 0 -20px 60px -20px rgba(43, 29, 22, .4); }
  .cesta.en-pago { height: 92dvh; }
  .cesta.abierta { transform: none; }
  .cesta__cab { padding: 22px 16px 14px; position: relative; }
  .cesta__cab::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--papel-3); }
  .cesta__cab h2 { font-size: 24px; }
  .cesta__vista { padding: 4px 16px 16px; }
  .cesta__pie { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rejilla { grid-template-columns: 1fr; gap: 40px; }
  .rejilla--3 .tarjeta:nth-child(n+2) { display: none; }
  .hero__titulo { font-size: clamp(46px, 13.5vw, 64px); }
  .hero__ctas .btn { flex: 1; }
  .hero__datos { gap: 18px; }
  .hero__datos strong { font-size: 28px; }
  .hilo--hero { display: none; }
  .sello-giro { width: 96px; height: 96px; left: 4%; }
  .sello-giro text { font-size: 10.5px; }
  .tarjeta h3 { font-size: 24px; }
  .gratis-rejilla { gap: 24px 14px; }
  .gratis-t strong { font-size: 19px; }
  .cesta__pasos { display: none; }
  .btn-cesta__txt { display: none; }
  .btn-cesta { padding: 0 12px; }
  .cesta__pasos + .cesta__cerrar { margin-left: auto; }
  .datos { grid-template-columns: 1fr; }
  .compra { padding: 18px; margin-left: calc(var(--gut) * -.4); margin-right: calc(var(--gut) * -.4); }
  .compra__fila { gap: 14px; }
  .precio--grande { font-size: 36px; }
  .banda-gratis { flex-wrap: wrap; font-size: 16px; }
  .banda-gratis svg { display: none; }
  .pie__cols { grid-template-columns: 1fr 1fr; }
  .incluye { padding: 22px 16px; }
  .pie__legal { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.video__txt .enlace + .enlace { margin-left: 18px; }
