/* =========================================================
   Villa Chef · Landing (borrador 3)
   Paleta del brandbook + acento champán derivado de Lino/Roble.
   Títulos: Playfair Display · Textos y etiquetas: Montserrat (tipografías oficiales).
   ========================================================= */

:root {
  /* Paleta oficial */
  --azul: #0F2E4A;
  --roble: #8B5E3C;
  --lino: #D7C4A8;
  --crema: #F3E9D7;
  --oscuro: #5E3A2C;

  /* Derivados de la paleta */
  --noche: #081B2C;          /* Azul Villa en sombra */
  --azul-700: #1A4166;
  --oscuro-900: #3E2419;
  --champan: #C9A97C;        /* punto medio entre Lino y Roble */
  --taupe: #6B5546;          /* texto secundario sobre crema */
  --linea-papel: rgba(139, 94, 60, .24);
  --linea-noche: rgba(201, 169, 124, .24);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-text: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1320px;
  --focus: var(--roble);
  --m: 1; /* 0 cuando el sistema pide menos movimiento */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--azul);
  font: 300 1.0625rem/1.75 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
strong { font-weight: 600; }

::selection { background: var(--lino); color: var(--azul); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

html { scrollbar-color: var(--lino) var(--azul); scrollbar-width: thin; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--azul); }
::-webkit-scrollbar-thumb { background: var(--lino); border-radius: 9px; border: 2px solid var(--azul); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--crema); color: var(--azul); padding: .7rem 1rem; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* Etiqueta en versalitas */
.label, .hero__services, .note__label, .rail__title span, .course__tag, .chef__role, .foot__h {
  font-family: var(--f-text); font-weight: 500; font-size: .72rem; line-height: 1.3;
  letter-spacing: .3em; text-transform: uppercase;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  padding: 1.1rem 1.9rem;
  border-radius: 2px;
  font: 500 .74rem/1.2 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn .ico { width: 1.45em; height: 1.45em; }
/* Al pasar el mouse aparece un filete interior, como el borde de un plato fino (sin saltos ni sombras) */
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), inset .5s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { opacity: .4; inset: 5px; }
.btn--lg { padding: 1.3rem 2.3rem; font-size: .78rem; }
.btn--block { width: 100%; }
.btn--crema { background: var(--crema); color: var(--azul); }
.btn--crema:hover { background: var(--crema); }
.btn--azul { background: var(--azul); color: var(--crema); }
.btn--azul:hover { background: var(--azul); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: .8rem;
  font: 500 .74rem/1.2 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
  color: var(--crema); padding: .6rem 0;
}
.link-line::after {
  content: ""; width: 58px; height: 1px; background: var(--champan);
  transform: scaleX(.6); transform-origin: left; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  --focus: var(--champan);
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 76px;
  color: var(--crema);
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--linea-noche); transform: scaleX(0); transition: transform 1s var(--ease);
}
.nav__inner {
  height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2.4rem;
}
.nav__brand { width: 138px; flex: none; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.nav__links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav__links a {
  position: relative; padding: .4rem 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(243, 233, 215, .86);
  transition: color .4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--champan);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.nav__links a:hover { color: var(--crema); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links { align-items: center; }
/* Menú principal: Inicio · Categoría · Villa Chef Profesional · Villa Chef Home (en Home: Inicio · Categoría · Regresar) */
.nav__links .nav__icono { display: inline-flex; align-items: center; gap: .55rem; color: var(--champan); }
.nav__icono .ico { width: 1.05rem; height: 1.05rem; margin-top: -.15em; }
.nav__links .nav__icono::after { left: 1.6rem; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; }
.nav__toggle-lines, .nav__toggle-lines::before { display: block; width: 26px; height: 1px; background: currentColor; position: relative; }
.nav__toggle-lines::before { content: ""; position: absolute; top: 7px; width: 18px; right: 0; }
.nav__toggle-lines { transform: translateY(-4px); }

.nav--solid {
  background: rgba(8, 27, 44, .9);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.nav--solid::after { transform: scaleX(1); }
.nav--solid .nav__brand { opacity: 1; transform: none; pointer-events: auto; }

/* Entrada de la navegación tras la apertura */
.js .nav__inner > * { opacity: 0; }
.is-ready .nav__inner > * { animation: drop 1s var(--ease) both; }
.is-ready .nav__inner > :nth-child(2) { animation-delay: 2.2s; }
.is-ready .nav__inner > :nth-child(3) { animation-delay: 2.35s; }
.is-ready .nav__inner > :nth-child(4) { animation-delay: 2.2s; }
.is-ready .nav__inner > :nth-child(1) { animation-delay: 2.2s; }
@keyframes drop { from { transform: translateY(calc(-10px * var(--m))); } to { opacity: 1; transform: none; } }
.is-ready .nav__brand { animation: none !important; opacity: 0; transform: translateY(6px); }
.is-ready .nav--solid .nav__brand { opacity: 1; transform: none; }
/* Páginas sin el logo grande de la portada (Villa Chef Home): el logo del menú se ve siempre */
.nav--marca .nav__brand, .is-ready .nav--marca .nav__brand { opacity: 1; transform: none; pointer-events: auto; }

/* Menú móvil */
.sheet {
  --focus: var(--champan);
  position: fixed; inset: 0; z-index: 60;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #163b5c 0%, var(--noche) 70%);
  color: var(--crema);
  display: flex; flex-direction: column; justify-content: center; gap: 2.6rem;
  padding: 96px var(--gutter) 48px;
}
.sheet[hidden] { display: none; }
.sheet.is-open { animation: sheet-in .8s var(--ease) both; }
@keyframes sheet-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.sheet__close { position: absolute; top: 18px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; }
.sheet__close .ico { width: 26px; height: 26px; }
.sheet__iso { position: absolute; top: 26px; left: var(--gutter); width: 22px; }
.sheet { overflow-y: auto; justify-content: safe center; }
.sheet__links { display: flex; flex-direction: column; gap: .9rem; }
.sheet__links a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .8rem; align-items: baseline; }
.sheet__links span { grid-row: span 2; font: italic 400 1rem var(--f-display); color: var(--champan); }
.sheet__links b { font: 400 clamp(1.9rem, 8.5vw, 2.6rem)/1.15 var(--f-display); }
.sheet__links small { font-size: .82rem; line-height: 1.4; color: rgba(243, 233, 215, .72); }
.sheet__links .sheet__icono span { display: inline-flex; padding-top: .2em; }
.sheet__links .sheet__icono .ico { width: 1.15rem; height: 1.15rem; }
.sheet__links .sheet__icono b { color: var(--champan); }
/* Secciones de la línea, en pequeño, debajo del menú principal */
.sheet__secciones {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(201, 169, 124, .3);
}
.sheet__secciones p { grid-column: 1 / -1; font: 500 .72rem/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--champan); }
.sheet__secciones a { display: flex; align-items: baseline; gap: .6rem; font-size: .95rem; color: rgba(243, 233, 215, .86); }
.sheet__secciones span { font: italic 400 .9rem/1 var(--f-display); color: var(--champan); }

/* =========================================================
   GUÍA LATERAL (aparece al bajar)
   ========================================================= */
.guia {
  --focus: var(--champan);
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; z-index: 45;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .6rem;
  pointer-events: none;
}
.guia::before {
  content: ""; position: absolute; right: 13.5px; top: 14px; bottom: 14px; width: 1px;
  background: rgba(215, 196, 168, .4);
  transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease);
}
.guia.is-visible { pointer-events: auto; }
.guia.is-visible::before { transform: scaleY(1); }
.guia__item {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  opacity: 0; transform: translateX(18px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--k, 0) * 70ms);
}
.guia.is-visible .guia__item { opacity: 1; transform: none; }
.guia__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font: italic 400 .76rem/1 var(--f-display); color: var(--lino);
  background: var(--azul);
  box-shadow: 0 0 0 1px rgba(215, 196, 168, .45);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.guia__item:hover .guia__num { color: var(--crema); box-shadow: 0 0 0 1px var(--lino); }
