:root {
  --noche: #120a0b; --bodega: #1c0f11; --vino: #6e1526; --vino-vivo: #8f2236; --crema: #efe6d6; --papel: #e6dac4;
  --oro: #c3a06a; --oro-suave: #8d7550; --humo: #a89a8a; --linea: rgba(239, 230, 214, .14);
  --display: "Cormorant Garamond", "Times New Roman", serif; --sans: "Manrope", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--noche); color: var(--crema); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.envoltura { width: min(1200px, 100% - 40px); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.oro { color: var(--oro); }
.titular { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.titular em { font-style: italic; color: var(--oro); }
h2.titular { font-size: clamp(42px, 6.2vw, 92px); }
.bajada { color: var(--humo); max-width: 56ch; font-size: 18px; }
.seccion { padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.cab-seccion { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.cab-seccion.centro { justify-items: center; text-align: center; }

/* botones */
.boton { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--crema); color: var(--noche); font-weight: 700; font-size: 15px; transition: transform .25s, background .25s; }
.boton:hover { transform: translateY(-2px); background: #fff; }
.boton.oro { background: var(--oro); color: var(--noche); }
.boton.linea { background: transparent; color: var(--crema); box-shadow: inset 0 0 0 1px var(--linea); }
.boton.linea:hover { box-shadow: inset 0 0 0 1px var(--oro); background: transparent; }
.boton .fl { transition: transform .25s; }
.boton:hover .fl { transform: translateX(4px); }

/* grano de película fijo, el toque vintage en todo el sitio */
.pelicula { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grano 1s steps(6) infinite; }
@keyframes grano { 0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-3%); } 60% { transform: translate(-3%,-6%); } 80% { transform: translate(6%,5%); } 100% { transform: translate(0,0); } }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; transition: background .4s, padding .4s, box-shadow .4s; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18, 10, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); opacity: 0; transition: opacity .4s; }
.nav.solida { padding-block: 13px; }
.nav.solida::before { opacity: 1; }
.nav .marca { font-family: var(--display); font-size: 30px; font-style: italic; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.nav .marca svg { width: 18px; height: 26px; }
.nav nav { display: flex; gap: 30px; align-items: center; }
.nav nav a { font-size: 14.5px; font-weight: 600; color: rgba(239, 230, 214, .82); transition: color .2s; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--oro); }
.nav .pedido { display: inline-flex; align-items: center; gap: 8px; background: var(--crema); color: var(--noche); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14px; }
.nav .pedido b { background: var(--vino); color: var(--crema); border-radius: 999px; min-width: 21px; height: 21px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.nav .menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); }
.nav .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--crema); margin: 4px auto; }
@media (max-width: 900px) {
  .nav { padding: 14px 16px; }
  .nav nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; background: var(--noche); flex-direction: column; justify-content: center; gap: 26px; transform: translateY(-100%); visibility: hidden; transition: transform .5s cubic-bezier(.7,0,.2,1), visibility 0s .5s; }
  .nav nav a { font-family: var(--display); font-size: 40px; font-style: italic; color: var(--crema); font-weight: 500; }
  .nav.abierta nav { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.7,0,.2,1); }
  .nav .menu-btn { display: block; position: relative; z-index: 2; }
  .nav .marca { position: relative; z-index: 2; }
  .nav .menu-btn span { transition: transform .3s; }
  .nav.abierta .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.abierta .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .nav .pedido { position: relative; z-index: 2; margin-left: auto; }
}

