/* ==========================================================================
   Portada — Home.dc.html
   ========================================================================== */

/* Hero: la bodega por fuera -------------------------------------------- */
.lh-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1080px; overflow: hidden; background: var(--bg-page); }
.lh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transform-origin: 40% 80%; animation: lhKen 26s var(--ease-out) forwards; }
/* Arriba, sombra para el menú y el texto sobre el cielo; abajo, fundido a arena hacia «La bodega» */
.lh-hero__scrim { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(23,17,11,.5) 0%, rgba(23,17,11,.22) 22%, rgba(23,17,11,.12) 48%, rgba(23,17,11,0) 66%),
	linear-gradient(180deg, rgba(250,245,234,0) 76%, rgba(250,245,234,.7) 90%, var(--bg-page) 100%); }
.lh-hero__content {
	/* En el cielo de la derecha: el edificio y su letrero quedan libres a la izquierda */
	position: absolute; top: 0; left: 69%; right: var(--container-pad);
	display: flex; flex-direction: column; align-items: flex-start;
	gap: clamp(12px, 2.4vh, 22px); padding-top: calc(72px + clamp(40px, 13vh, 150px)); text-align: left;
	animation: lhFade 1s var(--ease-out) .1s both;
}
.lh-hero__eyebrow { color: var(--arena-50); text-shadow: 0 1px 12px rgba(23,17,11,.45); }
.lh-hero__logo { margin: 0; line-height: 0; }
.lh-hero__logo img { width: min(clamp(200px, 21vw, 340px), 26vh, 100%); height: auto; filter: drop-shadow(0 6px 24px rgba(23,17,11,.5)); }
.lh-hero__rule { border: none; border-top: 1px solid rgba(250,245,234,.55); width: 64px; margin: 0; }
.lh-hero__line { margin: 0; max-width: 820px; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.65vw, 28px); line-height: 1.3; color: var(--arena-50); text-shadow: 0 2px 18px rgba(23,17,11,.5); }
.lh-hero__line span { display: block; }
.lh-hero__cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.lh-hero__cue > span:first-child { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--basalto-700); }
.lh-hero__cue-line { display: block; width: 1px; height: 46px; overflow: hidden; background: rgba(36,28,21,.18); }
.lh-hero__cue-line span { display: block; width: 1px; height: 100%; background: var(--basalto-700); animation: lhDrop 2.3s var(--ease-out) infinite; }
.lh-hero + .lh-intro { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) {
	/* En vertical el cielo está arriba: texto centrado y compacto sobre el tejado */
	.lh-hero__content { left: 0; right: 0; width: auto; align-items: center; text-align: center; padding: calc(72px + clamp(20px, 4vh, 40px)) var(--container-pad) 0; gap: 12px; }
	.lh-hero__logo img { width: auto; height: min(17vh, 160px); }
	.lh-hero__line { font-size: clamp(18px, 4.6vw, 24px); }
	.lh-hero__scrim { background:
		linear-gradient(180deg, rgba(23,17,11,.55) 0%, rgba(23,17,11,.3) 30%, rgba(23,17,11,.08) 55%, rgba(23,17,11,0) 66%),
		linear-gradient(180deg, rgba(250,245,234,0) 78%, rgba(250,245,234,.7) 91%, var(--bg-page) 100%); }
}
@media (max-width: 700px) {
	.lh-hero { min-height: 560px; }
	.lh-hero__img { object-position: 38% 50%; }
	.lh-hero__eyebrow { font-size: 10.5px; letter-spacing: .16em; }
	.lh-hero__line span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .lh-hero__img, .lh-hero__content, .lh-hero__cue-line span { animation: none; } }

/* Introducción ----------------------------------------------------------- */
.lh-intro__grid { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.lh-intro__aside { display: flex; flex-direction: column; gap: 36px; }
.lh-intro__lead { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--basalto-700); }
.lh-intro__stats { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.lh-stat { border-top: 1px solid var(--border-strong); padding-top: 18px; }
.lh-stat__num { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--basalto-900); }
.lh-stat__label { margin-top: 10px; font-size: var(--text-small); color: var(--text-secondary); }