.guia__item.is-active .guia__num { background: var(--lino); color: var(--azul); box-shadow: 0 0 0 1px var(--lino), 0 0 0 4px var(--azul), 0 0 0 5px rgba(215, 196, 168, .55); }
.guia__card {
  position: absolute; right: calc(100% + 14px); top: 50%;
  display: grid; gap: .2rem;
  min-width: 15.5rem; padding: .8rem 1.05rem .85rem;
  background: var(--noche); color: var(--crema);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(201, 169, 124, .3), 0 24px 40px -22px rgba(0, 0, 0, .85);
  opacity: 0; transform: translate(10px, -50%); pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.guia__card b { font: 400 1.15rem/1.15 var(--f-display); }
.guia__card small { font-size: .8rem; line-height: 1.4; color: rgba(243, 233, 215, .78); }
.guia__item:hover .guia__card, .guia__item:focus-visible .guia__card { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1100px) { .guia { display: none; } }
.sheet .btn { align-self: flex-start; }

/* =========================================================
   APERTURA
   ========================================================= */
.hero {
  --p: 0;
  --focus: var(--champan);
  position: relative;
  height: 210svh;
  background: var(--noche);
  color: var(--crema);
}
.hero__stage {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 76px 0 clamp(14px, 3svh, 30px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 42% at 50% -4%, rgba(201, 169, 124, .26) 0%, rgba(201, 169, 124, 0) 70%),
    radial-gradient(ellipse 80% 70% at 50% 42%, #1A4570 0%, #12395C 26%, var(--azul) 50%, var(--noche) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/textura-lino.jpg") center / 560px;
  mix-blend-mode: soft-light; opacity: .45;
}
.hero__vapor {
  position: absolute; z-index: -1;
  left: 50%; top: -4%;
  height: 74%; width: auto;
  opacity: .07;
  transform: translateX(-50%);
  animation: vapor-drift 16s ease-in-out infinite;
}
@keyframes vapor-drift {
  0%, 100% { transform: translate3d(-50%, 0, 0) skewX(0deg); }
  50% { transform: translate3d(calc(-50% - 16px), -28px, 0) skewX(-3deg); }
}

.hero__brand {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 1 0 auto;
  padding: clamp(8px, 2svh, 24px) var(--gutter) 0;
  transform: translate3d(0, calc(var(--p) * -70px * var(--m)), 0) scale(calc(1 - var(--p) * .1 * var(--m)));
  opacity: calc(1 - var(--p) * 1.6);
  will-change: transform, opacity;
}
/* Todo el bloque se ajusta también a la ALTURA de la pantalla para que nada se monte */
.hero__logo { --logo-w: clamp(220px, min(74vw, 76svh), 600px); position: relative; width: var(--logo-w); }
.hero__logo img { width: 100%; }
/* Descriptor del logo como texto: mismo tamaño, espaciado y posición que el original del kit */
.hero__descriptor {
  position: absolute; left: 0; top: 84.45%; width: 82.96%;
  display: flex; flex-direction: column; align-items: center;
  font: 500 calc(var(--logo-w) * .02563)/1.615 var(--f-text);
  letter-spacing: .35em; padding-left: .35em;
  text-transform: uppercase; color: var(--crema); white-space: nowrap;
}
.hero__phrase {
  margin-top: clamp(1rem, 3.6svh, 3rem);
  font: 400 clamp(1.25rem, min(2.6vw, 4.4svh), 2.35rem)/1.3 var(--f-display);
  letter-spacing: .005em;
  color: var(--crema);
  text-wrap: balance;
}
.hero__phrase em { color: var(--champan); white-space: nowrap; }
.hero__services { text-wrap: balance; }
.hero__rule { display: block; width: 72px; height: 1px; margin: clamp(.9rem, 3svh, 2.4rem) auto clamp(.8rem, 1.9svh, 1.3rem); background: var(--champan); }
.hero__services { color: var(--lino); }
.hero__services i { font-style: normal; color: var(--champan); margin-inline: .5em; }
/* El espacio libre se reparte: la mitad arriba del logo (queda donde estaba) y la mitad alrededor
   del botón, que así queda siempre centrado entre las categorías y "en Quito, Ecuador" */
.hero__brand::before { content: ""; flex: 1 1 0; }
.hero__actions { flex: 1 1 auto; margin-top: calc(clamp(1.6rem, 6svh, 3.6rem) - 12px); display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 1.2rem 2.2rem; }

/* "Descubre tu mesa": va en el flujo, siempre separado del botón */
.hero__cue {
  position: relative; z-index: 1; flex: none;
  margin-top: clamp(1.6rem, 6svh, 3.6rem);
  display: flex; flex-direction: column; align-items: center; gap: clamp(.5rem, 1.4svh, .8rem);
  padding: .4rem .6rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--crema);
  white-space: nowrap;
  opacity: calc(1 - var(--p) * 4);
  transition: color .4s var(--ease);
}
.hero__cue:hover { color: var(--champan); }
/* Al pie de la portada, en lugar de "Descubra su mesa": la ciudad en cursiva champán (la misma voz de "su mesa?") */
.hero__cue .hero__lugar { font: italic 400 clamp(1.1rem, min(1.7vw, 2.7svh), 1.45rem)/1.3 var(--f-display); letter-spacing: .01em; text-transform: none; color: var(--champan); transition: color .4s var(--ease); }
.hero__cue:hover .hero__lugar { color: var(--lino); }
.hero__cue i { position: relative; width: 1px; height: clamp(26px, 5.5svh, 54px); background: rgba(201, 169, 124, .3); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--champan); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* La mesa se descubre al bajar, como al levantar una campana */
.hero__reveal {
  position: absolute; inset: 0; z-index: 2;
  clip-path: circle(calc(var(--p) * 96vmax) at 50% 64%);
  pointer-events: none;
}
.hero__reveal img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1 + (1 - var(--p)) * .18 * var(--m)));
}
.hero__reveal::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(8, 27, 44, .25) 0%, rgba(8, 27, 44, .72) 100%);
}
.hero__reveal-copy {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; text-align: center; padding: var(--gutter);
  opacity: calc((var(--p) - .55) * 3);
}
.hero__reveal-copy p {
  font: 400 clamp(2.5rem, 6vw, 5.6rem)/1.04 var(--f-display);
  letter-spacing: -.015em; color: var(--crema);
  transform: translateY(calc((1 - var(--p)) * 40px * var(--m)));
  text-shadow: 0 2px 30px rgba(8, 27, 44, .5);
}
.hero__reveal-copy em { color: var(--champan); }

/* Secuencia de apertura */
.js .hero__logo,
.js .hero__rule,
.js .hero__services,
.js .hero__actions,
.js .hero__cue span, .js .hero__cue i { opacity: 0; }
.js .hero__vapor { opacity: 0; }
.js .hero__bg { opacity: 0; }

.is-ready .hero__bg { animation: fade 1.6s var(--ease) both; }
.is-ready .hero__vapor { animation: vapor-in 2.4s var(--ease) .6s both, vapor-drift 16s ease-in-out 3s infinite; }
@keyframes vapor-in { from { opacity: 0; } to { opacity: .07; } }
.is-ready .hero__logo { animation: logo-in 2s var(--ease) .25s both; }
@keyframes logo-in {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(calc(8px * var(--m))); transform: translateY(calc(10px * var(--m))); }
  35% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); transform: none; }
}
.is-ready .hero__rule { animation: rule-in 1.4s var(--ease) 1.55s both; }
@keyframes rule-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.is-ready .hero__services { animation: up 1.2s var(--ease) 1.75s both; }
.is-ready .hero__actions { animation: up 1.2s var(--ease) 1.95s both; }
.is-ready .hero__cue span, .is-ready .hero__cue i { animation: fade 1.2s var(--ease) 2.5s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(calc(18px * var(--m))); } to { opacity: 1; transform: none; } }

/* Palabras de la frase */
/* El margen lateral deja ver lo que sobresale de las cursivas (p. ej. "?") sin mover el texto */
.w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .16em .12em; margin: 0 -.16em -.12em; }
.w__i { display: inline-block; }
.js .hero__phrase .w__i { opacity: 0; transform: translateY(calc(.7em * var(--m))); filter: blur(calc(6px * var(--m))); }
.is-ready .hero__phrase .w__i { animation: word 1.1s var(--ease) both; animation-delay: calc(1.45s + var(--i, 0) * 95ms); }
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }

/* =========================================================
   SECCIONES: sistema editorial del brandbook
   ========================================================= */
.sec { position: relative; padding-block: clamp(100px, 12vw, 190px); }
.sec > * { position: relative; }
.sec--paper { background: var(--crema); color: var(--azul); }
.sec--paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 520px;
  mix-blend-mode: multiply; opacity: .2;
}

.sec-head {
  display: grid;
  grid-template-columns: clamp(96px, 13vw, 210px) minmax(0, 1fr);
  gap: 0 clamp(20px, 3vw, 48px);
  align-items: start;
}
.sec-head--stack { grid-template-columns: 1fr; }
.sec-num {
  font: 400 clamp(4.2rem, 9.4vw, 8.6rem)/.8 var(--f-display);
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
  color: var(--roble);
  padding-top: .06em;
}
.sec-title {
  font: 400 clamp(2.4rem, 5vw, 4.7rem)/1.06 var(--f-display);
  letter-spacing: -.015em;
  text-wrap: balance;
  max-width: 17ch;
}
.sec-title em { color: var(--roble); }
.sec-intro {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  max-width: 32rem; /* misma medida que el título en todas las secciones */
  font-size: clamp(1.05rem, 1.35vw, 1.28rem); line-height: 1.75;
  color: var(--taupe);
}

/* Revelados al hacer scroll */
.js [data-reveal]:not([data-reveal="mask"]) {
  opacity: 0; transform: translateY(calc(28px * var(--m)));
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in:not([data-reveal="mask"]) { opacity: 1; transform: none; }
.js [data-reveal="mask"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js [data-reveal="mask"] > img { transform: scale(calc(1 + .16 * var(--m))); transition: transform 2s var(--ease); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-in > img { transform: none; }

.js [data-split] .w__i { opacity: var(--m); transform: translateY(calc(108% * var(--m))); transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-in .w__i { opacity: 1; transform: none; }

.js .sec-num { opacity: 0; transform: translateY(calc(20px * var(--m))); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.js .sec-head.is-in .sec-num { opacity: 1; transform: none; }

/* =========================================================
   01 · TU COCINA
   ========================================================= */
.cocina { --focus: var(--roble); }
.cocina__grid {
  margin-top: clamp(60px, 7vw, 110px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 120px); align-items: center;
}

.index { border: 0; margin: 0; padding: 0; min-width: 0; }
.index__item {
  position: relative;
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: baseline;
  padding: 1.15rem .2rem;
  border-top: 1px solid var(--linea-papel);
  cursor: pointer;
}
.index__item:last-child { border-bottom: 1px solid var(--linea-papel); }
.index__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.index__num { font: italic 400 1.05rem/1 var(--f-display); color: var(--roble); transition: color .5s var(--ease); }
.index__name {
  white-space: nowrap;
  font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.15 var(--f-display);
  color: rgba(15, 46, 74, .8);
  transition: color .6s var(--ease), transform .8s var(--ease);
}
/* La etiqueta solo ocupa espacio en la opción elegida: así ningún nombre se parte en dos líneas */
.index__hint {
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe);
  white-space: nowrap; max-width: 0; overflow: hidden;
  opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.index__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--roble);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.index__item:hover .index__name { color: var(--azul); }
.index__item input:checked ~ .index__name { color: var(--roble); font-style: italic; transform: translateX(10px); }
.index__item input:checked ~ .index__num { color: var(--azul); }
.index__item input:checked ~ .index__hint { opacity: 1; transform: none; max-width: 16rem; }
.index__item:has(input:checked)::after { transform: scaleX(1); }
.index__item input:focus-visible ~ .index__name { outline: 1px solid var(--roble); outline-offset: 6px; }

.showcase { position: relative; }
.showcase__frame { position: relative; aspect-ratio: 4 / 5; margin-left: clamp(0px, 8vw, 120px); }
.showcase__frame::before {
  content: ""; position: absolute; inset: -16px; z-index: 0; pointer-events: none;
  border: 1px solid var(--linea-papel);
}
.showcase__frame > img, .showcase__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.showcase__img--top { opacity: 0; clip-path: circle(0% at 50% 100%); }
.showcase__img--top.is-revealing { opacity: 1; animation: cloche 1.2s var(--ease) both; }
@keyframes cloche {
  from { clip-path: circle(0% at 50% 100%); transform: scale(calc(1 + .08 * var(--m))); }
  to { clip-path: circle(150% at 50% 100%); transform: scale(1); }
}

/* Nota del chef: la foto se ve completa y en su esquina queda la pestaña "Nota del chef".
   Al tocarla, la nota se abre SOBRE la foto con un círculo que nace en la pestaña:
   el mismo gesto de campana que descubre la mesa de la portada y el olivo. */
.nota-tab {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem .9rem 1.25rem;
  background: var(--azul); color: var(--champan);
  font: 500 .72rem/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase;
  box-shadow: 0 18px 36px -22px rgba(8, 27, 44, .9);
  cursor: pointer;
  transition: opacity .45s var(--ease), padding .5s var(--ease);
}
.nota-tab img { width: 12px; height: auto; }
.nota-tab i {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(201, 169, 124, .55);
  transition: transform .6s var(--ease), background-color .4s var(--ease);
}
.nota-tab i::before, .nota-tab i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px;
  background: currentColor; transform: translate(-50%, -50%);
}
.nota-tab i::after { transform: translate(-50%, -50%) rotate(90deg); }
.nota-tab:hover, .nota-tab:focus-visible { padding-left: 1.5rem; }
.nota-tab:hover i, .nota-tab:focus-visible i { transform: rotate(90deg); background: rgba(201, 169, 124, .18); }
.showcase__frame.is-nota .nota-tab { opacity: 0; pointer-events: none; }

.note {
  --focus: var(--champan);
  --origen: 2.4rem calc(100% - 1.6rem);
  /* Solo ocupa lo que mide su contenido, apoyada en la parte de abajo de la foto */
  position: absolute; inset: auto 0 0; max-height: 100%; z-index: 3;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 2.8vw, 2.4rem) clamp(1.6rem, 3vw, 2.6rem);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--azul);
  background: color-mix(in srgb, var(--azul) 95%, transparent);
  color: var(--crema);
  clip-path: circle(0% at var(--origen));
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.showcase__frame.is-nota .note {
  clip-path: circle(150% at var(--origen)); visibility: visible;
  transition: clip-path .9s var(--ease), visibility 0s;
}
.showcase__frame.is-nota .note > * { animation: note-in .8s var(--ease) both; }
.showcase__frame.is-nota .note > :nth-child(3) { animation-delay: .18s; }
.showcase__frame.is-nota .note > :nth-child(4) { animation-delay: .26s; }
.showcase__frame.is-nota .note > :nth-child(5) { animation-delay: .32s; }
.showcase__frame.is-nota .note > :nth-child(n+6) { animation-delay: .38s; }
.note__cerrar {
  position: absolute; top: 1rem; right: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 169, 124, .45); color: var(--crema);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .6s var(--ease);
}
.note__cerrar .ico { width: 1rem; height: 1rem; }
.note__cerrar:hover, .note__cerrar:focus-visible { background: var(--crema); color: var(--azul); transform: rotate(90deg); }
.note.is-swapping > * { animation: note-in .7s var(--ease) both; }
.note.is-swapping > :nth-child(4) { animation-delay: .06s; }
@keyframes note-in { from { opacity: 0; transform: translateY(calc(8px * var(--m))); } to { opacity: 1; transform: none; } }
.note__label { display: flex; align-items: center; gap: .7rem; color: var(--champan); }
.note__label img { width: 13px; }
.note__quote { margin-top: 1rem; max-width: 26rem; font: italic 400 clamp(1.15rem, 1.6vw, 1.42rem)/1.45 var(--f-display); text-wrap: pretty; }
/* Línea que recomienda el chef: lleva directo a esa línea en el catálogo */
.note__linea {
  margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--champan);
}
.note__linea a {
  font: italic 400 1.02rem/1.3 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--crema);
  text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(201, 169, 124, .6); transition: color .3s;
}
.note__linea a:hover { color: var(--champan); }
.note__kit { margin: 1.2rem 0 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--linea-noche); display: grid; gap: .45rem; }
.note__kit li { position: relative; padding-left: 1.9rem; font-size: .88rem; line-height: 1.5; color: rgba(243, 233, 215, .86); }
.note__kit li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 1.1rem; height: .22rem;
  background: url("../assets/brand/plato-lino.svg") center / contain no-repeat;
}

