/* =========================================================
   Lluvia Dorada · portada (landing)
   ========================================================= */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #2a2200; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -4; }
.hero__bg img { object-fit: cover; object-position: center top; }
.hero__shade { position: absolute; inset: 0; z-index: -3; background:
  radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 60%),
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.7) 100%); }
.hero__rain { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__rain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 120px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero__glass {
  position: relative; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(10,8,0,.58) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__glass { background: linear-gradient(135deg, rgba(0,0,0,.86), rgba(12,10,0,.8)); }
}
.hero__claim { font-family: var(--f-title); font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.12; margin-bottom: 22px; color: var(--white); }
.hero__title { margin-bottom: 30px; line-height: 1.1; }
.hero__brand { display: inline-block; font-family: var(--f-title); font-weight: 600; font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); line-height: 1; color: var(--gold-light);
  background: linear-gradient(100deg, #F8E58C 0%, #E7C33A 35%, #FFF3B8 50%, #D9B21E 65%, #F3D86A 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 6s 1.5s linear 2; }
/* La frase se ajusta al ancho del panel para ocupar una sola línea (unidades de contenedor);
   en móviles muy estrechos se reparte en dos líneas equilibradas */
.hero__glass { container-type: inline-size; }
.hero__desc { display: block; margin-top: 12px; font-family: var(--f-sub); font-weight: 300; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-size: clamp(12px, 4.1cqi, 1.4rem); letter-spacing: 0; line-height: 1.3; text-wrap: balance; color: var(--white); }
@keyframes shine { to { background-position: -220% 0; } }
.hero__product { position: relative; justify-self: center; width: min(100%, 400px); will-change: transform; transition: transform .6s var(--ease); }
.hero__bottle { width: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.65)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.2deg); } }
.sticker--a { top: 16%; left: -2%; transform: rotate(-9deg); }
.sticker--b { bottom: 18%; right: 2%; transform: rotate(7deg); background: var(--white); color: var(--black); }
@media (max-width: 899px) {
  .hero { align-items: flex-end; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 40px; gap: 8px; }
  .hero__product { order: -1; width: min(52vw, 300px); margin-bottom: -28px; z-index: -1; }
  .hero__glass { padding: 26px clamp(16px, 4.5vw, 32px); }
  .sticker { font-size: 11px; padding: 8px 12px; }
  .sticker--a { left: -24%; top: 30%; }
  .sticker--b { right: -22%; bottom: 34%; }
}

/* ---------- Franja dorada + marquee ---------- */
.band { position: relative; background: var(--gold); color: var(--black); padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: url("../img/textura-brillo-dorado.webp") center/cover; mix-blend-mode: soft-light; opacity: .35; pointer-events: none; }
.band .wrap { position: relative; }
.band__title { font-family: var(--f-title); font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); line-height: 1.18; max-width: 1000px; margin: 0 auto; text-align: center; color: var(--black); }
.marquee { position: relative; margin-top: clamp(48px, 7vw, 80px); background: var(--black); color: var(--gold); padding: 18px 0; transform: rotate(-1.6deg) scale(1.04); transform-origin: center; overflow: hidden; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--f-title); font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1; color: var(--white); }
.marquee i { font-style: normal; color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark p { color: var(--grey); }
.section--dark strong { color: var(--white); }
.section--gold { background: var(--gold); color: var(--black); }
.section--gold h2, .section--gold .lead { color: var(--black); }
.section--gold .eyebrow { color: var(--black); }
.lead { font-family: var(--f-sub); font-weight: 300; font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); line-height: 1.6; max-width: 820px; }
.section--dark .lead { color: var(--white); }

/* ¿Qué es? */
.stats { list-style: none; padding: 0; margin: 44px 0 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { position: relative; padding: 28px 18px; text-align: center; border-radius: var(--radius); border: 1px solid rgba(193,160,0,.55); background: linear-gradient(180deg, rgba(193,160,0,.08), rgba(193,160,0,0)); transition: transform .4s var(--ease), border-color .3s; }
.stat:nth-child(odd) { transform: rotate(-1.5deg); }
.stat:nth-child(even) { transform: rotate(1.5deg); }
.stat:hover { transform: rotate(0) translateY(-4px); border-color: var(--gold); }
.stat__v { display: block; font-family: var(--f-title); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--gold); }
.stat__l { display: block; margin-top: 8px; font-family: var(--f-label); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--white); }
.ficha { background: #0d0d0d; border: 1px solid #222; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); }
.ficha h3 { color: var(--white); margin-bottom: 18px; }
.ficha__list { display: grid; grid-template-columns: 210px 1fr; margin: 0; border-top: 1px solid var(--line); }
.ficha__list dt, .ficha__list dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.ficha__list dt { font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); padding-top: 18px; }
.ficha__list dd { color: var(--grey); font-size: 15px; }
.ficha__list dd strong { color: var(--white); }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ficha__list { grid-template-columns: 1fr; }
  .ficha__list dt { border-bottom: 0; padding-bottom: 0; }
}