/* Cordón ----------------------------------------------------------------- */
.lh-cordon__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.lh-cordon__photo { height: clamp(420px, 52vw, 580px); }
.lh-cordon__text { display: flex; flex-direction: column; gap: 28px; }
.lh-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lh-points__item { border-top: 1px solid var(--border-subtle); padding: 18px 0; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.lh-points__item:last-child { border-bottom: 1px solid var(--border-subtle); }
.lh-points__num { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--tierra-600); }
.lh-points strong { display: block; font-size: 15px; font-weight: 600; color: var(--basalto-900); }
.lh-points span:not(.lh-points__num) { display: block; margin-top: 4px; font-size: var(--text-small); line-height: var(--lh-small); color: var(--text-secondary); }

/* Banda antepasados ------------------------------------------------------ */
.lh-band { position: relative; height: 62vh; min-height: 420px; overflow: hidden; }
.lh-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-band__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.52) 0%, rgba(23,17,11,.56) 45%, rgba(23,17,11,.78) 100%); }
.lh-band__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--container-pad); text-align: center; }
.lh-band__script { font-family: var(--font-script); font-size: clamp(24px, 2.6vw, 32px); color: var(--arena-200); }
.lh-band__quote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; color: var(--arena-50); max-width: 820px; }

/* La gama ---------------------------------------------------------------- */
.lh-gama { overflow-x: clip; } /* el nombre grande del vino no cabe en el móvil y ensanchaba la página: se recorta en el borde */
.lh-gama__grid { margin-top: 56px; display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr) minmax(230px, 330px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lh-gama__list { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; } /* por delante del nombre grande del vino, que puede ser más ancho que su columna */
.lh-gama__detail { position: relative; z-index: 1; }
.lh-gama__name {
	display: flex; align-items: center; width: 100%; text-align: left; background: none; cursor: pointer; border: none;
	border-top: 1px solid var(--border-subtle); padding: 16px 4px; margin: 0; font-family: var(--font-display); font-weight: 500;
	font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; color: var(--basalto-400); transition: color var(--dur-fast) var(--ease-out);
}
.lh-gama__name:last-child { border-bottom: 1px solid var(--border-subtle); }
.lh-gama__name:hover { color: var(--basalto-700); }
.lh-gama__name.is-active { color: var(--basalto-900); }
.lh-gama__mark { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--caldera-600); margin-right: 12px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.lh-gama__name.is-active .lh-gama__mark { opacity: 1; }
.lh-gama__short { display: none; } /* nombre corto: solo en la fila del móvil */
.lh-gama__hint { margin: 18px 4px 0; font-size: var(--text-caption); color: var(--text-muted); }
.lh-gama__stage { container-type: inline-size; position: relative; min-height: clamp(440px, 50vw, 580px); display: flex; align-items: flex-end; justify-content: center; }
.lh-gama__script { position: absolute; top: 4%; left: 50%; translate: -50% 0; /* no «transform»: lo usa la animación al cambiar de vino */ font-family: var(--font-script); font-size: min(clamp(54px, 7.5vw, 104px), calc(230cqi / var(--len, 10))); /* nombre corto que cabe siempre en la columna: la letra mide ~0,38 em por carácter */ color: var(--arena-200); white-space: nowrap; pointer-events: none; line-height: 1.2; }
.lh-gama__bottle { position: relative; height: clamp(400px, 44vw, 530px); width: min(320px, 70%); object-fit: contain; object-position: center bottom; filter: var(--shadow-bottle); }
.lh-gama__detail .lh-eyebrow { color: var(--caldera-600); }
.lh-gama__title { margin: 12px 0 14px; font-size: var(--text-h2); line-height: var(--lh-h2); }
.lh-gama__actions { margin-top: 24px; border-top: 1px solid var(--border-subtle); padding-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lh-gama__actions [data-gama-add]:empty { display: none; } /* modo catálogo: sin botón de compra */

/* Descenso submarino ----------------------------------------------------- */
.lh-dive { position: relative; height: 420vh; background: var(--arena-100); }
.lh-dive__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--arena-100); }
.admin-bar .lh-dive__stage { top: 32px; height: calc(100vh - 32px); }
.lh-dive__chapter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 var(--container-pad); text-align: center; }
.lh-dive__chapter--hidden { opacity: 0; gap: 20px; }
.lh-dive__big { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.18; color: var(--basalto-900); max-width: 760px; }
.lh-dive__big--inverse { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; color: var(--arena-50); max-width: 820px; }
.lh-dive__lead { margin: 0; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--text-inverse-muted); max-width: 600px; }
.lh-dive__bubbles { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.lh-dive__bubbles span { position: absolute; bottom: -40px; border-radius: 50%; border: 1px solid rgba(220,238,240,.4); background: rgba(220,238,240,.08); animation-name: lhBubble; animation-timing-function: linear; animation-iteration-count: infinite; }
.lh-dive__photo { position: absolute; inset: 0; opacity: 0; }
.lh-dive__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.lh-dive__c2 { position: absolute; left: var(--container-pad); right: var(--container-pad); bottom: 9vh; opacity: 0; }
/* Sobre la foto de las jaulas el turquesa del tono marino no se lee: antetítulo claro y con sombra suave */
.lh-dive__c2 .lh-heading__eyebrow { color: var(--atlantico-100); text-shadow: 0 1px 10px rgba(18,53,64,.7); }
.lh-container--bare { width: 100%; }
.lh-dive__text { margin: 20px 0 0; font-size: var(--text-body); line-height: var(--lh-body); color: var(--arena-100); max-width: 560px; }
.lh-dive__rail { position: absolute; left: var(--container-pad); top: 50%; transform: translateY(-50%); height: 52vh; display: flex; opacity: 0; }
.lh-dive__rail-line { position: relative; border-left: 1px solid rgba(250,245,234,.35); }
.lh-dive__rail-line span { position: absolute; left: -4px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--arena-50); }
.lh-dive__rail-marks { display: flex; flex-direction: column; justify-content: space-between; padding-left: 12px; font-size: 11px; letter-spacing: .18em; font-weight: 600; color: rgba(250,245,234,.65); }
.lh-dive__depth { position: absolute; right: var(--container-pad); bottom: 6vh; text-align: right; opacity: 0; }
.lh-dive__depth-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: rgba(250,245,234,.65); }
.lh-dive__depth-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(56px, 7vw, 104px); line-height: 1; color: var(--arena-50); }