/* =========================================================
   02 · LA OPCIÓN INTELIGENTE
   ========================================================= */
.smart { padding-top: 0; }
.smart::after {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: var(--linea-papel); max-width: var(--maxw); margin-inline: auto;
}
.smart .wrap { padding-top: clamp(100px, 12vw, 180px); }

/* =========================================================
   ELIJA SU MESA: Villa Chef Profesional y Villa Chef Home
   El título arriba al centro y debajo las dos opciones.
   El nombre va sobre la foto (mismo estilo que "Colección / Vajilla"); al pasar el cursor
   la foto se oscurece y aparece "Entrar", que es lo único que lleva a la línea.
   Solo colores del kit de marca: Azul Villa, Café Roble, Beige Lino y Crema.
   ========================================================= */
.caminos {
  --focus: var(--roble);
  --ancho-camino: clamp(270px, 29vw, 410px);
  --hueco: clamp(28px, 5vw, 76px);
  padding-block: clamp(90px, 10vw, 150px) clamp(80px, 9vw, 130px);
}
.caminos__head { text-align: center; }
.caminos__titulo { font: 400 clamp(2.6rem, 5vw, 4.7rem)/1.04 var(--f-display); letter-spacing: -.015em; color: var(--azul); }
.caminos__titulo em { color: var(--roble); }
.caminos__sub { margin: clamp(1rem, 1.6vw, 1.4rem) auto 0; max-width: 32rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--taupe); }
.caminos__grid { display: grid; grid-template-columns: repeat(2, var(--ancho-camino)); gap: var(--hueco); justify-content: center; margin-top: clamp(48px, 5vw, 72px); }
.camino {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 70px -46px rgba(94, 58, 44, .85);
}
.camino img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camino .camino__img--home { object-position: 59% 50%; }
.camino::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 46, 74, 0) 45%, rgba(15, 46, 74, .82) 100%);
  background-color: rgba(15, 46, 74, 0);
  transition: background-color .6s var(--ease);
}
.camino:hover::before, .camino:focus-within::before { background-color: rgba(15, 46, 74, .48); }
.camino__texto { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.3rem, 2.2vw, 2rem); }
.camino__mas { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease); }
.camino__mas > div { overflow: hidden; display: grid; justify-items: start; }
.camino__para { padding-top: 1rem; font-size: 1rem; line-height: 1.55; color: var(--crema); }
.camino__entrar {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.1rem;
  padding: .8rem 1.15rem; border: 1px solid rgba(215, 196, 168, .7);
  font: 500 .72rem/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--crema);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.camino__entrar .ico { width: 1.3rem; height: 1.3rem; transition: transform .6s var(--ease); }
.camino__entrar:hover, .camino__entrar:focus-visible { background: var(--crema); border-color: var(--crema); color: var(--azul); }
.camino__entrar:hover .ico { transform: translateX(5px); }
.camino:hover .camino__mas, .camino:focus-within .camino__mas { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) {
  .camino::before { background-color: rgba(15, 46, 74, .25); }
  .camino__mas { grid-template-rows: 1fr; opacity: 1; }
}

/* Telón: al entrar a Villa Chef Profesional o Villa Chef Home la página "aparece" desde el papel crema */
.telon {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  display: grid; place-items: center;
  background: var(--crema);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.telon::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/textura-lino.jpg") center / 520px; mix-blend-mode: multiply; opacity: .2;
}
.telon img { position: relative; width: 34px; height: auto; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.telon.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.telon.is-on img { opacity: 1; transform: none; transition-delay: .1s; }
/* Al llegar desde otra página: el telón ya está puesto y se retira solo (sin depender del JavaScript) */
html.telon-entrada .telon { animation: telon-sale 1.1s var(--ease) .25s both; }
html.telon-entrada .telon img { opacity: 1; transform: none; }
@keyframes telon-sale { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }.cocina { padding-top: 0; }
.cocina::after {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: var(--linea-papel); max-width: var(--maxw); margin-inline: auto;
}
.cocina > .wrap { padding-top: clamp(100px, 12vw, 180px); }
.smart__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: start; }

.collage { position: relative; height: clamp(440px, 46vw, 660px); }
.collage > div { position: absolute; overflow: hidden; }
.collage > div > img { width: 100%; height: 100%; object-fit: cover; }
.collage__a { right: 0; top: 0; width: 74%; aspect-ratio: 900 / 1153; box-shadow: 0 40px 70px -46px rgba(62, 36, 25, .8); }
.collage__b { left: 0; bottom: 4%; width: 50%; aspect-ratio: 1; border: 10px solid var(--crema); box-shadow: 0 34px 60px -36px rgba(62, 36, 25, .75); }
.collage__plato { position: absolute; right: 4%; bottom: -2%; width: 46%; opacity: .9; }

/* Los 3 pilares en línea editorial (sin tarjetas) */
.pmini-grid {
  margin-top: clamp(64px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 34px);
}
.pmini { position: relative; padding-top: 1.15rem; border-top: 1px solid var(--linea-papel); }
.pmini::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 38px; height: 1px; background: var(--roble);
  transform-origin: left; transition: transform 1.2s var(--ease) .3s;
}
.js .pmini-grid:not(.is-in) .pmini::before { transform: scaleX(0); }
.pmini__num { font: italic 400 1.35rem/1 var(--f-display); color: var(--roble); }
.pmini__title { margin-top: .7rem; font: 400 clamp(1.4rem, 2.1vw, 2rem)/1.15 var(--f-display); color: var(--azul); }
.pmini__title em { color: var(--roble); }
.pmini p { margin-top: .6rem; max-width: 26rem; font-size: 1rem; line-height: 1.65; color: var(--taupe); }

/* Índice desplegable: las opciones se despliegan una a una */
.indice { position: relative; margin-top: clamp(80px, 9vw, 130px); }
.indice__lead { margin-bottom: 1.4rem; font: italic 400 clamp(1.4rem, 2vw, 1.85rem)/1.3 var(--f-display); color: var(--roble); }
.indice__lista { border-top: 1px solid var(--linea-papel); }
.indice__fila {
  --focus: var(--roble);
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2.6rem; align-items: start;
  column-gap: clamp(10px, 1.4vw, 20px);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--linea-papel);
  color: var(--azul);
  transition: clip-path 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
/* Se despliega de izquierda a derecha al llegar (también con "reducir animaciones") */
.js .indice:not(.is-in) .indice__fila { clip-path: inset(0 100% 0 0); }
.indice__fila::before {
  content: ""; position: absolute; inset: 0 -1.2rem; z-index: -1;
  background: rgba(215, 196, 168, .32);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.indice__num { padding-top: .5em; font: italic 400 1.05rem/1 var(--f-display); color: var(--roble); }
/* Mismo tamaño que los tipos de cocina de la sección 02 */
.indice__nombre {
  display: block;
  font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.15 var(--f-display);
  transition: transform .7s var(--ease), color .5s var(--ease);
}
.indice__desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease); }
.indice__desc > span { overflow: hidden; max-width: 34rem; padding-top: .5rem; font-size: 1rem; line-height: 1.6; color: var(--taupe); }
.indice__flecha { width: 1.5rem; height: 1.5rem; margin-top: .45em; color: var(--roble); opacity: .4; transition: transform .6s var(--ease), opacity .4s var(--ease); }

