/* Ajustes del sitio real (se cargan después de base.css) */
body::before { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cabecera */
.tools { display: flex; align-items: center; gap: 10px; }
.lang { font: 500 .74rem var(--body); letter-spacing: .2em; color: var(--gold); background: transparent; border: 1px solid var(--rule); padding: 8px 12px; cursor: pointer; transition: background .2s, color .2s; }
.lang:hover { background: var(--gold); color: var(--ink); }
.menu-btn { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--rule); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--gold); transition: transform .25s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
header.top.scrolled { background: rgba(11,10,8,.97); }
.nav li a { position: relative; padding-block: 6px; }
.nav li a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .25s; }
.nav li a:hover::after, .nav li a.active::after { right: 0; }
.nav li a.active { color: var(--gold-hi); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--rule); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 18px; }
  .nav ul.open { display: flex; }
  .nav ul li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(201,162,75,.15); }
  .nav ul li a::after { display: none; }
  .nav { position: relative; }
}

/* Entrada suave al hacer scroll (visible si no hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .logo, .hero .lede, .hero .cta { animation: rise 1s ease both; }
.hero .lede { animation-delay: .2s; }
.hero .cta { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lot .pic, .band img, .story figure, .steps img, .terroir figure { overflow: hidden; }
.lot .pic img, .steps img, .terroir img { transition: transform .8s ease; }
.lot:hover .pic img, .steps li:hover img, .terroir figure:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .logo, .hero .lede, .hero .cta { animation: none; }
  .lot .pic img, .steps img, .terroir img { transition: none; }
}

/* Contacto */
.phone { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.qr img { flex: none; width: 112px; height: auto; background: #fff; padding: 6px; }
.qr > div { display: grid; gap: 12px; justify-items: start; }
.qr { max-width: 420px; }
form label span { display: block; }
input:user-invalid, textarea:user-invalid { border-color: #c4574a; }
.btn[disabled] { opacity: .6; cursor: progress; }
#formNote.err { color: #e59a8f; }
#formNote.ok { color: var(--gold-hi); }
.more { display: block; }
.copy { margin-top: 6px; opacity: .7; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 25; width: 56px; height: 56px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border-radius: 50%; box-shadow: 0 6px 24px rgba(0,0,0,.55); transition: background .2s, transform .2s; }
.wa-float:hover { background: var(--gold-hi); transform: translateY(-2px); }

/* Las imágenes respetan su proporción (los atributos width/height solo reservan espacio) */
img { height: auto; }

/* ===== Revisión de diseño y animación ===== */
[hidden] { display: none !important; }

/* Portada: logo más compacto para ver los botones sin bajar, fondo con zoom lento */
.hero { background: none; overflow: hidden; isolation: isolate; padding-block: clamp(36px, 6vw, 84px) clamp(64px, 9vw, 110px); }
.hero::before { content: ""; position: absolute; inset: -4%; z-index: -1; background: linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.72) 55%, var(--ink) 100%), url("../img/hero.jpg") center 35% / cover; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.hero img.logo { width: min(500px, 84%); }
.hero p.lede { margin-top: 22px; }
.hero .cta { margin-top: 28px; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; width: 22px; height: 38px; margin-left: -11px; border: 1px solid var(--gold); border-radius: 12px; opacity: .8; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold-hi); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Barra de progreso dorada */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform: scaleX(0); transform-origin: 0 50%; }

/* Botones: relleno dorado que barre de izquierda a derecha */
.btn { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 0 100%; transition: background-size .4s ease, color .3s ease, border-color .3s ease; }
.btn:hover { background-color: transparent; background-size: 100% 100%; color: var(--ink); }
.btn.solid { background-image: linear-gradient(var(--gold-hi), var(--gold-hi)); background-color: var(--gold); }
.btn.solid:hover { background-color: var(--gold); border-color: var(--gold-hi); }
.lang:hover { background: var(--gold); color: var(--ink); }

/* Títulos y etiquetas */
.story .text h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.head .label::after, .story .text .label::after, .left .label::after, blockquote .label::after { content: ""; display: block; width: 0; height: 1px; margin-top: 12px; background: var(--gold); transition: width 1s .25s ease; }
.reveal.in .label::after { width: 64px; }

/* Imágenes que se descubren al entrar */
.js .story figure img, .js .band .grid img, .js .steps li img, .js .terroir figure img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1), transform .8s ease; }
.js .story figure.in img, .js .band .grid.in img, .js .steps li.in img, .js .terroir.in figure img { clip-path: inset(0 0 0 0); }
.js .terroir.in figure:nth-child(2) img { transition-delay: .15s; }
.js .terroir.in figure:nth-child(3) img { transition-delay: .3s; }

/* Años: aparecen en cascada */
.js .years div { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .creds.in .years div { opacity: 1; transform: none; }
.js .creds.in .years div:nth-child(2) { transition-delay: .12s; }
.js .creds.in .years div:nth-child(3) { transition-delay: .24s; }
.js .creds.in .years div:nth-child(4) { transition-delay: .36s; }
.js .creds.in .years div:nth-child(5) { transition-delay: .48s; }
@media (max-width: 640px) {
  .years { grid-template-columns: repeat(6, 1fr); }
  .years div { grid-column: span 2; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .years div:nth-child(3) { border-right: 0; }
  .years div:nth-child(4), .years div:nth-child(5) { grid-column: span 3; border-bottom: 0; }
  .years div:nth-child(5) { border-right: 0; }
}

/* Catálogo: brillo dorado al pasar el cursor */
.lot .pic { transition: box-shadow .5s ease, border-color .5s ease; }
.lot:hover .pic { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,162,75,.25), 0 22px 60px rgba(0,0,0,.6); }
dl.spec div { transition: background .3s ease; }
dl.spec div:hover { background: rgba(201,162,75,.07); }
.chips span { transition: background .3s, color .3s, border-color .3s; }
.chips span:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.steps li img { transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1), transform .8s ease; }

/* Contacto */
.direct { color: #d8cfba; max-width: 42ch; }
input, select, textarea { transition: border-color .25s, box-shadow .25s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.btn.busy { pointer-events: none; color: var(--ink); background-size: 100% 100%; position: relative; }
.btn.busy::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 12px; vertical-align: -2px; border: 2px solid rgba(11,10,8,.35); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thanks { display: grid; gap: 16px; justify-items: start; align-content: center; border: 1px solid var(--rule); padding: clamp(28px, 5vw, 56px); color: var(--gold); }
.thanks h3 { color: var(--cream); }
.thanks p { color: #d8cfba; max-width: 40ch; }
.thanks svg circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1s ease forwards; }
.thanks svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* WhatsApp con pulso */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 520px) { .wa-float { width: 48px; height: 48px; } .wa-float svg { width: 24px; height: 24px; } }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .scroll-cue span, .wa-float::before, .thanks svg circle, .thanks svg path { animation: none; }
  .thanks svg circle, .thanks svg path { stroke-dashoffset: 0; }
  .js .story figure img, .js .band .grid img, .js .steps li img, .js .terroir figure img { clip-path: none; transition: none; }
  .js .years div { opacity: 1; transform: none; transition: none; }
  .head .label::after, .story .text .label::after, .left .label::after, blockquote .label::after { width: 64px; transition: none; }
  .btn { transition: none; }
}
