/* Cerroalto v4 · Tienda de la finca
   Un producto por pantalla, cada uno con su color. Fotografía de estudio, Gloock + Schibsted Grotesk. */

:root {
  --piedra: #e7e2d9;
  --piedra-2: #dcd5c9;
  --tinta: #1e1915;
  --tinta-2: #4a4038;
  --crema: #f6efe4;
  --f: var(--piedra);
  --t: var(--tinta);
  --gut: clamp(20px, 4vw, 64px);
  --cab-h: 68px;
  --display: 'Gloock', 'Times New Roman', serif;
  --texto: 'Schibsted Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Los mundos de color: fondo (--f) y tinta (--t) de cada producto */
[data-mundo="piedra"] { --f: #e7e2d9; --t: #1e1915; --t2: #51473e; }
[data-mundo="joven"] { --f: #a8322a; --t: #fbf1e8; --t2: #f3d9cc; }
[data-mundo="crianza"] { --f: #5f1a28; --t: #f6e7df; --t2: #e3c7c0; }
[data-mundo="ladera"] { --f: #241418; --t: #efe2d4; --t2: #cbb9ac; }
[data-mundo="rosado"] { --f: #f0c3b4; --t: #3d1216; --t2: #5c2a29; }
[data-mundo="arbequina"] { --f: #c9c46f; --t: #22240e; --t2: #3c3d1c; }
[data-mundo="redondilla"] { --f: #2e3b1f; --t: #eef0d9; --t2: #cfd3b4; }
[data-mundo="lata"] { --f: #a9b38e; --t: #1a200f; --t2: #2f3622; }
[data-mundo="caja5"] { --f: #e8834f; --t: #2b1208; --t2: #4a2414; }
[data-mundo="caja10"] { --f: #e0b240; --t: #2a1d05; --t2: #4a3613; }
[data-mundo="lote"] { --f: #c09366; --t: #24160b; --t2: #432c19; }
[data-mundo="club"] { --f: #1f1a16; --t: #efe7da; --t2: #c9bdab; }
[data-mundo="visitas"] { --f: #43302a; --t: #f3e9dc; --t2: #d8c7b6; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--cab-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--piedra);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--texto);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Texto corrido justificado sin huecos; titulares, datos y pies, a la izquierda */
main p, footer p, .ficha p {
  text-align: justify; text-align-last: left; text-wrap: pretty; hyphens: manual; -webkit-hyphens: manual;
}
.escena__sub, .escena__p, .pausa__legal, .err, .portada__fila, .pie__fila p, .pie__col p, .pie__lema, .menu__pie,
.ficha__sub, .ficha__p, .semana__nada { text-align: left !important; }

.salto { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--crema); padding: 10px 14px; text-decoration: none; }
.salto:focus { top: 12px; }

/* ---------- Capas de color ---------- */
main, .pie { position: relative; z-index: 1; }
/* Cada bloque lleva su color; arriba se funde con el color del bloque anterior (--prev, lo pone main.js) */
main [data-mundo] { position: relative; background: var(--f); color: var(--t); }
main [data-mundo]::before { content: ''; position: absolute; inset: 0 0 auto; height: min(42vh, 380px); background: linear-gradient(var(--prev, var(--f)), var(--f)); pointer-events: none; z-index: 0; }
main [data-mundo] > * { position: relative; z-index: 1; }
main [data-mundo] > .escena__voz { z-index: 0; }
@media (min-width: 1000px) { main [data-mundo] > .escena__voz { position: absolute; } }
html[data-mundo] { background: transparent; }
.portada { transition: background-color .6s var(--ease), color .6s var(--ease); }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85rem 1.5rem;
  background: var(--t, var(--tinta)); color: var(--f, var(--piedra));
  border: 1.5px solid transparent; border-radius: 2px;
  font: 600 1rem/1.1 var(--texto); letter-spacing: .005em; text-decoration: none;
  transition: background-color .6s, color .6s, transform .3s var(--ease);
}
.boton svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.boton:hover svg { transform: translateX(4px); }
.boton:active { transform: scale(.98); }
.boton--tinta { background: var(--t); color: var(--f); }
.boton--claro { background: var(--t); color: var(--f); }
.boton--hueco { background: transparent; color: inherit; border-color: currentColor; }
.boton--ancho { width: 100%; }
.boton[disabled] { opacity: .5; cursor: not-allowed; }
.enlace {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; padding: .3rem 0; color: inherit;
  font: 500 1rem/1.3 var(--texto); text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 1px;
  transition: text-underline-offset .3s var(--ease);
}
.enlace:hover { text-underline-offset: .45em; }
.titulo { font: 400 clamp(2.4rem, 4.6vw, 4.6rem)/1.02 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.titulo .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.titulo .w > span { display: inline-block; }

/* ---------- Cabecera ---------- */
.cab {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--cab-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gut);
  background: var(--f); color: var(--t);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.marca { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; text-decoration: none; color: inherit; }
.marca__s { width: 30px; height: 30px; fill: currentColor; color: inherit; }
.marca__t { font: 400 1.6rem/1 var(--display); letter-spacing: -.01em; }
.cab__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.cab__nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .4rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.cab__nav a:hover, .cab__nav a[aria-current="true"] { background-size: 100% 1px; }
.cab__r { display: flex; align-items: center; gap: .6rem; }
.cestab, .menub {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  background: transparent; border: 1.5px solid currentColor; border-radius: 2px; color: inherit; font-weight: 600; font-size: 1rem;
}
.cestab__n { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; background: var(--t); color: var(--f); transition: background-color .6s, color .6s; border-radius: 1em; font-size: .85rem; font-variant-numeric: tabular-nums; transition: transform .4s var(--ease); }
.cestab__n.salta { animation: salta .5s var(--ease); }
@keyframes salta { 40% { transform: scale(1.35); } }
.menub { display: none; }

/* ---------- Portada ---------- */
.portada { padding: calc(var(--cab-h) + clamp(32px, 6vh, 72px)) var(--gut) clamp(40px, 8vh, 96px); }
.portada__txt { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.portada__h { grid-column: 1 / 9; font: 400 clamp(2.9rem, 6.6vw, 7.4rem)/.96 var(--display); letter-spacing: -.02em; }
.portada__h .ln { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.portada__h .ln > span { display: block; }
.portada__lado { grid-column: 9 / 13; padding-bottom: .5rem; }
.portada__lado p { color: var(--t2, var(--tinta-2)); margin-bottom: 1.4rem; }
.portada__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }
.portada__fig { margin-top: clamp(28px, 5vh, 64px); }
.portada__foto { position: relative; aspect-ratio: 1672 / 941; background: var(--piedra-2); }
.portada__foto img { width: 100%; height: 100%; object-fit: contain; }
.portada__zona { position: absolute; top: 8%; bottom: 6%; left: var(--x); width: var(--w); }
.portada__fila a.vivo { background-size: 100% 3px; }
.portada__fila { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1rem; font-size: .95rem; color: var(--t2, var(--tinta-2)); }
.portada__fila a { text-decoration: none; color: var(--t); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.portada__fila a:hover { background-size: 100% 2px; }
.portada__de { margin-right: .2rem; }
.portada { transition: color .5s var(--ease); }

/* ---------- La colección ---------- */
.pausa { padding: clamp(96px, 18vh, 200px) var(--gut); }
.pausa__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.pausa__txt { grid-column: 1 / 7; }
.pausa__txt .titulo { margin-bottom: 1.6rem; max-width: 13ch; }
.pausa__txt p { max-width: 36rem; color: var(--t2); }
.pausa__legal { margin-top: 1.4rem; font-size: .95rem; }
.pausa__fig { grid-column: 8 / 12; aspect-ratio: 1772 / 2200; overflow: hidden; }
.pausa__fig img { width: 100%; height: 100%; object-fit: cover; }

.escena {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: clamp(24px, 3vw, 56px);
  align-items: end; padding: calc(var(--cab-h) + 6vh) var(--gut) 7vh;
  overflow: clip;
}
.escena__voz {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -.42em;
  font: 400 clamp(5rem, 19vw, 22rem)/.84 var(--display); letter-spacing: -.035em; white-space: nowrap; text-align: center;
  color: color-mix(in srgb, var(--t) 15%, transparent); pointer-events: none; user-select: none;
}
.escena__voz span { display: inline-block; will-change: transform; }
.escena__lam { grid-column: 2; grid-row: 1; align-self: center; position: relative; z-index: 1; height: min(68vh, 680px); aspect-ratio: 1122 / 1402; box-sizing: content-box; padding: clamp(10px, 1.1vw, 16px); background: #f2ede5; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 40px 70px -40px rgb(20 12 8 / .55); will-change: transform; }
.escena__lam img { width: 100%; height: 100%; object-fit: contain; }
.escena__info { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 27rem; }
.escena__n { font: 400 clamp(2.4rem, 3.6vw, 3.8rem)/1 var(--display); letter-spacing: -.015em; margin-bottom: .8rem; }
.escena__sub { font-weight: 600; font-size: .98rem; margin-bottom: 1rem; }
.escena__d { color: var(--t2); }
.escena__compra { grid-column: 3; grid-row: 1; position: relative; z-index: 2; justify-self: end; display: grid; justify-items: end; gap: .9rem; }
.escena__p { font: 400 clamp(2.4rem, 3.4vw, 3.6rem)/1 var(--display); font-variant-numeric: lining-nums; }

/* ---------- La caja de la semana ---------- */
.semana { padding: clamp(96px, 16vh, 180px) var(--gut); }
.semana__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.semana__lam { grid-column: 1 / 6; position: relative; aspect-ratio: 1122 / 1402; padding: clamp(10px, 1.1vw, 16px); background: #f2ede5; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 40px 70px -40px rgb(20 12 8 / .55); }
.semana__lam img { position: absolute; inset: clamp(10px, 1.1vw, 16px); width: calc(100% - 2 * clamp(10px, 1.1vw, 16px)); height: calc(100% - 2 * clamp(10px, 1.1vw, 16px)); object-fit: contain; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.es-oculta { opacity: 0; transform: scale(.97); }
.semana__txt { grid-column: 7 / 13; }
.semana__txt > .titulo { margin-bottom: 1.4rem; }
.semana__txt > p { color: var(--t2); max-width: 38rem; }
.semana__f { margin-top: 2rem; display: grid; gap: 1.6rem; max-width: 38rem; }
.opciones { border: 0; margin: 0; padding: 0; display: grid; gap: 0; }
.opciones legend { padding: 0; margin-bottom: .6rem; font-weight: 600; }
.opciones--dias { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.opciones--dias legend { grid-column: 1 / -1; }
.opcion { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .9rem; padding: 1rem 0; border-top: 1px solid color-mix(in srgb, var(--t) 28%, transparent); cursor: pointer; }
.opcion:last-child { border-bottom: 1px solid color-mix(in srgb, var(--t) 28%, transparent); }
.opciones--dias .opcion:nth-last-child(2) { border-bottom: 1px solid color-mix(in srgb, var(--t) 28%, transparent); }
.opcion input { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: -11px; border: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, transparent 0 9.3px, currentColor 9.8px 11px, transparent 11.5px); cursor: pointer; }
.opcion input::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .3s var(--ease); }
.opcion input:checked::after { transform: scale(1); }
.opcion input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.opcion__n { font-weight: 500; }
.opcion__d { font-variant-numeric: tabular-nums; color: var(--t2); }
.semana__lleva { min-height: 3.2em; }
.semana__nada { color: var(--t2); }

/* ---------- El club ---------- */
.club { padding: clamp(96px, 16vh, 180px) var(--gut); }
.club__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.club__txt { grid-column: 1 / 7; }
.club__txt > .titulo { margin-bottom: 1.4rem; }
.club__txt > p { color: var(--t2); max-width: 38rem; }
.planes { margin: 2.2rem 0 1.6rem; display: grid; }
.plan { position: relative; display: grid; grid-template-columns: 26px 1fr auto; column-gap: 1rem; row-gap: .4rem; padding: 1.4rem 0; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); cursor: pointer; }
.plan:last-child { border-bottom: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.plan input { appearance: none; -webkit-appearance: none; grid-row: 1; width: 44px; height: 44px; margin: -.3rem -10px 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, transparent 0 10.3px, currentColor 10.8px 12px, transparent 12.5px); cursor: pointer; }
.plan input::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .3s var(--ease); }
.plan input:checked::after { transform: scale(1); }
.plan__n { font: 400 clamp(1.7rem, 2.4vw, 2.3rem)/1.1 var(--display); }
.plan__p { font-weight: 600; align-self: center; white-space: nowrap; }
.plan__d { grid-column: 2 / 4; color: var(--t2); max-width: 34rem; text-align: justify; text-align-last: left; }
.club__prox { margin-bottom: 1.6rem; max-width: 38rem; }
.club__lam { grid-column: 8 / 13; position: relative; aspect-ratio: 1122 / 1402; padding: clamp(10px, 1.1vw, 16px); background: #f2ede5; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 40px 70px -40px rgb(20 12 8 / .55); }
.club__lam img { position: absolute; inset: clamp(10px, 1.1vw, 16px); width: calc(100% - 2 * clamp(10px, 1.1vw, 16px)); height: calc(100% - 2 * clamp(10px, 1.1vw, 16px)); object-fit: contain; transition: opacity .6s var(--ease), transform .8s var(--ease); }

/* ---------- La finca ---------- */
.finca { padding: 0 0 clamp(96px, 14vh, 160px); }
.finca__ancha { aspect-ratio: 2200 / 1228; overflow: hidden; }
.finca__ancha img { width: 100%; height: 100%; object-fit: cover; }
.finca__g { padding: clamp(64px, 10vh, 120px) var(--gut) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.finca__g .titulo { grid-column: 1 / 9; margin-bottom: 2.4rem; }
.finca__cols { grid-column: 4 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--t2); }
.familia { padding: clamp(64px, 10vh, 120px) var(--gut) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: end; }
.familia__intro { color: var(--t2); align-self: start; }
.persona__f { aspect-ratio: 1772 / 2200; overflow: hidden; background: var(--piedra-2); }
.persona__f img { width: 100%; height: 100%; object-fit: cover; }
.persona figcaption { margin-top: .8rem; font-size: .98rem; color: var(--t2); }
.persona b { display: block; font: 400 1.5rem/1.15 var(--display); color: var(--t); }

/* ---------- Visitas ---------- */
.visitas { padding: clamp(96px, 16vh, 180px) var(--gut); }
.visitas__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.visitas__txt { grid-column: 1 / 6; }
.visitas__txt .titulo { margin-bottom: 1.4rem; }
.visitas__txt p { color: var(--t2); }
.visitas__fig { margin-top: 2.4rem; aspect-ratio: 2200 / 1476; overflow: hidden; }
.visitas__fig img { width: 100%; height: 100%; object-fit: cover; }
.visitas__res { grid-column: 7 / 13; }
.exps { display: grid; margin-bottom: 2.4rem; }
.exp { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.2rem 0 1.2rem 1.4rem; background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); position: relative; color: inherit; }
.exps li:last-child .exp { border-bottom: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.exp::before { content: ''; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 3px; background: currentColor; transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.exp[aria-pressed="true"]::before { transform: scaleY(1); }
.exp__h { font: 400 clamp(1.6rem, 2.2vw, 2.1rem)/1.1 var(--display); }
.exp__p { font-weight: 600; align-self: center; }
.exp__d { grid-column: 1 / -1; color: var(--t2); max-width: 34rem; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label, .paso__l, .marcas legend { font-weight: 600; font-size: .95rem; }
.field > label { padding: 10px 0; margin: -10px 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 2px;
  background: color-mix(in srgb, var(--t) 7%, transparent); border: 1.5px solid color-mix(in srgb, var(--t) 40%, transparent);
  color: var(--t);
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field select option { color: #1e1915; background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--t); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: currentColor; border-width: 2px; }
.field input[type="date"] { color-scheme: light; }
[data-mundo="visitas"] .field input[type="date"], [data-mundo="club"] .field input[type="date"] { color-scheme: dark; }
.err { min-height: 0; font-size: .92rem; font-weight: 600; }
.err:empty { display: none; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.paso { display: grid; gap: .4rem; }
.paso__c { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border: 1.5px solid color-mix(in srgb, var(--t) 40%, transparent); border-radius: 2px; }
.paso__c button { width: 50px; height: 48px; background: none; border: 0; font-size: 1.3rem; color: inherit; }
.paso__c output { font-weight: 600; font-variant-numeric: tabular-nums; }
.form__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .6rem; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.form__total strong { font: 400 2rem/1 var(--display); }
.form__nota { font-size: .95rem; color: var(--t2); }
.marcas { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.marcas legend { margin-bottom: .5rem; padding: 0; }
.marcas label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.marcas input, .cesta__chk input { appearance: none; -webkit-appearance: none; width: 44px !important; height: 44px !important; min-height: 0 !important; margin: -12px -6px -12px -12px; padding: 0 !important; border: 0 !important; background: none !important; display: grid; place-items: center; cursor: pointer; }
.marcas input::after, .cesta__chk input::after { content: ''; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 3px; transition: box-shadow .25s var(--ease), background-color .25s; }
.marcas input:checked::after, .cesta__chk input:checked::after { background: currentColor; box-shadow: inset 0 0 0 3.5px var(--f, #f3eee6); }
.marcas input:focus-visible::after, .cesta__chk input:focus-visible::after { outline: 2px solid currentColor; outline-offset: 3px; }
.hecho { padding: 2rem 0; display: grid; gap: 1rem; justify-items: start; }
.hecho:focus { outline: none; }
.hecho__s { width: 44px; height: 44px; fill: currentColor; }
.hecho h3 { font: 400 2.2rem/1.05 var(--display); }

/* ---------- Profesionales ---------- */
.pro { padding: clamp(96px, 16vh, 180px) var(--gut); }
.pro__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.pro__fig { grid-column: 1 / 7; aspect-ratio: 2200 / 1476; overflow: hidden; position: sticky; top: calc(var(--cab-h) + 24px); }
.pro__fig img { width: 100%; height: 100%; object-fit: cover; }
.pro__txt { grid-column: 8 / 13; }
.pro__txt .titulo { margin-bottom: 1.4rem; }
.pro__txt > p { color: var(--t2); margin-bottom: 2rem; }

/* ---------- Envíos ---------- */
.envios { padding: 0 var(--gut) clamp(96px, 16vh, 180px); }
.envios__g { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); padding-top: clamp(56px, 8vh, 96px); }
.envios__g > div:first-child { grid-column: 1 / 6; padding-right: 2rem; }
.envios__g > div:first-child .titulo { margin-bottom: 1.2rem; }
.envios__g > div:first-child p { color: var(--t2); }
.dudas { grid-column: 7 / 13; }
.dudas details { border-bottom: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.dudas details:first-child { border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.dudas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font: 400 clamp(1.35rem, 1.9vw, 1.75rem)/1.2 var(--display); }
.dudas summary::-webkit-details-marker { display: none; }
.dudas summary::after { content: '+'; font: 400 1.6rem/1 var(--texto); transition: transform .35s var(--ease); }
.dudas details[open] summary::after { transform: rotate(45deg); }
.dudas details p { padding: 0 0 1.4rem; color: var(--t2); max-width: 44rem; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #efe7da; padding: clamp(64px, 10vh, 112px) var(--gut) 28px; --t: #efe7da; --f: #1e1915; }
.pie__g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pie__s { width: 64px; height: 64px; fill: currentColor; color: inherit; }
.pie__lema { margin-top: 1rem; font: 400 1.8rem/1.15 var(--display); max-width: 14ch; }
.pie__col { display: grid; align-content: start; gap: .35rem; }
.pie__col h2 { font: 600 1rem/1.3 var(--texto); margin-bottom: .5rem; color: #c9bdab; }
.pie__col a { text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.pie__col { gap: 0 !important; }
.pie__col a:hover { text-decoration: underline; text-underline-offset: .25em; }
.pie__resp { margin-top: clamp(48px, 8vh, 88px); max-width: 52rem; color: #c9bdab; font-size: .95rem; }
.pie__fila { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #4a4038; display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: #c9bdab; }
.pie__fila a { color: #efe7da; }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: var(--t); background: var(--f); }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgb(20 15 12 / .55); overflow: hidden; overscroll-behavior: contain; }
.cerrar { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1.5px solid currentColor; border-radius: 50%; color: inherit; }
.cerrar svg { width: 22px; height: 22px; }

/* Ficha de producto */
.ficha { width: 100vw; height: 100dvh; margin: 0; inset: 0; transition: background-color .5s var(--ease), color .5s var(--ease); }
.ficha[open] { animation: subeFicha .7s var(--ease); }
@keyframes subeFicha { from { opacity: 0; transform: translateY(40px); } }
.ficha__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'gal top' 'gal txt'; min-height: 100%; }
.ficha__gal { grid-area: gal; }
.ficha__txt { grid-area: txt; }
.ficha__gal { position: sticky; top: 0; height: 100dvh; padding: var(--gut); display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.ficha__vista { position: relative; min-height: 0; }
.ficha__vista img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; box-sizing: border-box; padding: clamp(10px, 1.1vw, 16px); background: #f2ede5; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 40px 70px -40px rgb(20 12 8 / .55); }
.ficha__n:focus { outline: none; }
.ficha__vista img.cambia { animation: cambia .5s var(--ease); }
@keyframes cambia { from { opacity: 0; transform: scale(.985); } }
.ficha__minis { display: flex; gap: 12px; justify-content: center; }
.ficha__minis button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1.5px solid transparent; background: var(--piedra-2); overflow: hidden; opacity: .7; transition: opacity .3s; }
.ficha__minis button[aria-pressed="true"] { border-color: currentColor; opacity: 1; }
.ficha__minis img { width: 100%; height: 100%; object-fit: cover; }
.ficha__minis button:first-child img { object-fit: contain; }
.ficha__txt { padding: 0 var(--gut) var(--gut) 0; max-width: 40rem; }
.ficha__top { grid-area: top; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--gut) + 8px) var(--gut) 2.4rem 0; max-width: 40rem; }
.ficha__cat { font-weight: 600; }
.ficha__n { font: 400 clamp(2.8rem, 5vw, 5.2rem)/.98 var(--display); letter-spacing: -.02em; margin-bottom: .8rem; }
.ficha__sub { font-weight: 600; margin-bottom: 1.6rem; }
.ficha__compra { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding: 1.4rem 0; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.ficha__p { font: 400 2.6rem/1 var(--display); margin-right: auto; }
.ficha__q { display: flex; align-items: center; border: 1.5px solid currentColor; border-radius: 2px; min-height: 52px; }
.ficha__q button { width: 46px; height: 50px; background: none; border: 0; color: inherit; font-size: 1.3rem; }
.ficha__q output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ficha__ok { width: 100%; font-weight: 600; }
.ficha__ok:empty { display: none; }
.ficha__h { font: 400 1.6rem/1.15 var(--display); margin: 2.2rem 0 .7rem; }
.ficha__txt > p { color: var(--t2); }
.ficha__dl { margin-top: 2.2rem; display: grid; grid-template-columns: auto 1fr; gap: 0 1.6rem; }
.ficha__dl dt, .ficha__dl dd { padding: .7rem 0; border-top: 1px solid color-mix(in srgb, var(--t) 24%, transparent); }
.ficha__dl dt { font-weight: 600; }
.ficha__dl dd { color: var(--t2); }
.ficha__legal { margin-top: 1.8rem; font-size: .95rem; }
.ficha__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.ficha__nav button { background: none; border: 0; padding: .4rem 0; color: inherit; text-align: left; display: grid; gap: .2rem; }
.ficha__nav button:last-child { text-align: right; }
.ficha__nav small { font-size: .9rem; color: var(--t2); }
.ficha__nav b { font: 400 1.5rem/1.1 var(--display); }

/* Cesta */
.cesta { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; display: none; grid-template-rows: auto 1fr auto; --f: #f3eee6; --t: #1e1915; --t2: #51473e; }
.cesta[open] { display: grid; animation: entraCesta .55s var(--ease); }
@keyframes entraCesta { from { transform: translateX(60px); opacity: 0; } }
.cesta__cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #d6cdbf; }
.cesta__t { font: 400 2rem/1 var(--display); }
.cesta__cuerpo { overflow-y: auto; padding: 8px 24px; }
.cesta__pie { padding: 18px 24px 24px; border-top: 1px solid #d6cdbf; display: grid; gap: .55rem; }
.linea { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e0d8cc; align-items: start; }
.linea__f { aspect-ratio: 4 / 5; background: var(--piedra); }
.linea__f img { width: 100%; height: 100%; object-fit: contain; }
.linea__n { font-weight: 600; line-height: 1.3; }
.linea__s { font-size: .9rem; color: var(--t2); margin-top: .15rem; }
.linea__q { display: inline-flex; align-items: center; margin-top: .6rem; border: 1px solid #b9ad9c; border-radius: 2px; }
.linea__q button { width: 36px; height: 36px; background: none; border: 0; color: inherit; font-size: 1.1rem; }
.linea__q span { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.linea__r { display: grid; justify-items: end; gap: .4rem; }
.linea__p { font-weight: 600; font-variant-numeric: tabular-nums; }
.linea__x { background: none; border: 0; padding: .3rem 0; font-size: .9rem; text-decoration: underline; color: var(--t2); min-height: 32px; }
.suma { display: flex; justify-content: space-between; text-align: left !important; font-variant-numeric: tabular-nums; }
.suma--t { font-weight: 700; font-size: 1.15rem; padding-top: .4rem; }
.gratis { height: 3px; background: #ddd4c6; overflow: hidden; }
.gratis span { display: block; height: 100%; background: var(--tinta); transform-origin: left; transition: transform .6s var(--ease); }
.gratis__t { font-size: .92rem; color: var(--t2); text-align: left !important; }
.cesta__legal { font-size: .88rem; color: var(--t2); text-align: left !important; }
.cesta__vacia, .cesta__hecho { padding: 2.4rem 0; display: grid; gap: 1rem; justify-items: start; }
.cesta__vacia h3, .cesta__hecho h3 { font: 400 2rem/1.05 var(--display); }
.cesta__hecho:focus { outline: none; }
.cesta__f { display: grid; gap: .9rem; margin-top: .4rem; }
.cesta__f .field input { min-height: 46px; }
.cesta__chk { display: flex !important; align-items: center; gap: .6rem; font-weight: 500 !important; min-height: 44px; }


/* Menú */
.menu { width: 100vw; height: 100dvh; margin: 0; --f: var(--piedra); --t: var(--tinta); padding: 0 var(--gut) 32px; }
.menu[open] { display: flex; flex-direction: column; animation: subeFicha .5s var(--ease); }
.menu__cab { height: var(--cab-h); display: flex; justify-content: space-between; align-items: center; }
.menu__nav { display: grid; margin-top: 4vh; }
.menu__nav a { font: 400 clamp(2.2rem, 9vw, 3.4rem)/1.12 var(--display); text-decoration: none; padding: .2rem 0; color: var(--c, var(--tinta)); }
.menu__pie { margin-top: auto; color: var(--tinta-2); }

/* Mayoría de edad */
.edad { width: min(520px, calc(100vw - 32px)); --f: var(--piedra); --t: var(--tinta); --t2: #51473e; }
.edad[open] { animation: subeFicha .5s var(--ease); }
.edad__in { padding: 40px 36px 32px; display: grid; gap: 1rem; justify-items: start; }
.edad__s { width: 48px; height: 48px; fill: currentColor; }
.edad__t { font: 400 2.4rem/1.05 var(--display); }
.edad__in p { color: var(--t2); text-align: justify; text-align-last: left; }
.edad__b { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.edad__nota { font-size: .92rem; }

/* Aviso */
.aviso { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 140%); padding: .9rem 1.3rem; background: var(--tinta); color: var(--crema); border-radius: 2px; font-weight: 500; opacity: 0; transition: transform .5s var(--ease), opacity .5s; pointer-events: none; max-width: calc(100vw - 32px); }
.aviso.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animación de entrada (solo con GSAP y sin movimiento reducido) ---------- */
.js .portada__h .ln > span { transform: translateY(105%); }


/* ---------- Tableta y móvil ---------- */
@media (max-width: 999px) {
  :root { --cab-h: 60px; }
  .cab__nav { display: none; }
  .cab__r { margin-left: auto; }
  .menub { display: inline-flex; }
  .marca__t { font-size: 1.45rem; }
  .portada__txt, .pausa__g, .semana__g, .club__g, .finca__g, .visitas__g, .pro__g, .envios__g { grid-template-columns: 1fr; }
  .portada__h, .portada__lado, .pausa__txt, .pausa__fig, .semana__lam, .semana__txt, .club__txt, .club__lam, .finca__g .titulo, .finca__cols, .visitas__txt, .visitas__res, .pro__fig, .pro__txt, .envios__g > div:first-child, .dudas { grid-column: 1; }
  .portada__lado { margin-top: 1.4rem; }
  .portada__fig { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }
  .portada__fila { padding: 0 var(--gut); }
  .pausa__fig { margin-top: 2.4rem; width: 78%; }
  .escena { display: flex; flex-direction: column; align-items: stretch; padding: calc(var(--cab-h) + 40px) var(--gut) 72px; min-height: 0; }
  .escena__voz { position: relative; top: auto; margin: 0 calc(var(--gut) * -1); font-size: min(25vw, calc(178vw / var(--n, 6))); }
  .escena__lam { align-self: center; height: auto; width: min(76vw, 420px); margin-top: -12vw; }
  .escena__info { margin-top: 2rem; max-width: none; }
  .escena__compra { justify-self: stretch; justify-items: start; margin-top: 1.6rem; grid-template-columns: auto auto; align-items: center; column-gap: 1.4rem; }
  .escena__p { grid-column: 1 / -1; }
  .semana__lam, .club__lam { width: min(80vw, 440px); justify-self: center; margin-bottom: 2.4rem; }
  .club__lam { order: -1; }
  .finca__cols { grid-template-columns: 1fr; gap: 1rem; }
  .familia { grid-template-columns: 1fr 1fr; }
  .familia__intro { grid-column: 1 / -1; }
  .visitas__res { margin-top: 3rem; }
  .pro__fig { position: static; margin-bottom: 2.4rem; }
  .dudas { margin-top: 2rem; }
  .pie__g { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
  .ficha__in { grid-template-columns: 1fr; grid-template-areas: 'top' 'gal' 'txt'; grid-template-rows: auto; }
  .ficha__gal { position: relative; height: auto; padding-bottom: 0; }
  .ficha__gal { padding-top: 4px; }
  .ficha__vista { height: 58vh; }
  .ficha__txt { padding: 24px var(--gut) 40px; }
  .ficha__top { position: sticky; top: 0; height: 72px; padding: 12px var(--gut) 0; max-width: none; margin: 0; z-index: 3; background: var(--f); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .titulo { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .portada__h { font-size: min(3.4rem, calc((100vw - 2 * var(--gut)) / 8.7)); }
  .opciones--dias { grid-template-columns: 1fr; }
  .opciones--dias .opcion:nth-last-child(2) { border-bottom: 0; }
  .fila2 { grid-template-columns: 1fr; }
  .familia { gap: 16px; }
  .persona b { font-size: 1.25rem; }
  .plan { grid-template-columns: 26px 1fr; }
  .plan__p { grid-column: 2; grid-row: 2; }
  .plan__d { grid-column: 2; }
  .edad__in { padding: 32px 24px 24px; }
  .cestab { padding: 0 .8rem; }
  .menub { padding: 0 .8rem; }
  .cab { gap: 1rem; }
  .pie__fila { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.portada::before { display: none; }
main [data-mundo]:not(.escena)::before { height: min(14vh, 130px); }

/* ---------- Ronda móvil ---------- */
.carril { display: none; }
.cab { padding-top: env(safe-area-inset-top); height: calc(var(--cab-h) + env(safe-area-inset-top)); }
.carril__p:active .carril__f, .boton:active, .cestab:active, .menub:active { transform: scale(.97); }
.opcion:active input, .plan:active input { transform: scale(.9); }
@media (max-width: 999px) {
  .portada { padding-bottom: 40px; }
  .portada__fila { display: none; }
  .carril { display: flex; gap: 12px; margin: 22px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .carril::-webkit-scrollbar { display: none; }
  .carril li { flex: 0 0 40%; max-width: 190px; scroll-snap-align: start; }
  .carril__p { display: grid; gap: 2px; text-decoration: none; color: var(--tinta); -webkit-tap-highlight-color: transparent; }
  .carril__f { display: block; aspect-ratio: 4 / 5; padding: 12px; background: var(--c); margin-bottom: 8px; transition: transform .25s var(--ease); }
  .carril__f img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 10px 22px -12px rgb(20 12 8 / .6); }
  .carril__n { font-weight: 600; font-size: 1rem; line-height: 1.25; }
  .carril__pr { font-size: .95rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
  .portada__zona { -webkit-tap-highlight-color: transparent; }
  .pausa { padding-top: 64px; padding-bottom: 72px; }
  .pausa__fig { margin-top: 2rem; }
  /* Pantalla de producto: precio y compra al alcance del pulgar */
  .escena { padding-bottom: 0; }
  main .escena > .escena__compra { position: sticky; bottom: 0; z-index: 3; margin: 1.6rem calc(var(--gut) * -1) 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--f); border-top: 1px solid color-mix(in srgb, var(--t) 22%, transparent); display: flex; align-items: center; gap: 10px; justify-items: initial; }
  .escena__p { font-size: 1.75rem; margin-right: auto; white-space: nowrap; }
  .escena__compra .enlace { order: 1; font-size: .95rem; white-space: nowrap; }
  .escena__compra .boton { order: 2; padding: .8rem 1rem; white-space: nowrap; }
  .semana, .club, .visitas, .pro { padding-top: 72px; padding-bottom: 72px; }
  .finca { padding-bottom: 72px; }
  .envios { padding-bottom: 72px; }
  /* Hojas inferiores: cesta, ficha y mayoría de edad */
  .cesta, .ficha, .edad { width: 100vw; max-width: 100vw; margin: auto 0 0; inset: auto 0 0 0; border-radius: 18px 18px 0 0; }
  .cesta { height: 92dvh; }
  .ficha { height: 95dvh; }
  .cesta[open], .ficha[open], .edad[open] { animation: entraHoja .42s var(--ease); }
  @keyframes entraHoja { from { transform: translateY(32%); opacity: 0; } }
  .cesta::before, .ficha::before, .edad::before { content: ''; position: absolute; z-index: 5; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: currentColor; opacity: .28; }
  .cesta__cab { padding-top: 22px; }
  .cesta__pie { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .ficha__compra { position: sticky; bottom: 0; z-index: 2; background: var(--f); margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); flex-wrap: nowrap; gap: 10px; }
  .ficha__compra .boton { flex: 1; white-space: nowrap; padding-inline: .8rem; }
  .ficha__compra:has(.ficha__ok:not(:empty)) { flex-wrap: wrap; }
  .solo-ancho { display: none; }
  .cesta[open] { display: block; overflow-y: auto; }
  .cesta__cab { position: sticky; top: 0; z-index: 2; background: var(--f); }
  .cesta__cuerpo { overflow: visible; }
  .cesta__pie { position: sticky; bottom: 0; background: var(--f); }
  .cesta.es-pago .cesta__pie { position: static; }
  .ficha__p { font-size: 2.1rem; }
  .edad__in { padding: 34px var(--gut) calc(24px + env(safe-area-inset-bottom)); }
  .edad__b { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .menu { padding-top: env(safe-area-inset-top); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .menu__nav a { min-height: 48px; }
}

@media (min-width: 561px) and (max-width: 999px) { .portada__h { font-size: min(4.6rem, calc((100vw - 2 * var(--gut)) / 8.7)); } }
@media (max-width: 380px) { :root { --gut: 16px; } main p, footer p, .ficha p, .plan__d, .edad__in p { text-align: left; } }