.indice__fila:hover::before, .indice__fila:focus-visible::before { transform: scaleX(1); }
.indice__fila:hover .indice__nombre, .indice__fila:focus-visible .indice__nombre { transform: translateX(14px); color: var(--roble); font-style: italic; }
.indice__fila:hover .indice__desc, .indice__fila:focus-visible .indice__desc { grid-template-rows: 1fr; opacity: 1; }
.indice__fila:hover .indice__desc > span, .indice__fila:focus-visible .indice__desc > span { padding-left: 14px; }
.indice__fila:hover .indice__flecha, .indice__fila:focus-visible .indice__flecha { opacity: 1; transform: translateX(6px); }
.indice__lista:has(.indice__fila:hover) .indice__fila:not(:hover) .indice__nombre { color: rgba(15, 46, 74, .32); }

/* Foto que acompaña la opción activa */
.indice__preview {
  position: absolute; right: clamp(4rem, 7vw, 7rem); top: 0; z-index: 3; margin: 0;
  width: clamp(190px, 16vw, 240px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 2px; background: var(--crema-2, #EADCC3);
  box-shadow: 0 40px 60px -30px rgba(8, 27, 44, .6);
  pointer-events: none; opacity: 0;
  transform: translate3d(0, calc(var(--y, 0px) - 30%), 0) rotate(-2.5deg) scale(.92);
  transition: opacity .45s var(--ease), transform .8s var(--ease);
}
.indice.has-preview .indice__preview { opacity: 1; transform: translate3d(0, calc(var(--y, 0px) - 30%), 0) rotate(-2.5deg) scale(1); }
.indice__preview img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s var(--ease), transform 1.1s var(--ease);
}
.indice__preview img.is-entrando { clip-path: inset(100% 0 0 0); transform: scale(1.12); }

/* Pantallas táctiles: la descripción siempre visible y sin foto flotante */
@media (hover: none), (max-width: 760px) {
  .indice__desc { grid-template-rows: 1fr; opacity: 1; }
  .indice__preview { display: none; }
  .indice__flecha { opacity: .8; }
}


/* =========================================================
   CITA SOBRE OLIVO
   ========================================================= */
/* Mismo gesto que la portada: la sección queda fija y, al bajar, el olivo se
   descubre en un círculo que se abre (campana que se levanta); luego aparece la frase. */
.quote {
  --q: 0;
  position: relative; height: 185svh;
  text-align: center; color: var(--crema);
  background: var(--noche);
}
.quote__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: 76px var(--gutter) 40px;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, #12395C 0%, var(--azul) 48%, var(--noche) 100%);
}
.quote__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 560px; mix-blend-mode: soft-light; opacity: .4;
}
.quote__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  clip-path: circle(calc(var(--q) * 96vmax) at 50% 50%);
}
.quote__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 27, 44, .88) 0%, rgba(15, 46, 74, .6) 45%, rgba(8, 27, 44, .88) 100%),
    url("../assets/img/textura-olivo.jpg") center / cover;
  transform: scale(calc(1 + (1 - var(--q)) * .18 * var(--m)));
}
.quote__inner { position: relative; max-width: 980px; margin-inline: auto; }
.quote__iso { width: 30px; margin: 0 auto 2.6rem; }
.quote blockquote {
  opacity: calc((var(--q) - .4) * 2.6);
  transform: translateY(calc((1 - var(--q)) * 40px * var(--m)));
}
.quote blockquote p {
  font: 400 clamp(2.1rem, 4.6vw, 4.3rem)/1.14 var(--f-display);
  letter-spacing: -.012em; text-wrap: balance;
}
.quote blockquote em { color: var(--champan); }
.quote blockquote footer {
  margin-top: 2.6rem;
  display: inline-flex; align-items: center; gap: 1.2rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--lino);
}
.quote blockquote footer::before, .quote blockquote footer::after { content: ""; width: 40px; height: 1px; background: var(--champan); }

/* =========================================================
   03 · COLECCIONES
   ========================================================= */
.collections {
  --focus: var(--champan);
  background: var(--oscuro); color: var(--crema);
  overflow: hidden;
}
.collections::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-madera.jpg") center / cover;
  mix-blend-mode: multiply; opacity: .5;
}
.collections .sec-num { color: var(--lino); }
.collections .sec-title em { color: var(--champan); }
.collections .sec-intro { color: rgba(243, 233, 215, .8); }

.collections__more {
  margin-top: clamp(52px, 6vw, 84px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.6rem;
}
.collections__more p { max-width: 34rem; font: 400 clamp(1.5rem, 2vw, 1.8rem)/1.35 var(--f-display); color: var(--crema); text-wrap: balance; }
.collections__more em { color: var(--champan); }

/* =========================================================
   04 · VILLACHEF HOME (mismas piezas de diseño, sobre papel)
   ========================================================= */
.home { --focus: var(--roble); overflow: hidden; }
.home .rail__title { color: var(--azul); }
.home .rail__title span { color: var(--roble); }
/* Página Villa Chef Home: abre con el mismo bloque azul del cierre de la página principal */
.home-hero { min-height: min(100svh, 860px); justify-content: center; padding-top: clamp(130px, 14vw, 190px); }
.home-hero__marca { margin-bottom: 1.2rem; color: var(--champan); }
.home__more p { color: var(--azul); }
.home__more em { color: var(--roble); }
/* Medidas o línea en las tarjetas con foto completa (sobre el degradado oscuro) */
.tile:not(.tile--producto) .tile__spec { color: var(--lino); }

.rail { margin-top: clamp(56px, 6vw, 88px); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.rail__title { display: flex; flex-direction: column; gap: .5rem; font: italic 400 clamp(1.7rem, 2.5vw, 2.3rem)/1.1 var(--f-display); color: var(--crema); }
.rail__title span { font-style: normal; color: var(--lino); }

.rail__track {
  display: flex; gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 14px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 24px;
  scrollbar-width: none;
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
[data-track].is-drag { cursor: grabbing; }
[data-track].is-drag a { pointer-events: none; }

.tile {
  position: relative; flex: none;
  width: clamp(236px, 21vw, 310px); aspect-ratio: 4 / 5;
  border-radius: 2px; overflow: hidden;
  scroll-snap-align: start;
  background: var(--oscuro-900);
  transition: transform .8s var(--ease), opacity .6s var(--ease), box-shadow .8s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid rgba(243, 233, 215, 0);
  transition: border-color .8s var(--ease), inset .8s var(--ease);
}
.tile__cap {
  position: absolute; inset: auto 0 0; padding: 4rem 1.4rem 1.4rem;
  display: grid; gap: .4rem;
  background: linear-gradient(180deg, rgba(40, 22, 15, 0) 0%, rgba(40, 22, 15, .8) 55%, rgba(40, 22, 15, .94) 100%);
}
.tile__name { font: 400 1.32rem/1.2 var(--f-display); color: var(--crema); }
.tile__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease); }
.tile__more > span { overflow: hidden; display: grid; gap: .55rem; }
.tile__note { font-size: .84rem; line-height: 1.5; color: rgba(243, 233, 215, .86); }
.tile__ask { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--lino); }

.tile:hover, .tile:focus-visible { transform: translateY(-8px); box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .85); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.07); }
.tile:hover::after, .tile:focus-visible::after { border-color: rgba(243, 233, 215, .5); inset: 16px; }
.tile:hover .tile__more, .tile:focus-visible .tile__more { grid-template-rows: 1fr; opacity: 1; }
.rail__track:has(.tile:hover) .tile:not(:hover),
.rail__track:has(.tile:focus-visible) .tile:not(:focus-visible) { opacity: .4; }

/* Tarjeta de producto del catálogo: pieza recortada sobre papel crema */
.tile--producto { background: var(--crema); }
.tile--producto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 360px;
  mix-blend-mode: multiply; opacity: .28;
}
.tile--producto img {
  position: absolute; inset: 0;
  object-fit: contain; padding: 11% 11% 36%;
  mix-blend-mode: multiply;
}
.tile--producto .tile__cap { background: none; padding: 0 1.35rem 1.35rem; gap: .3rem; }
.tile--producto .tile__name { color: var(--azul); font-size: 1.22rem; }
.tile__spec { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.tile--producto .tile__ask { color: var(--oscuro); }
.tile--producto:hover::after, .tile--producto:focus-visible::after { border-color: rgba(139, 94, 60, .4); }

/* Colección Cubiertos (Home): mismo papel que las tarjetas de producto, mientras llegan las fotos */
.cubiertos {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 2.4rem;
  padding: clamp(1.7rem, 3vw, 2.5rem) clamp(1.5rem, 3.4vw, 2.9rem);
  border-radius: 2px; background: var(--crema); color: var(--azul);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.cubiertos::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 360px;
  mix-blend-mode: multiply; opacity: .28;
}
.cubiertos::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid rgba(139, 94, 60, 0);
  transition: border-color .8s var(--ease), inset .8s var(--ease);
}
.cubiertos > * { position: relative; }
.cubiertos__texto { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.25 var(--f-display); text-wrap: balance; }
.cubiertos__texto em { color: var(--roble); }
.cubiertos__ask { display: inline-flex; align-items: center; gap: .75rem; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--oscuro); }
.cubiertos__ask .ico { width: 1.15rem; height: 1.15rem; transition: transform .6s var(--ease); }
.cubiertos:hover, .cubiertos:focus-visible { transform: translateY(-6px); box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .85); }
.cubiertos:hover::after, .cubiertos:focus-visible::after { border-color: rgba(139, 94, 60, .4); inset: 16px; }
.cubiertos:hover .cubiertos__ask .ico, .cubiertos:focus-visible .cubiertos__ask .ico { transform: translateX(5px); }

/* Carrusel continuo (se mueve con transform: fluido, sin saltos) */
.js [data-track].is-marquee { overflow: hidden; overflow: clip; touch-action: pan-y; }
.strip {
  display: flex; flex: none; width: max-content;
  gap: inherit; align-items: inherit;
  will-change: transform; backface-visibility: hidden;
}

/* =========================================================
   04 · ASESORÍA
   ========================================================= */
.advice {
  --focus: var(--roble);
  position: relative; overflow: hidden;
  padding: clamp(100px, 12vw, 170px) var(--gutter);
  background: var(--oscuro-900) url("../assets/img/textura-madera.jpg") center / cover;
}
.advice::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 22, 15, 0) 25%, rgba(24, 13, 8, .65) 100%);
}
.advice__batidor { position: absolute; left: 3%; top: 14%; height: 62%; width: auto; opacity: .1; transform: rotate(-12deg); }
.advice__vapor { position: absolute; right: 5%; top: 8%; height: 66%; width: auto; opacity: .09; }