/* aparición al scrollear */
.sube { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.sube.visto { opacity: 1; transform: none; }
.letras .p { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.letras .p > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.letras.visto .p > span { transform: none; }

/* tarjetas de vino (catálogo y maridaje) */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.vino { position: relative; border-radius: 18px; background: linear-gradient(180deg, rgba(239,230,214,.05), rgba(239,230,214,.015)); box-shadow: inset 0 0 0 1px var(--linea); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s, box-shadow .35s; }
.vino:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(195,160,106,.45); }
.vino .foto { height: 230px; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, rgba(143,34,54,.35), transparent 65%); border-radius: 12px; margin-bottom: 4px; }
.vino .foto img { height: 210px; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); transition: transform .5s; }
.vino:hover .foto img { transform: translateY(-6px) rotate(-2deg); }
.vino h3 { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.05; }
.vino .bodega { color: var(--humo); font-size: 14px; }
.vino .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vino .chips span { font-size: 12px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); color: var(--papel); }
.vino .pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.vino .precio { font-family: var(--display); font-size: 26px; font-weight: 600; }
.vino .sumar { background: var(--oro); color: var(--noche); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 9px 16px; transition: transform .2s; }
.vino .sumar:hover { transform: scale(1.04); }
.vino .sumar.ok { background: var(--crema); }

/* pie */
.pie-sitio { border-top: 1px solid var(--linea); padding: 70px 0 34px; background: var(--bodega); }
.pie-sitio .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.pie-sitio .marca-gr { font-family: var(--display); font-style: italic; font-size: 56px; line-height: 1; }
.pie-sitio h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin-bottom: 14px; }
.pie-sitio li { list-style: none; margin-bottom: 8px; color: var(--humo); font-size: 15px; }
.pie-sitio li a:hover { color: var(--crema); }
.leyenda { margin-top: 50px; padding: 16px 0 0; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--humo); font-size: 13px; }
.leyenda strong { color: var(--crema); font-weight: 700; letter-spacing: .02em; }
@media (max-width: 800px) { .pie-sitio .cols { grid-template-columns: 1fr 1fr; } .pie-sitio .cols > :first-child { grid-column: 1 / -1; } }

/* pedido (carrito simple que se manda por WhatsApp) */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 80; background: var(--bodega); box-shadow: -1px 0 0 var(--linea), -30px 0 60px rgba(0,0,0,.5); transform: translateX(105%); transition: transform .5s cubic-bezier(.7,0,.2,1); display: flex; flex-direction: column; }
.panel.abierto { transform: none; }
.panel header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--linea); }
.panel header h3 { font-family: var(--display); font-size: 32px; font-style: italic; font-weight: 500; }
.panel .cerrar { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); font-size: 20px; }
.panel .lista { flex: 1; overflow: auto; padding: 10px 24px; }
.panel .item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.panel .item b { font-weight: 700; }
.panel .item small { color: var(--humo); }
.panel .cant { display: flex; align-items: center; gap: 10px; grid-row: span 2; }
.panel .cant button { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); }
.panel .vacio { color: var(--humo); padding: 30px 0; }
.panel footer { padding: 20px 24px 26px; border-top: 1px solid var(--linea); display: grid; gap: 14px; }
.panel .total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 28px; }
.panel .boton { justify-content: center; }
.velo-panel { position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .4s; }
.velo-panel.abierto { opacity: 1; pointer-events: auto; }

/* aviso de edad (páginas internas; la portada lo integra a la carga) */
.edad { position: fixed; inset: 0; z-index: 120; background: var(--noche); display: grid; place-items: center; text-align: center; padding: 24px; }
.edad[hidden] { display: none; }
.edad .caja { display: grid; gap: 20px; justify-items: center; max-width: 520px; }
.edad .acciones { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.edad .no-entra { color: var(--humo); }

/* cabecera de páginas internas */
.portada-int { padding: 170px 0 70px; position: relative; overflow: hidden; }
.portada-int h1 { font-size: clamp(56px, 9vw, 140px); }
.portada-int .bajada { margin-top: 20px; }
.portada-int .fondo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .28; filter: saturate(.8); }
.portada-int .fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,11,.4), var(--noche)); }

@media (prefers-reduced-motion: reduce) {
  .sube, .letras .p > span { transition: none; opacity: 1; transform: none; }
  .pelicula { animation: none; }
  html { scroll-behavior: auto; }
}