/* Movimiento reducido: el descenso se muestra como un bloque estático */
.lh-dive.is-static { height: auto; }
.lh-dive.is-static .lh-dive__stage { position: relative; height: 100vh; min-height: 560px; background: var(--atlantico-900); }
.lh-dive.is-static [data-dive-c0], .lh-dive.is-static [data-dive-c1], .lh-dive.is-static [data-dive-bubbles], .lh-dive.is-static [data-dive-rail] { display: none; }
.lh-dive.is-static .lh-dive__photo, .lh-dive.is-static .lh-dive__c2, .lh-dive.is-static .lh-dive__depth { opacity: 1; }
.lh-dive.is-static .lh-dive__photo img { transform: none; }

/* Línea marina ----------------------------------------------------------- */
.lh-marina { position: relative; overflow: hidden; background: var(--surface-marino); }
.lh-marina__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.lh-marina__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,53,64,.92) 0%, rgba(18,53,64,.7) 45%, rgba(18,53,64,.94) 100%); }
.lh-marina__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: calc(3 * 380px + 2 * 24px); margin-inline: auto; } /* mismo ancho que la fila de tarjetas (.lh-card-row) */
.lh-marina__photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: var(--focus, 50% 50%); border-radius: var(--radius-md); display: block; } /* encuadre de cada una en linea-marina.php */
.lh-marina__foot { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lh-marina__foot p { margin: 0; font-size: var(--text-small); line-height: var(--lh-small); color: var(--text-inverse-muted); max-width: 560px; }

/* Experiencias (portada) ------------------------------------------------- */
.lh-feature { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); min-height: clamp(420px, 48vw, 560px); display: flex; align-items: flex-end; }
.lh-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-feature__body { position: relative; width: 100%; padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lh-feature__title { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; color: var(--arena-50); max-width: 680px; }
.lh-feature__title a { color: inherit; text-decoration: none; }
.lh-feature__desc { margin: 0; font-size: var(--text-body); line-height: var(--lh-body); color: var(--arena-100); max-width: 560px; text-shadow: 0 1px 8px rgba(23,17,11,.45); }
.lh-feature__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; color: var(--arena-50); }
.lh-feature__fact { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lh-feature__price { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* Variedades ------------------------------------------------------------- */
.lh-vars__wrap { border-top: 1px solid var(--border-subtle); padding-top: var(--space-9); }
.lh-vars__list { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; }
.lh-vars__item { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 104px; }
.lh-vars__thumb { display: block; width: 84px; height: 84px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: var(--shadow-card); transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.lh-vars__item.is-active .lh-vars__thumb { box-shadow: 0 0 0 3px var(--arena-50), 0 0 0 5px var(--caldera-600), var(--shadow-card); transform: translateY(-2px); }
.lh-vars__name { font-size: var(--text-caption); text-align: center; line-height: 1.3; color: var(--text-secondary); transition: color var(--dur-fast) var(--ease-out); }
.lh-vars__item.is-active .lh-vars__name { color: var(--caldera-700); font-weight: 600; }
.lh-vars__panel { margin: 44px auto 0; max-width: 860px; background: var(--arena-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: clamp(28px, 4vw, 44px); }
.lh-vars__inner { display: grid; grid-template-columns: minmax(120px, 168px) 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.lh-vars__photo { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background-size: cover; background-position: center; box-shadow: var(--shadow-card); }
.lh-vars__title { margin: 10px 0 12px; font-size: var(--text-h2); line-height: var(--lh-h2); }

/* Contacto --------------------------------------------------------------- */
.lh-contact__grid { display: grid; grid-template-columns: 1fr minmax(300px, 520px); gap: clamp(40px, 6vw, 88px); align-items: center; }
.lh-contact__photo { height: clamp(360px, 44vw, 520px); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
	.lh-intro__grid, .lh-cordon__grid, .lh-contact__grid { grid-template-columns: 1fr; }
	.lh-intro__aside { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
	.lh-gama__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } /* minmax(0,…): la fila de vinos se desplaza dentro, no ensancha la página */
	/* Fila de pestañas a todo el ancho: nombres cortos, línea teja bajo el activo y bordes difuminados que dicen «hay más» */
	.lh-gama__list [role="tablist"] {
		position: relative; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
		margin: 0 calc(-1 * var(--container-pad)); padding: 0 var(--container-pad); border-bottom: 1px solid var(--border-subtle);
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--container-pad), #000 calc(100% - var(--container-pad)), transparent);
		mask-image: linear-gradient(90deg, transparent, #000 var(--container-pad), #000 calc(100% - var(--container-pad)), transparent);
	}
	.lh-gama__list [role="tablist"]::-webkit-scrollbar { display: none; }
	.lh-gama__name { position: relative; flex: none; width: auto; white-space: nowrap; scroll-snap-align: center; border: 0; padding: 10px 2px 14px; font-size: 23px; }
	.lh-gama__name:last-child { border-bottom: 0; }
	.lh-gama__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--caldera-600); transform: scaleX(0); transition: transform var(--dur-med) var(--ease-out); }
	.lh-gama__name.is-active::after { transform: scaleX(1); }
	.lh-gama__mark, .lh-gama__full { display: none; }
	.lh-gama__short { display: inline; }
	.lh-gama__hint { display: none; }
	.lh-gama__stage { touch-action: pan-y pinch-zoom; } /* deslizar la botella a los lados cambia de vino (home.js) */
	.lh-gama__stage { min-height: 380px; }
	.lh-gama__bottle { height: 360px; }
	.lh-dive__rail { display: none; }
	.lh-dive__depth { bottom: auto; top: 12vh; }
}
@media (max-width: 640px) {
	.lh-intro__aside .lh-stamp { display: none; }
	.lh-cordon__photo { height: 360px; }
	.lh-vars__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.lh-vars__photo { max-width: 140px; }
	.lh-vars__list { gap: 20px 12px; }
	.lh-vars__item { width: 88px; }
	.lh-vars__thumb { width: 72px; height: 72px; }
	.lh-dive__depth-num { font-size: 56px; }
	.lh-contact__photo { height: 300px; }
	/* Las tres fotos marinas, en tira de miniaturas en vez de una debajo de otra */
	.lh-marina__photos { gap: 8px; }
	.lh-marina__photo { aspect-ratio: 1 / 1; object-position: var(--focus-sm, var(--focus, 50% 50%)); border-radius: var(--radius-sm); }
}