.menu-card {
  position: relative;
  max-width: 840px; margin-inline: auto;
  background: var(--crema);
  padding: clamp(52px, 6.5vw, 92px) clamp(26px, 6.5vw, 92px) clamp(48px, 6vw, 80px);
  text-align: center;
  box-shadow:
    inset 0 0 0 14px var(--crema),
    inset 0 0 0 15px rgba(139, 94, 60, .45),
    inset 0 0 0 19px var(--crema),
    inset 0 0 0 20px rgba(139, 94, 60, .25),
    0 60px 90px -46px rgba(10, 5, 2, .9),
    0 10px 20px -10px rgba(10, 5, 2, .5);
}
.menu-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 480px;
  mix-blend-mode: multiply; opacity: .22;
}
.menu-card > * { position: relative; }
.menu-card { --num-top: clamp(30px, 3.4vw, 44px); --num-size: clamp(2.6rem, 4vw, 3.6rem); padding-top: calc(var(--num-top) + var(--num-size) / 2 - 32px); } /* el isotipo (44 px de alto) queda a la altura del número */
.menu-card__num { position: absolute; top: var(--num-top); left: clamp(34px, 4vw, 52px); font: 400 var(--num-size)/1 var(--f-display); font-variant-numeric: lining-nums; color: var(--roble); }
.menu-card__iso { width: 30px; margin: 0 auto 1.6rem; }
.menu-card__title { font: 400 clamp(2.1rem, 4.2vw, 3.5rem)/1.06 var(--f-display); letter-spacing: -.015em; color: var(--azul); }
.menu-card__title em { color: var(--roble); }
.menu-card__intro { margin: 1.3rem auto 0; max-width: 32rem; color: var(--taupe); }

.courses { margin-top: clamp(40px, 5vw, 60px); display: grid; gap: clamp(24px, 3vw, 36px); text-align: left; }
.course { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .4rem 1rem; align-items: baseline; }
.course__num { font: italic 400 1.6rem/1 var(--f-display); color: var(--roble); }
.course__line { display: flex; align-items: baseline; gap: .8rem; }
.course__name { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--f-display); color: var(--azul); flex: 0 1 auto; min-width: 0; }
.course__dots {
  flex: 1; min-width: 1.5rem; height: 2px;
  background-image: radial-gradient(circle, rgba(139, 94, 60, .7) 1px, transparent 1.4px);
  background-size: 7px 2px; background-repeat: repeat-x; background-position: left center;
  transform: translateY(-.25em); transform-origin: left center;
  transition: transform 1.3s var(--ease);
}
.course__tag { flex: none; color: var(--roble); }
/* "por WhatsApp" abre la conversación: mismo estilo, con un subrayado fino que indica que se puede tocar */
.course__tag--wa {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em;
  text-decoration-color: rgba(139, 94, 60, .45);
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.course__tag--wa:hover, .course__tag--wa:focus-visible { color: var(--azul); text-decoration-color: currentColor; }
.course__desc { margin-top: .4rem; color: var(--taupe); max-width: 40rem; }
.js .course[data-reveal] .course__dots { transform: translateY(-.25em) scaleX(0); }
.js .course[data-reveal].is-in .course__dots { transform: translateY(-.25em) scaleX(1); transition-delay: .3s; }
.menu-card__plato { width: 120px; margin: clamp(40px, 5vw, 56px) auto 1.8rem; }

/* =========================================================
   05 · EL CHEF
   ========================================================= */
.chef {
  --focus: var(--champan);
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(201, 169, 124, .14) 0%, rgba(201, 169, 124, 0) 70%),
    radial-gradient(ellipse 90% 80% at 30% 50%, #12395C 0%, var(--azul) 45%, var(--noche) 100%);
  color: var(--crema);
  overflow: hidden;
}
.chef__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 140px); align-items: center; }
.chef__figure { position: relative; }
.chef__portrait { position: relative; width: 82%; aspect-ratio: 4 / 5; overflow: hidden; }
.chef__portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Marco fino champán, a la misma distancia por los cuatro lados; se mueve junto con la foto */
.chef__figure::before {
  content: ""; position: absolute; left: -10px; top: -10px; bottom: -10px; width: calc(82% + 20px);
  border: 1px solid rgba(201, 169, 124, .5); pointer-events: none;
}
.chef .sec-num { color: var(--champan); }
.chef .sec-title { color: var(--crema); max-width: 15ch; }
.chef .sec-title em { color: var(--champan); }
.chef .sec-head--stack .sec-num { margin-bottom: 1.4rem; }
.chef__copy > p { margin-top: 1.4rem; max-width: 34rem; font-size: 1.1rem; color: rgba(243, 233, 215, .84); }
.chef__copy > p strong { color: var(--crema); font-weight: 500; }
.chef__copy .sec-head + p { margin-top: 2.2rem; }
/* Columna izquierda: foto y, debajo, la firma con Instagram y sus restaurantes (mismo ancho que la foto) */
.chef__perfil { width: 82%; margin-top: clamp(2.4rem, 3.4vw, 3rem); }
.chef__sign { display: flex; flex-direction: column; gap: .5rem; }
.chef__name { font: italic 400 clamp(1.8rem, 2.8vw, 2.5rem)/1.1 var(--f-display); color: var(--lino); }
.chef__role { color: var(--champan); }
.chef__ig { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; font-size: .84rem; letter-spacing: .04em; color: rgba(243, 233, 215, .78); transition: color .3s; }
.chef__ig .ico { width: 1rem; height: 1rem; color: var(--champan); }
.chef__ig:hover { color: var(--champan); }
.chef__locales-titulo {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--linea-noche);
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--champan);
}
.chef__locales { margin-top: .9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.chef__locales a {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  border: 1px solid var(--linea-noche); transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.chef__locales a:hover { border-color: var(--champan); background: rgba(201, 169, 124, .06); }
.chef__locales .ico { width: 1.05rem; height: 1.05rem; flex: none; color: var(--champan); }
.chef__locales a > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font: 400 1.12rem/1.2 var(--f-display); color: var(--crema); }
.chef__locales small { font: 400 .74rem/1.3 var(--f-text); letter-spacing: .02em; color: rgba(243, 233, 215, .58); }
.chef__facts { margin: 2.2rem 0 2.8rem; max-width: 34rem; border-top: 1px solid var(--linea-noche); }
.chef__facts li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--linea-noche); color: rgba(243, 233, 215, .9); }
.chef__facts span { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--champan); padding-top: .35em; }

/* =========================================================
   06 · UNIVERSO
   ========================================================= */
.universe { overflow: hidden; }
.socials {
  margin-top: clamp(56px, 6vw, 90px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linea-papel); border-bottom: 1px solid var(--linea-papel);
}
.socials li + li { border-left: 1px solid var(--linea-papel); }
.socials a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: 1.6rem clamp(1rem, 2vw, 2rem);
  transition: background-color .5s var(--ease);
}
.socials .ico { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--roble); }
.socials span { font: 400 clamp(1.3rem, 1.8vw, 1.7rem)/1.1 var(--f-display); color: var(--azul); transition: color .4s; }
.socials small { font-size: .78rem; color: var(--taupe); }
.socials a:hover { background: rgba(215, 196, 168, .35); }
.socials a:hover span { font-style: italic; color: var(--roble); }

/* Showroom: invitación a visitar la vajilla en persona, junto a los contactos */
.showroom {
  margin-top: clamp(40px, 4.5vw, 64px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(1.5rem, 2.6vw, 2.3rem) clamp(1.4rem, 3vw, 2.8rem);
  border: 1px solid var(--linea-papel); border-left: 2px solid var(--roble);
  background: rgba(215, 196, 168, .22);
}
.showroom__iso { width: clamp(30px, 3vw, 40px); height: auto; }
.showroom__label { color: var(--roble); }
.showroom__titulo { margin-top: .55rem; font: 400 clamp(1.45rem, 2.2vw, 2rem)/1.2 var(--f-display); color: var(--azul); }
.showroom__titulo em { color: var(--roble); }
.showroom__desc { margin-top: .55rem; max-width: 40rem; font-size: .98rem; line-height: 1.65; color: var(--taupe); }
/* Versión sobre fondo oscuro (Villa Chef Home, al final de Piezas sueltas), con la tarjetita de Ronny a la izquierda */
.showroom--oscuro { border-color: rgba(243, 233, 215, .16); border-left-color: var(--champan); background: rgba(243, 233, 215, .05); }
.showroom--oscuro .showroom__label { color: var(--lino); }
.showroom--oscuro .showroom__titulo { color: var(--crema); }
.showroom--oscuro .showroom__titulo em { color: var(--champan); }
.showroom--oscuro .showroom__desc { color: rgba(243, 233, 215, .78); }
.showroom__chef {
  display: grid; justify-items: center; text-align: center;
  padding-right: clamp(18px, 2.6vw, 40px); border-right: 1px solid rgba(243, 233, 215, .16);
}
.showroom__chef img {
  width: clamp(84px, 7vw, 104px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  outline: 1px solid rgba(201, 169, 124, .6); outline-offset: 4px; margin-bottom: 1rem;
}
.showroom__firma { display: flex; flex-direction: column; gap: .35rem; }
.showroom__nombre { font: italic 400 1.3rem/1.1 var(--f-display); color: var(--crema); white-space: nowrap; }
.showroom__rol { color: var(--lino); font-size: .7rem; letter-spacing: .24em; white-space: nowrap; }
.showroom__ig { display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem; font-size: .8rem; letter-spacing: .04em; color: rgba(243, 233, 215, .72); transition: color .3s; }
.showroom__ig .ico { width: .95rem; height: .95rem; color: var(--champan); }
.showroom__ig:hover { color: var(--champan); }
@media (max-width: 1080px) {
  .showroom--oscuro { grid-template-columns: auto minmax(0, 1fr); }
  .showroom--oscuro .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .showroom { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .showroom__iso { display: none; }
  .showroom--oscuro { grid-template-columns: minmax(0, 1fr); }
  .showroom--oscuro .btn { grid-column: auto; }
  /* La tarjetita pasa a una fila: foto a la izquierda, nombre a la derecha */
  .showroom__chef {
    grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 1.1rem; text-align: left;
    width: 100%; padding: 0 0 1.3rem; border-right: 0; border-bottom: 1px solid rgba(243, 233, 215, .16);
  }
  .showroom__chef img { grid-row: span 2; width: 72px; margin: 0; }
  .showroom__ig { margin-top: .4rem; }
}

/* =========================================================
   UBICACIÓN: la tarjeta de la casa (antes del pie)
   Misma familia que la carta de Asesoría: papel crema con doble filete, sobre madera.
   A la izquierda la marca; a la derecha los datos servidos como renglones de carta.
   ========================================================= */
.ubicacion {
  --focus: var(--roble);
  position: relative; overflow: hidden;
  padding: clamp(84px, 10vw, 150px) var(--gutter);
  background: var(--oscuro-900) url("../assets/img/textura-madera.jpg") center / cover;
  border-top: 1px solid rgba(215, 196, 168, .14);
}
.ubicacion::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(40, 22, 15, 0) 30%, rgba(24, 13, 8, .7) 100%);
}
.casa {
  position: relative;
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.35fr); align-items: center;
  padding: clamp(56px, 6vw, 84px) clamp(48px, 6vw, 88px);
  background: var(--crema); color: var(--azul);
  box-shadow:
    inset 0 0 0 14px var(--crema),
    inset 0 0 0 15px rgba(139, 94, 60, .45),
    inset 0 0 0 19px var(--crema),
    inset 0 0 0 20px rgba(139, 94, 60, .25),
    0 60px 90px -46px rgba(10, 5, 2, .9),
    0 10px 20px -10px rgba(10, 5, 2, .5);
}
.casa::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 480px;
  mix-blend-mode: multiply; opacity: .22;
}
.casa > * { position: relative; }
.casa__marca { text-align: center; padding-right: clamp(28px, 3.6vw, 56px); }
.casa__iso { width: 30px; margin: 0 auto 1.5rem; }
.casa__titulo { font: 400 clamp(2.4rem, 3.7vw, 3.4rem)/1.04 var(--f-display); letter-spacing: -.015em; color: var(--azul); }
.casa__titulo em { color: var(--roble); }
.casa__lede { margin: 1.15rem auto 0; max-width: 21rem; font-size: 1rem; line-height: 1.6; color: var(--taupe); text-wrap: balance; }
.casa__lineas { margin-top: 1.35rem; font: 500 .68rem/2.05 var(--f-text); letter-spacing: .24em; padding-left: .24em; white-space: nowrap; text-transform: uppercase; color: var(--roble); }
.casa__lineas i { font-style: normal; margin-inline: .3em; opacity: .6; }