/* Frases sobre imagen (parallax) */
.quote { position: relative; min-height: clamp(420px, 70vh, 680px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #111; }
.quote__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.25) 100%); }
.quote__inner { position: relative; }
.quote__text { font-family: var(--f-title); font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.1; max-width: 760px; margin: 0; color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.quote--sunset .quote__media img { object-position: center 40%; }
@media (max-width: 767px) { .quote:not(.quote--sunset) .quote__media img { object-position: 62% center; } }
.quote--sunset::after { background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.3) 100%); }
.quote--sunset { align-items: flex-end; padding-bottom: clamp(48px, 7vw, 80px); }

/* Bloques partidos */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split__media { position: relative; overflow: hidden; }
.split__media picture, .split__media img { width: 100%; height: 100%; }
.split__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.split:hover .split__media img { transform: scale(1.04); }
.split__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.split__panel h2 { max-width: 520px; }
.split__panel--gold { background: var(--gold); color: var(--black); }
.split__panel--gold h2 { color: var(--black); }
.split__panel--dark { background: var(--black); }
.split__logo { width: 130px; height: 130px; margin: 6px 0 22px; }
.split__panel--gold .split__logo { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.split__note { font-family: var(--f-sub); font-weight: 300; font-size: 14px; margin: 0; }
.split__panel--dark .split__note { color: var(--grey); }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .split--reverse .split__media { order: -1; }
}

/* Cómo tomar */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 32px; }
.card { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 34px 28px 32px; transition: transform .45s var(--ease), box-shadow .45s; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); transform-style: preserve-3d; }
.card:hover { box-shadow: 0 34px 60px -26px rgba(0,0,0,.75); }
.card__n { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--gold); color: var(--black); font-family: var(--f-title); font-size: 1.6rem; margin-bottom: 20px; transform: rotate(-8deg); }
.card h3 { color: var(--white); margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; margin: 0; }
.note { font-family: var(--f-sub); font-weight: 400; font-size: 14px; color: var(--black); margin: 0; }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; } }

/* Compra */
.buy { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--white); }
.buy__panel { background: var(--gold); color: var(--black); padding: clamp(56px, 8vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; position: relative; z-index: 1; }
.buy__kicker { font-family: var(--f-title); font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.5rem); line-height: 1; margin-bottom: 18px; transform: rotate(-3deg); }
.buy__panel h2 { color: var(--black); max-width: 520px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); margin-bottom: 30px; }
.buy__media { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 48px); background: var(--white); }
.buy__media img { width: 100%; max-width: 760px; }
.sticker--pack { top: 12%; right: 8%; transform: rotate(8deg); background: var(--black); color: var(--gold-light); }
@media (max-width: 899px) {
  .buy { grid-template-columns: 1fr; }
  .buy__panel { border-radius: 0; }
  .sticker--pack { top: auto; bottom: 6%; right: 6%; }
}

/* Galería */
.gallery { background: var(--black); padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); }
.gallery__head { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.gallery__controls { display: flex; gap: 10px; }
.gallery__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: var(--white); font-size: 20px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.gallery__btn:hover, .gallery__btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.gallery__track { list-style: none; margin: 0; padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: thin; scrollbar-color: var(--gold) #222; overscroll-behavior-x: contain; }
.gallery__item { flex: 0 0 auto; width: min(78vw, 340px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease); }
.gallery__item:nth-child(odd) { transform: rotate(-1.2deg); }
.gallery__item:nth-child(even) { transform: rotate(1.2deg) translateY(10px); }
.gallery__item:hover { transform: rotate(0) scale(1.02); }
.gallery__item img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); color: var(--white); }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--f-title); font-size: 26px; line-height: 1; color: var(--gold); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--black); }
.faq summary:hover h3 { color: var(--gold-light); }
.faq__a { padding: 0 0 22px; max-width: 860px; }
.faq__a p { margin: 0; }
.faq a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Hostelería */
.pro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.pro .lead { margin-bottom: 30px; }
.specs { list-style: none; margin: 0; padding: 8px 0; background: var(--black); border-radius: var(--radius-lg); transform: rotate(1.5deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.specs li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--grey); }
.specs li:last-child { border-bottom: 0; }
.specs li span { font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
@media (max-width: 899px) { .pro { grid-template-columns: 1fr; gap: 36px; } }

/* Contacto */
.contact { background: #0a0a0a; padding: clamp(64px, 9vw, 104px) 0; border-top: 1px solid #1c1c1c; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact__title { font-family: var(--f-title); font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; color: var(--white); margin-bottom: 18px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact__list a { display: inline-flex; align-items: center; gap: 14px; padding: 8px 0; min-height: 44px; text-decoration: none; color: var(--grey); font-size: 1.05rem; transition: color .3s; }
.contact__list a:hover { color: var(--gold-light); }
.contact__list svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }
.contact__list svg.icon-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 767px) { .contact__grid { grid-template-columns: 1fr; } }

/* Contenido adicional escrito con bloques en la página «Inicio» */
.home-extra { background: var(--black); padding: clamp(64px, 9vw, 104px) 0; }

/* ---------- Rendimiento: el navegador no maqueta ni pinta lo que está fuera de pantalla ---------- */
.section, .quote, .split, .buy, .gallery, .contact, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (prefers-reduced-motion: reduce) { .marquee__track { transform: none; } }