/* Los datos: filete vertical a la izquierda, como el pliegue de una carta */
/* La columna de datos ocupa todo el alto, así el filete vertical va de arriba abajo como el pliegue de una carta */
.casa__datos { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: clamp(28px, 3.6vw, 56px); border-left: 1px solid var(--linea-papel); }
.casa__lista { display: grid; gap: clamp(24px, 2.8vw, 34px); }
.casa__fila.course { grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; }
.casa__ico { width: 1.4rem; height: 1.4rem; color: var(--roble); }
.casa .course__name { font-size: clamp(1.2rem, 1.65vw, 1.45rem); white-space: nowrap; }
/* Filas que se pueden tocar (Ubicación, WhatsApp, Correo): toda la fila es el enlace.
   La palabra de la derecha va subrayada, como "por WhatsApp" en la carta de Asesoría. */
.casa__ir .course__name { transition: color .35s var(--ease); }
.casa__ir .course__tag {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em;
  text-decoration-color: rgba(139, 94, 60, .45);
  transition: color .35s var(--ease), text-decoration-color .35s var(--ease);
}
.casa__ir:hover .course__name, .casa__ir:focus-visible .course__name { color: var(--roble); }
.casa__ir:hover .course__tag, .casa__ir:focus-visible .course__tag { color: var(--azul); text-decoration-color: currentColor; }
.casa__ir:focus-visible { outline-offset: 6px; }
.casa__fila[hidden] { display: none; }

/* Redes: aros finos de Roble; al pasar el mouse se llenan de Azul Villa con un aro punteado */
.casa__redes { display: flex; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.casa__redes a {
  position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(139, 94, 60, .5); border-radius: 50%; color: var(--azul);
  transition: background-color .35s var(--ease), color .35s, border-color .35s;
}
.casa__redes a::after {
  content: ""; position: absolute; inset: -6px; border: 1px dotted var(--roble); border-radius: 50%;
  opacity: 0; transform: scale(.88); transition: opacity .35s, transform .5s var(--ease);
}
.casa__redes a:hover, .casa__redes a:focus-visible { background: var(--azul); border-color: var(--azul); color: var(--crema); }
.casa__redes a:hover::after, .casa__redes a:focus-visible::after { opacity: 1; transform: none; }
.casa__redes .ico { width: 1.1rem; height: 1.1rem; }

/* Letra pequeña al pie de la tarjeta, como en una carta */
.casa__pie {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 4.6vw, 60px); padding-top: 1.4rem;
  border-top: 1px solid var(--linea-papel);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1.6rem;
  font-size: .76rem; letter-spacing: .03em; color: var(--taupe);
}
.casa__pie p { text-wrap: balance; }
.casa__legales { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.casa__legales a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.casa__legales a:hover, .casa__legales a:focus-visible { color: var(--roble); background-size: 100% 1px; }

@media (max-width: 1080px) {
  .casa { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
  .casa__marca { padding-right: 0; }
  .casa__datos { padding: clamp(34px, 5vw, 44px) 0 0; margin-top: clamp(34px, 5vw, 44px); border-left: 0; border-top: 1px solid var(--linea-papel); }
  .casa__pie { flex-direction: column; align-items: center; text-align: center; }
  .casa__legales { justify-content: center; }
}
@media (max-width: 600px) {
  .casa { padding: 54px 26px 46px; }
  .casa__fila.course { grid-template-columns: 2.1rem minmax(0, 1fr); }
  .casa .course__name { white-space: normal; font-size: 1.12rem; }
  .casa__lineas { white-space: normal; font-size: .64rem; letter-spacing: .2em; padding-left: .2em; }
  /* Aire abajo para que el botón flotante de WhatsApp no tape la letra pequeña */
  .ubicacion { padding-bottom: 104px; }
}

/* =========================================================
   CIERRE Y PIE
   ========================================================= */
.close {
  --focus: var(--champan);
  position: relative; overflow: hidden;
  padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(100px, 12vw, 160px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--crema);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(201, 169, 124, .2) 0%, rgba(201, 169, 124, 0) 70%),
    radial-gradient(ellipse 80% 70% at 50% 40%, #12395C 0%, var(--azul) 45%, var(--noche) 100%);
}
.close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 560px;
  mix-blend-mode: soft-light; opacity: .4;
}
.close > * { position: relative; }
.close__mark { width: 150px; height: 200px; margin-bottom: 2rem; }
.close__vapor {
  position: absolute; left: 50%; bottom: 48px;
  height: 136px; width: auto;
  transform: translateX(-50%);
  animation: steam 5s ease-in-out infinite;
}
@keyframes steam {
  0% { opacity: 0; transform: translate(-50%, 16px) scaleY(.85); }
  35% { opacity: 1; }
  70% { opacity: .85; transform: translate(-50%, -8px) scaleY(1.02) skewX(-4deg); }
  100% { opacity: 0; transform: translate(-50%, -22px) scaleY(1.05) skewX(2deg); }
}
.close__plato { position: absolute; left: 0; bottom: 0; width: 100%; }
.close__title { font: 400 clamp(2.6rem, 5.8vw, 5.4rem)/1.04 var(--f-display); letter-spacing: -.018em; max-width: 15ch; text-wrap: balance; }
.close__title em { color: var(--champan); }
.close__lede { margin: 1.8rem auto 2.8rem; max-width: 34rem; font-size: 1.12rem; color: rgba(243, 233, 215, .84); }

.foot {
  --focus: var(--champan);
  background: var(--noche); color: rgba(243, 233, 215, .78);
  padding-block: clamp(70px, 8vw, 110px) 34px;
  font-size: .92rem;
  border-top: 1px solid var(--linea-noche);
}
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2.6rem; }
/* El mismo logo de la portada, con su descriptor completo en dos líneas */
.foot__logo { --logo-w: min(280px, 78vw); position: relative; width: var(--logo-w); padding-bottom: calc(var(--logo-w) * .04); }
.foot__logo img { width: 100%; }
.foot__descriptor {
  position: absolute; left: 0; top: 84.45%; width: 82.96%;
  display: flex; flex-direction: column; align-items: center;
  font: 500 calc(var(--logo-w) * .02563)/1.615 var(--f-text);
  letter-spacing: .35em; padding-left: .35em;
  text-transform: uppercase; color: var(--crema); white-space: nowrap;
}
.foot__col { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.foot__h { color: var(--champan); margin-bottom: .5rem; }
.foot__col a { transition: color .3s; }
.foot__col a:hover { color: var(--crema); }
/* Contacto: ícono fino en círculo champán + dato */
.foot__contacto { display: grid; gap: 1.15rem; }
.foot__contacto li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: .9rem; align-items: center; }
.foot__contacto li[hidden] { display: none; }
.foot__contacto .ico { width: 2.4rem; height: 2.4rem; padding: .6rem; border: 1px solid rgba(201, 169, 124, .45); border-radius: 50%; color: var(--champan); }
.foot__contacto a, .foot__contacto li > span { display: flex; flex-direction: column; gap: .15rem; white-space: nowrap; }
.foot__contacto small { font-size: .74rem; letter-spacing: .02em; color: rgba(243, 233, 215, .55); }
/* Síganos: botones redondos; al pasar el cursor se llenan de champán con un aro punteado */
.foot__redes { display: flex; gap: .9rem; }
.foot__redes a {
  position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border: 1px solid rgba(201, 169, 124, .45); border-radius: 50%; color: var(--crema);
  transition: background-color .35s var(--ease), color .35s, border-color .35s;
}
.foot__redes a::after {
  content: ""; position: absolute; inset: -6px; border: 1px dotted var(--champan); border-radius: 50%;
  opacity: 0; transform: scale(.88); transition: opacity .35s, transform .5s var(--ease);
}
.foot__redes a:hover, .foot__redes a:focus-visible { background: var(--champan); border-color: var(--champan); color: var(--noche); }
.foot__redes a:hover::after, .foot__redes a:focus-visible::after { opacity: 1; transform: none; }
.foot__redes .ico { width: 1.15rem; height: 1.15rem; }
.foot__legal {
  margin-top: clamp(56px, 6vw, 80px); padding-top: 1.5rem;
  border-top: 1px solid var(--linea-noche);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .78rem; letter-spacing: .04em; color: rgba(243, 233, 215, .55);
  padding-right: calc(var(--gutter) + 70px);
}

/* Enlaces de contacto: un filete fino se dibuja debajo al pasar el mouse */
.foot__contacto a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.foot__contacto a:hover, .foot__contacto a:focus-visible { background-size: 100% 1px; }

/* WhatsApp flotante */
.wa-float {
  --focus: var(--champan);
  position: fixed; right: clamp(16px, 2.4vw, 34px); bottom: clamp(16px, 2.4vw, 34px); z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul); color: var(--crema);
  box-shadow: 0 0 0 1px rgba(215, 196, 168, .6), 0 14px 30px -16px rgba(8, 27, 44, .75);
  transform: translateY(130%) scale(.8); opacity: 0;
  transition: transform .8s var(--ease), opacity .5s var(--ease), background-color .3s;
}
.wa-float::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(215, 196, 168, .3); pointer-events: none; transition: border-color .4s var(--ease), inset .4s var(--ease); }
.wa-float .ico { width: 23px; height: 23px; }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover::after { border-color: rgba(215, 196, 168, .75); inset: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
.nav__links a { white-space: nowrap; }
@media (max-width: 1400px) {
  .nav__inner { gap: 1.8rem; }
  .nav__links { gap: 1.5rem; }
  .nav__links a { letter-spacing: .18em; }
}
@media (max-width: 1180px) {
  .nav__inner { gap: 1.6rem; }
  .nav__links { gap: 1.3rem; }
  .nav__links a { letter-spacing: .16em; }
}

@media (max-width: 960px) {
  .nav { height: 66px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__brand { width: 120px; }

  .hero { height: 180svh; }
  .hero__stage { padding-top: 66px; }
  .hero__logo { --logo-w: clamp(200px, min(84vw, 70svh), 480px); }
  .hero__actions { flex-direction: column; gap: 1rem; }

  .sec-head { grid-template-columns: 1fr; }
  .sec-num { font-size: clamp(3.6rem, 16vw, 5rem); margin-bottom: 1.2rem; }

  .cocina__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .index {
    display: flex; overflow-x: auto; gap: 0;
    margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .index::-webkit-scrollbar { display: none; }
  .index__item { flex: none; grid-template-columns: auto; padding: .8rem 1.1rem; border: 0; border-bottom: 1px solid var(--linea-papel); scroll-snap-align: start; }
  .index__item:last-child { border-bottom: 1px solid var(--linea-papel); }
  .index__num, .index__hint { display: none; }
  .index__name, .indice__nombre { font-size: 1.4rem; }
  .index__item input:checked ~ .index__name { transform: none; }
  .showcase { padding-bottom: 0; width: 100%; max-width: 560px; margin-inline: auto; }
  .showcase__frame { margin: 16px 16px 0; }
  .note { padding: 1.5rem 1.35rem; }
  .note__kit { margin: 1rem 0 1.2rem; }

  .smart__top { grid-template-columns: minmax(0, 1fr); }
  .pmini-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .collage { height: clamp(380px, 100vw, 520px); }
  .points { grid-template-columns: minmax(0, 1fr); }

  .advice__batidor, .advice__vapor { opacity: .06; }

  .chef__grid { grid-template-columns: minmax(0, 1fr); }
  .chef__lado { max-width: 540px; margin-left: 18px; }
  .quote { height: 170svh; }

  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .socials li:nth-child(3) { border-left: 0; }
  .socials li:nth-child(n+3) { border-top: 1px solid var(--linea-papel); }

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }

}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero__phrase { font-size: clamp(1.18rem, min(5.6vw, 4.2svh), 1.36rem); }
  .hero__services { font-size: .7rem; letter-spacing: .2em; }
  .hero__services i { margin-inline: .25em; }
  .caminos__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 2.2rem; }
  .menu-card__num { display: none; }
  .menu-card { padding-top: 52px; }
  .course { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .course__line { flex-wrap: wrap; row-gap: .25rem; }
  .course__dots { display: none; }
  .course__tag { width: 100%; }
  .chef__facts li { grid-template-columns: 1fr; gap: .2rem; }
  .chef__locales { grid-template-columns: minmax(0, 1fr); }
  .socials a { grid-template-columns: 1fr; row-gap: .5rem; }
  .socials .ico { grid-row: auto; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* Teléfonos angostos (320–380 px) */
@media (max-width: 380px) {
  .btn { letter-spacing: .14em; padding-inline: 1.15rem; }
  .btn--lg { padding-inline: 1.3rem; }
}

/* Pantallas bajas (laptops pequeñas, ventanas reducidas, teléfono horizontal) */
@media (max-height: 640px) {
  .hero__services { display: none; }
  .hero__rule { margin-bottom: 0; }
}
@media (max-height: 470px) {
  .hero__rule { display: none; }
  .hero__cue { margin-top: .9rem; }
  .hero__cue i { display: none; }
  .hero__actions { flex-direction: row; }
}

/* Menos movimiento (opción del sistema): se conservan la apertura y los revelados
   como fundidos, sin desplazamientos, parallax ni bucles. */
@media (prefers-reduced-motion: reduce) {
  :root { --m: 0; }
  html { scroll-behavior: auto; }
  .is-ready .hero__vapor { animation: vapor-in 2.4s var(--ease) .6s both; }
  .hero__cue i::after { animation: none; top: 30%; }
  .close__vapor { animation: none; opacity: 1; }
  /* ?movimiento=1 en la dirección: versión completa para revisar */
  html.forzar-movimiento { --m: 1; }
  html.forzar-movimiento.is-ready .hero__vapor { animation: vapor-in 2.4s var(--ease) .6s both, vapor-drift 16s ease-in-out 3s infinite; }
  html.forzar-movimiento .hero__cue i::after { animation: cue 2.2s var(--ease-io) infinite; top: -40%; }
  html.forzar-movimiento .close__vapor { animation: steam 5s ease-in-out infinite; }
}

/* =========================================================
   COOKIES: barra inferior + panel de configuración (js/cookies.js)
   ========================================================= */
.cookies-barra {
  --focus: var(--champan);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--azul); color: var(--crema);
  border-top: 1px solid rgba(215, 196, 168, .35);
  box-shadow: 0 -24px 50px -30px rgba(8, 27, 44, .9);
  animation: barra-in .6s var(--ease) both;
}
.cookies-barra[hidden] { display: none; }
@keyframes barra-in { from { transform: translateY(100%); } to { transform: none; } }
.cookies-barra__inner { display: flex; align-items: center; gap: 1.2rem 2.6rem; padding-block: 1.25rem; }
.cookies-barra__texto { flex: 1 1 auto; font-size: .86rem; line-height: 1.6; color: rgba(243, 233, 215, .88); }
.cookies-barra__texto b { font-weight: 600; color: var(--crema); }
.cookies-barra__texto a { color: var(--lino); text-decoration: underline; text-underline-offset: .2em; }
.cookies-barra__mas { color: var(--lino); text-decoration: underline; text-underline-offset: .2em; font-size: inherit; }
.cookies-barra__mas:hover, .cookies-barra__texto a:hover { color: var(--crema); }
.cookies-barra__detalle { margin-top: .5rem; max-width: 52rem; font-size: .8rem; color: rgba(243, 233, 215, .78); }
.cookies-barra__botones { flex: none; display: flex; align-items: center; gap: .9rem 1.4rem; }
.cookies-barra .btn--azul { background: var(--crema); color: var(--azul); box-shadow: none; }
.cookies-barra .btn--azul:hover { background: var(--crema); }
.cookies-barra__config {
  padding: .95rem 1.3rem; border: 1px solid rgba(215, 196, 168, .7);
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--crema);
  transition: background-color .3s var(--ease);
}
.cookies-barra__config:hover { background: rgba(215, 196, 168, .14); }
@media (max-width: 760px) {
  .cookies-barra__inner { flex-direction: column; align-items: stretch; }
  .cookies-barra__botones { flex-direction: column; align-items: stretch; }
  .cookies-barra__botones > * { justify-content: center; text-align: center; }
}
/* Panel: misma caja crema que la de aceptación, con interruptores */
.cookies-panel .acepto__texto a { color: var(--roble); text-decoration: underline; text-underline-offset: .2em; }
.ck-lista { margin-top: 1.2rem; border: 1px solid var(--linea-papel); background: rgba(255, 255, 255, .55); }
.ck-opcion { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .95rem 1.1rem; cursor: pointer; }
.ck-opcion + .ck-opcion { border-top: 1px solid var(--linea-papel); }
.ck-texto b { display: block; font: 400 1.02rem/1.25 var(--f-display); color: var(--azul); }
.ck-texto small { display: block; margin-top: .25rem; font-size: .76rem; line-height: 1.5; color: var(--taupe); }
.ck-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-interruptor { position: relative; width: 44px; height: 24px; border-radius: 999px; background: rgba(107, 85, 70, .35); transition: background-color .3s var(--ease); }
.ck-interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--crema); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.ck-opcion input:checked + .ck-interruptor { background: var(--azul); }
.ck-opcion input:checked + .ck-interruptor::after { transform: translateX(20px); }
.ck-opcion input:disabled + .ck-interruptor { opacity: .55; }
.ck-opcion:has(input:disabled) { cursor: default; }
.ck-opcion input:focus-visible + .ck-interruptor { outline: 2px solid var(--roble); outline-offset: 3px; }
/* =========================================================
   AVISOS LEGALES DE LA LANDING
   ========================================================= */
/* "Imagen referencial" sobre las fotos de ambientación que no muestran piezas Villa Chef */
.tag-ref {
  position: absolute; left: 12px; top: 12px; z-index: 3; pointer-events: none;
  padding: .4rem .65rem; background: rgba(8, 27, 44, .72); color: var(--lino);
  font: 500 .62rem/1.2 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
}
/* Aceptación de Términos y Política: recuadro con dos casillas separadas (al entrar y antes de WhatsApp) */
.acepto {
  width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid rgba(201, 169, 124, .6); background: var(--crema); color: var(--azul);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: auto;
}
.acepto::backdrop { background: rgba(8, 27, 44, .62); backdrop-filter: blur(3px); }
.acepto[open] { animation: acepto-in .45s var(--ease) both; }
@keyframes acepto-in { from { opacity: 0; transform: translateY(calc(14px * var(--m))); } to { opacity: 1; transform: none; } }
.acepto__caja { position: relative; padding: clamp(1.5rem, 4vw, 2.2rem); }
.acepto__caja::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 420px; mix-blend-mode: multiply; opacity: .22;
}
.acepto__caja > * { position: relative; }
.acepto__cerrar { position: absolute; right: .8rem; top: .8rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--taupe); transition: color .3s; }
.acepto__cerrar:hover { color: var(--azul); }
.acepto__eyebrow { color: var(--roble); }
.acepto__titulo { margin-top: .8rem; font: 400 clamp(1.55rem, 3.4vw, 1.9rem)/1.15 var(--f-display); }
.acepto__titulo em { color: var(--roble); }
.acepto__texto { margin-top: .7rem; font-size: .86rem; line-height: 1.6; color: rgba(15, 46, 74, .8); }
.acepto__casilla {
  display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .8rem; align-items: start;
  margin-top: .8rem; padding: .9rem 1rem; background: rgba(255, 255, 255, .6); border: 1px solid var(--linea-papel);
  font-size: .86rem; line-height: 1.5; cursor: pointer; transition: border-color .3s;
}
.acepto__casilla:first-of-type { margin-top: 1.3rem; }
.acepto__casilla:hover, .acepto__casilla:has(input:checked) { border-color: rgba(201, 169, 124, .9); }
.acepto__casilla input { width: 1.1rem; height: 1.1rem; margin: .12rem 0 0; accent-color: var(--azul); cursor: pointer; }
.acepto__casilla a, .acepto__nota a { color: var(--roble); text-decoration: underline; text-underline-offset: .2em; }

/* Política de cookies: recuadro para aceptar o retirar el consentimiento */
.cookies-eleccion {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(28px, 3vw, 40px); padding: 1.3rem 1.5rem;
  background: var(--crema); border: 1px solid var(--linea-papel); border-left: 2px solid var(--roble);
}
.cookies-eleccion__titulo { font: 400 1.15rem/1.3 var(--f-display); color: var(--azul); }
.cookies-eleccion__estado { margin-top: .35rem; font-size: .8rem; color: var(--taupe); }
.acepto__nota { margin-top: 1rem; font-size: .74rem; line-height: 1.6; color: var(--taupe); }
.acepto__acciones { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .8rem 1.4rem; }
.acepto__cancelar { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.acepto__cancelar:hover { color: var(--azul); }
.acepto .btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
/* Enlaces a términos, privacidad y cookies en la franja final */
.foot__legales { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot__legales a { transition: color .3s; }
.foot__legales a:hover { color: var(--crema); }

/* =========================================================
   PÁGINAS LEGALES · términos, privacidad y cookies
   Portada azul con foto real + resumen en tarjetas + cuadros que se abren
   ========================================================= */
.legal-page { background: var(--crema); color: var(--azul); }
.legal-top { position: sticky; top: 0; z-index: 5; background: rgba(8, 27, 44, .96); border-bottom: 1px solid var(--linea-noche); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.legal-top__brand img { width: 128px; }
.legal-top__back {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--crema); transition: color .3s;
}
.legal-top__back:hover { color: var(--champan); }

/* Portada */
.legal-hero { position: relative; overflow: hidden; background: var(--noche); color: var(--crema); padding-block: clamp(48px, 6vw, 80px) clamp(52px, 6.5vw, 86px); }
.legal-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 560px; mix-blend-mode: soft-light; opacity: .4;
}
.legal-hero::after {
  content: ""; position: absolute; left: -6%; bottom: -26%; width: 42%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 169, 124, .16), transparent);
}
/* Portada solo con texto, alineada con el cuerpo de la página */
.legal-hero__inner { position: relative; z-index: 1; max-width: calc(52rem + var(--gutter) * 2); }
.legal-hero .label { color: var(--champan); }
.legal-hero h1 { margin-top: .9rem; font: 400 clamp(2rem, 4vw, 3rem)/1.06 var(--f-display); letter-spacing: -.01em; }
.legal-hero h1 em { color: var(--champan); }
.legal-hero__lede { margin-top: 1.1rem; max-width: 36rem; font-size: .84rem; line-height: 1.75; color: rgba(243, 233, 215, .76); }
.legal-tabs { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.legal-tabs a {
  padding: .65rem .95rem; border: 1px solid rgba(201, 169, 124, .45);
  font: 500 .58rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--crema);
  transition: background-color .3s, border-color .3s, color .3s;
}
.legal-tabs a:hover { border-color: var(--champan); }
.legal-tabs a[aria-current="page"] { background: var(--champan); border-color: var(--champan); color: var(--noche); }

/* Cuerpo */
.legal { position: relative; padding-block: clamp(44px, 6vw, 76px) clamp(64px, 8vw, 104px); }
.legal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/textura-lino.jpg") center / 520px; mix-blend-mode: multiply; opacity: .2;
}
.legal__inner { position: relative; max-width: calc(52rem + var(--gutter) * 2); }

/* Resumen en tarjetas */
.legal-resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.legal-resumen--tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legal-resumen li {
  position: relative; padding: 1.1rem 1.05rem 1.15rem;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--linea-papel);
  font-size: .72rem; line-height: 1.6; color: rgba(15, 46, 74, .76);
}
.legal-resumen li::before { content: ""; display: block; width: 1.4rem; height: 1px; margin-bottom: .8rem; background: var(--champan); }
.legal-resumen b { display: block; margin-bottom: .3rem; font: 400 .92rem/1.3 var(--f-display); color: var(--azul); }

/* Encabezado de los cuadros */
.legal-controles {
  margin-top: clamp(40px, 5vw, 60px); padding-bottom: .9rem; border-bottom: 1px solid var(--linea-papel);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.legal-controles h2 { font: italic 400 clamp(1.1rem, 1.7vw, 1.3rem)/1.2 var(--f-display); color: var(--roble); }
.legal-controles button {
  flex: none; padding-bottom: .3rem; border-bottom: 1px solid var(--champan);
  font: 500 .58rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--azul);
}
.legal-controles button:hover { color: var(--roble); }

/* Cuadros que se abren */
.clausulas { margin-top: 1.2rem; display: grid; gap: .6rem; }
.clausula { background: rgba(255, 255, 255, .5); border: 1px solid var(--linea-papel); transition: border-color .3s, background-color .3s, box-shadow .4s; }
.clausula:hover { border-color: rgba(139, 94, 60, .42); }
.clausula[open] { background: rgba(255, 255, 255, .8); border-color: rgba(201, 169, 124, .85); box-shadow: 0 24px 40px -34px rgba(62, 36, 25, .6); }
.clausula > summary {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem; cursor: pointer; list-style: none;
}
.clausula > summary::-webkit-details-marker { display: none; }
.clausula__num { font: italic 400 .9rem/1 var(--f-display); color: var(--roble); }
.clausula__titulo { font: 400 .95rem/1.3 var(--f-display); color: var(--azul); }
.clausula__icono { position: relative; width: 1.6rem; height: 1.6rem; border: 1px solid rgba(139, 94, 60, .35); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.clausula__icono::before, .clausula__icono::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .62rem; height: 1px; background: var(--roble);
  transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s;
}
.clausula__icono::after { transform: translate(-50%, -50%) rotate(90deg); }
.clausula > summary:hover .clausula__icono { border-color: var(--roble); }
.clausula[open] .clausula__icono { background: var(--azul); border-color: var(--azul); }
.clausula[open] .clausula__icono::before, .clausula[open] .clausula__icono::after { background: var(--crema); }
.clausula[open] .clausula__icono::after { transform: translate(-50%, -50%) rotate(0deg); }
.clausula__cuerpo { padding: 0 1.1rem 1.2rem calc(1.1rem + 2.1rem + .7rem); font-size: .76rem; line-height: 1.7; color: rgba(15, 46, 74, .84); }
.clausula[open] .clausula__cuerpo { animation: clausula-in .5s var(--ease) both; }
@keyframes clausula-in { from { opacity: 0; transform: translateY(calc(-6px * var(--m))); } to { opacity: 1; transform: none; } }
.clausula__cuerpo > * + * { margin-top: .8rem; }
.clausula__cuerpo strong { font-weight: 600; color: var(--azul); }
/* Solo los enlaces a las políticas, al correo y a WhatsApp se destacan; los demás ("punto 01") se ven como texto */
.clausula__cuerpo a { color: inherit; text-decoration: none; }
.clausula__cuerpo a:is([href*=".html"], [href^="mailto:"], [href*="wa.me"]) { color: var(--roble); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.clausula__cuerpo a:is([href*=".html"], [href^="mailto:"], [href*="wa.me"]):hover { color: var(--azul); }
.clausula__cuerpo ul { display: grid; gap: .5rem; }
.clausula__cuerpo ul li { position: relative; padding-left: 1.2rem; }
.clausula__cuerpo ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: .55rem; height: 1px; background: var(--champan); }
/* Ficha del responsable */
.legal-ficha { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); border-top: 1px solid var(--linea-papel); }
.legal-ficha dt, .legal-ficha dd { margin: 0; padding-block: .6rem; border-bottom: 1px solid var(--linea-papel); }
.legal-ficha dt { padding-top: .72rem; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--roble); }
/* Finalidades con su base legal */
.legal-lista { border-top: 1px solid var(--linea-papel); }
.legal-lista dt { margin: 0; padding-top: .75rem; font-weight: 500; color: var(--azul); }
.legal-lista dd { margin: .15rem 0 0; padding-bottom: .75rem; border-bottom: 1px solid var(--linea-papel); color: rgba(15, 46, 74, .72); }
/* Tabla breve (cookies) */
.legal-tabla { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--linea-papel); }
.legal-tabla dt, .legal-tabla dd { margin: 0; padding-block: .6rem; border-bottom: 1px solid var(--linea-papel); }
.legal-tabla dd { padding-left: 1.2rem; font-weight: 500; color: var(--roble); text-align: right; }

.legal__pie { margin-top: 2.2rem; text-align: center; font-size: .7rem; line-height: 1.7; color: var(--taupe); }
.legal__pie a { color: var(--roble); text-decoration: underline; text-underline-offset: .2em; }

.legal-foot { position: relative; padding-block: 1.5rem; background: var(--noche); color: rgba(243, 233, 215, .6); font-size: .72rem; letter-spacing: .03em; }
.legal-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.legal-foot a { transition: color .3s; }
.legal-foot a:hover, .legal-foot a[aria-current="page"] { color: var(--crema); }

@media (max-width: 960px) {
  .legal-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-resumen--tres { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .legal-top__brand img { width: 108px; }
  .legal-top__back { letter-spacing: .16em; }
  .legal-resumen { grid-template-columns: minmax(0, 1fr); }
  .clausula > summary { grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .55rem; padding: .85rem .95rem; }
  .clausula__cuerpo { padding: 0 1rem 1.2rem; }
  .legal-ficha { grid-template-columns: minmax(0, 1fr); }
  .legal-ficha dt { padding-bottom: 0; border-bottom: 0; }
  .legal-controles { flex-direction: column; align-items: flex-start; gap: .7rem; }
}
