/*
 * Wine Rhapsody — hoja de estilos.
 * Paleta burdeo / marfil / arena. Títulos serif editoriales + cuerpo sans moderno.
 * Traducción a CSS puro del sistema de diseño original (Tailwind).
 */

:root {
  --radius: 0.25rem;
  --radius-sm: 0.125rem;

  --wine: oklch(0.34 0.108 12.5);
  --wine-deep: oklch(0.215 0.072 8);
  --sand: oklch(0.822 0.042 78);
  --ivory: oklch(0.955 0.013 85);
  --on-dark: oklch(0.98 0.006 85);
  --on-dark-muted: oklch(0.8 0.018 80);

  --background: oklch(0.982 0.007 85);
  --foreground: oklch(0.185 0 0);
  --card: oklch(1 0 0);
  --primary: oklch(0.34 0.108 12.5);
  --primary-foreground: oklch(0.98 0.006 85);
  --secondary: oklch(0.955 0.013 85);
  --secondary-foreground: oklch(0.34 0.108 12.5);
  --muted-foreground: oklch(0.48 0.014 60);
  --accent: oklch(0.822 0.042 78);
  --accent-foreground: oklch(0.215 0.072 8);
  --destructive: oklch(0.52 0.19 25);
  --success: oklch(0.45 0.09 150);
  --border: oklch(0.885 0.018 82);

  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 1px 2px oklch(0.21 0.075 8 / 0.06), 0 12px 32px -18px oklch(0.21 0.075 8 / 0.28);
  --shadow-lift: 0 2px 4px oklch(0.21 0.075 8 / 0.08), 0 28px 60px -28px oklch(0.21 0.075 8 / 0.4);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: 84rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ------------------------------------------------------------ Tipografía */
.eyebrow { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4; }
.display-lg { font-family: var(--font-display); font-size: 1.25rem; }
.display-xl { font-family: var(--font-display); font-size: 1.25rem; }
.display-2 { font-family: var(--font-display); font-size: 1.5rem; }
.display-3 { font-family: var(--font-display); font-size: 1.875rem; }
.text-xs { font-size: 0.75rem; line-height: 1.5; }
.text-11 { font-size: 0.6875rem; }
.text-13 { font-size: 0.8125rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.65; }
.font-medium { font-weight: 500; }
.leading-none { line-height: 1; }
.muted { color: var(--muted-foreground); }
.on-dark-muted { color: var(--on-dark-muted); }
.text-sand { color: var(--sand); }
.text-primary-soft { color: color-mix(in oklab, var(--primary) 70%, transparent); }
.text-destructive { color: var(--destructive); }
.text-center { text-align: center; }
.prose-muted { font-size: 0.975rem; line-height: 1.7; color: var(--muted-foreground); }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; display: inline-block; }
.price { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.price-lg { font-family: var(--font-display); font-size: 1.875rem; line-height: 1; }

/* -------------------------------------------------------------- Espacios */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; } .mt-16 { margin-top: 4rem; }
.pt-5 { padding-top: 1.25rem; } .pt-6 { padding-top: 1.5rem; }
.p-8 { padding: 2rem; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; } .max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }
.stack-1 > * + * { margin-top: 0.25rem; }
.stack-3 > * + * { margin-top: 0.75rem; }
.stack-5 > * + * { margin-top: 1.25rem; }
.stack-8 > * + * { margin-top: 2rem; }
.col-span-2 { grid-column: span 2; }
.hairline { border-top: 1px solid color-mix(in oklab, var(--sand) 60%, transparent); }
.bg-secondary { background: var(--secondary); }

/* ---------------------------------------------------------------- Grillas */
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-2-sm { display: grid; gap: 1.25rem; }
.facts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.facts-2 dd { margin-top: 0.25rem; }
.facts-2.gap-8 { gap: 2rem; }
.grid-event, .grid-split, .grid-contact { display: grid; gap: 3.5rem; }
@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-event { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .grid-split { grid-template-columns: 1fr 1.1fr; }
  .grid-contact { grid-template-columns: 1fr 1.15fr; }
}

/* --------------------------------------------------------------- Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.5rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; background: none; white-space: nowrap; list-style: none;
}
.btn::-webkit-details-marker { display: none; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn-lg { height: 3.25rem; padding: 0 2rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.6875rem; }
.btn-square { width: 2.75rem; height: 2.75rem; padding: 0; }
.btn-solid { background: var(--primary); color: var(--primary-foreground); }
.btn-solid:hover:not(:disabled) { background: var(--wine-deep); }
.btn-sand { background: var(--accent); color: var(--accent-foreground); }
.btn-sand:hover { background: color-mix(in oklab, var(--sand) 80%, transparent); }
.btn-outline { border-color: color-mix(in oklab, var(--primary) 40%, transparent); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 5%, transparent); }
.btn-ghost-light { border-color: color-mix(in oklab, var(--on-dark) 35%, transparent); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); background: color-mix(in oklab, var(--on-dark) 10%, transparent); }
.btn-danger { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); color: var(--destructive); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ----------------------------------------------------------- Formularios */
.field { display: block; }
.field > .eyebrow { display: block; color: color-mix(in oklab, var(--primary) 70%, transparent); margin-bottom: 0.5rem; }
.field.is-dark > .eyebrow { color: var(--on-dark-muted); }
.input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card);
  padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--foreground); outline: none; transition: border-color 0.2s;
}
.input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.input:focus { border-color: var(--primary); }
textarea.input { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.check input { margin-top: 0.15rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ Superficies */
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-tight { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .section { padding-top: 8rem; padding-bottom: 8rem; } .section-tight { padding-top: 7rem; padding-bottom: 7rem; } }
.section-dark { background: var(--wine-deep); color: var(--on-dark); }
.surface-wine { background: var(--wine); color: var(--on-dark); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.form-card { padding: 1.75rem; }
@media (min-width: 1024px) { .form-card { padding: 2.25rem; } }
.notice { background: var(--secondary); color: var(--secondary-foreground); border-radius: var(--radius-sm); padding: 1rem; }
.center-screen { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem; }

.section-title { max-width: 42rem; }
.section-title h2 { margin-top: 1rem; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }
.section-subtitle { margin-top: 1.25rem; font-size: 0.975rem; line-height: 1.7; color: var(--muted-foreground); }
.section-title.is-dark { color: var(--on-dark); }
.section-title.is-dark .section-subtitle { color: var(--on-dark-muted); }
.h2-dark { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.15; color: var(--on-dark); }

/* -------------------------------------------------------------------- Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.3s; }
.nav-filled, .nav-open { background: color-mix(in oklab, var(--wine-deep) 95%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--font-display); font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.34em; color: var(--on-dark); }
.nav-links { display: none; gap: 2rem; }
.nav-links a { font-size: 0.8125rem; color: var(--on-dark-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta { display: none; }
.nav-end { display: none; align-items: center; gap: 1.25rem; }
.lang-switch { display: flex; align-items: center; gap: 0.125rem; font-size: 0.6875rem; letter-spacing: 0.14em; font-weight: 500; }
.lang-switch a { padding: 0.375rem 0.4rem; color: var(--on-dark-muted); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a.is-active { color: var(--sand); border-bottom-color: var(--sand); }
.lang-switch-mobile { margin-top: 1.5rem; gap: 0.5rem; font-size: 0.8125rem; }
.lang-switch-mobile a { padding: 0.5rem 0.75rem; border: 1px solid color-mix(in oklab, var(--on-dark) 18%, transparent); }
.lang-switch-mobile a.is-active { border-color: var(--sand); }
.nav-toggle { background: none; border: 0; color: var(--on-dark); cursor: pointer; padding: 0.25rem; }
.nav-mobile { border-top: 1px solid color-mix(in oklab, var(--on-dark) 10%, transparent); background: var(--wine-deep); padding: 1rem 1.5rem 2rem; }
.nav-mobile nav { display: flex; flex-direction: column; }
.nav-mobile nav a { border-bottom: 1px solid color-mix(in oklab, var(--on-dark) 10%, transparent); padding: 1rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--on-dark); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-end { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero-home { min-height: 88svh; }
.hero-event { min-height: 78svh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--wine-deep), color-mix(in oklab, var(--wine-deep) 55%, transparent), color-mix(in oklab, var(--wine-deep) 32%, transparent)); }
.hero-content { position: relative; padding-top: 9rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .hero-content { padding-bottom: 7rem; } .hero-event .hero-content { padding-bottom: 5rem; } }
.hero-event .hero-content { padding-bottom: 4rem; }
.hero-title { margin-top: 1.5rem; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; color: var(--on-dark); }
.hero-title-event { margin-top: 1.25rem; max-width: 48rem; font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1.04; color: var(--on-dark); }
.hero-lead { margin-top: 1.75rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; color: var(--on-dark-muted); }
.hero-sub { font-size: 1.0625rem; color: var(--on-dark-muted); }
.hero-scroll { margin-top: 4rem; display: flex; align-items: center; gap: 0.75rem; color: var(--on-dark-muted); }
.hero-facts { margin-top: 2.5rem; max-width: 48rem; display: grid; gap: 1.5rem; color: var(--on-dark); grid-template-columns: 1fr 1fr; }
.hero-facts dd { margin-top: 0.5rem; font-size: 0.9375rem; }
@media (min-width: 640px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.bounce { display: inline-flex; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }
.fade-up { animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; border: 1px solid; border-radius: var(--radius-sm); padding: 0.375rem 0.625rem; line-height: 1;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; background: var(--card); }
.badge-disponible { border-color: color-mix(in oklab, var(--primary) 30%, transparent); background: color-mix(in oklab, var(--primary) 8%, var(--card)); color: var(--primary); }
.badge-ultimos_cupos { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 45%, var(--card)); color: var(--accent-foreground); }
.badge-confirmado { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.badge-proximamente { border-color: color-mix(in oklab, var(--foreground) 20%, transparent); background: color-mix(in oklab, var(--foreground) 5%, var(--card)); color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.badge-agotado { border-color: color-mix(in oklab, var(--foreground) 20%, transparent); background: color-mix(in oklab, var(--foreground) 8%, var(--card)); color: color-mix(in oklab, var(--foreground) 55%, transparent); }
.badge-finalizado { border-color: color-mix(in oklab, var(--foreground) 15%, transparent); color: color-mix(in oklab, var(--foreground) 45%, transparent); }
.badge-cancelado { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); background: color-mix(in oklab, var(--destructive) 10%, var(--card)); color: var(--destructive); }
.badge-on-dark { background: color-mix(in oklab, var(--on-dark) 10%, transparent); color: var(--on-dark); border-color: color-mix(in oklab, var(--on-dark) 35%, transparent); }
.badge-confirmado.badge-on-dark { background: var(--primary); }
.pill-sand { display: inline-flex; border-radius: var(--radius-sm); background: var(--sand); padding: 0.5rem 0.75rem; line-height: 1; color: var(--accent-foreground); }

/* --------------------------------------------------------------- Progreso */
.progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; color: var(--muted-foreground); }
.progress-count { color: var(--foreground); }
.progress-count strong { font-weight: 600; }
.progress-track { margin-top: 0.5rem; height: 3px; width: 100%; overflow: hidden; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 10%, transparent); }
.progress-bar { height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.5s; }
.progress-msg { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.progress.is-dark .progress-head, .progress.is-dark .progress-msg { color: var(--on-dark-muted); }
.progress.is-dark .progress-count { color: var(--on-dark); }
.progress.is-dark .progress-track { background: color-mix(in oklab, var(--on-dark) 20%, transparent); }
.progress.is-dark .progress-bar { background: var(--sand); }

/* ---------------------------------------------------- Tarjeta experiencia */
.event-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-soft); transition: box-shadow 0.3s; }
.event-card:hover { box-shadow: var(--shadow-lift); }
.event-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease-out; }
.event-card:hover .event-media img { transform: scale(1.04); }
.event-media-top { position: absolute; inset: 0 0 auto 0; padding: 1rem; display: flex; justify-content: space-between; }
.event-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
@media (min-width: 768px) { .event-body { padding: 1.75rem; } }
.event-title { margin-top: 0.75rem; font-size: 1.5rem; line-height: 1.2; }
.event-foot { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

/* ------------------------------------------------------------ Cómo funciona */
.steps { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--on-dark) 12%, transparent); }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--wine-deep); padding: 1.75rem; }
@media (min-width: 1024px) { .step { padding: 2rem; } }
.step-number { font-family: var(--font-display); font-size: 2.25rem; color: var(--sand); }
.step h3 { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.35; color: var(--on-dark); }
.step > p:not(.step-number) { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.65; color: var(--on-dark-muted); }
.step-box { margin-top: 1.5rem; border: 1px solid color-mix(in oklab, var(--on-dark) 15%, transparent); border-radius: var(--radius-sm); padding: 1rem; }
.step-list { margin-top: 1.25rem; font-size: 0.875rem; color: var(--on-dark-muted); }
.step-list li + li { margin-top: 0.5rem; }

/* ------------------------------------------------------------ Próximamente */
.upcoming-card { overflow: hidden; border-radius: var(--radius-sm); background: var(--wine-deep); }
.upcoming-media { position: relative; aspect-ratio: 16 / 9; }
.upcoming-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.upcoming-tag { position: absolute; left: 1.25rem; top: 1.25rem; }
.upcoming-body { padding: 1.75rem; }
@media (min-width: 1024px) { .upcoming-body { padding: 2.25rem; } }
.upcoming-body h3 { font-size: 1.5rem; line-height: 1.2; color: var(--on-dark); }
.upcoming-body .facts-2 { font-size: 0.875rem; color: var(--on-dark); gap: 1rem; }
.notify summary { display: inline-flex; }
.notify[open] summary { display: none; }
.notify-form { margin-top: 0.5rem; border: 1px solid color-mix(in oklab, var(--on-dark) 15%, transparent); border-radius: var(--radius-sm); padding: 1.25rem; }
.notify-form > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------------ Viñas */
.winery-card { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-soft); }
.winery-media { aspect-ratio: 4 / 3; }
.winery-media img { width: 100%; height: 100%; object-fit: cover; }
.winery-body { padding: 1.75rem; }
.winery-body h3 { margin-top: 0.75rem; font-size: 1.75rem; line-height: 1.2; }
@media (min-width: 768px) {
  .winery-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .winery-media { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 1024px) { .winery-body { padding: 2.5rem; } }

/* ------------------------------------------------------------ Página evento */
.reserve { padding: 1.75rem; box-shadow: var(--shadow-lift); scroll-margin-top: 1.5rem; }
@media (min-width: 1024px) { .reserve { padding: 2rem; position: sticky; top: 6.5rem; } }
.reserve-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.qty { display: flex; align-items: center; gap: 1rem; }
.qty-value { width: 3rem; border: 0; background: none; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty-value::-webkit-inner-spin-button, .qty-value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; }

.wine-card { display: flex; flex-direction: column; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 1024px) { .wine-card { padding: 2rem; } }
.wine-bottle { display: flex; align-items: flex-end; justify-content: center; height: 11rem; border-radius: var(--radius-sm); background: var(--secondary); }
.wine-bottle img { height: 100%; object-fit: contain; }
.bottle-shape { margin-bottom: 1rem; height: 9rem; width: 2rem; border-radius: 999px 999px 0 0; background: color-mix(in oklab, var(--wine-deep) 85%, transparent); }
.wine-name { margin-top: 0.5rem; font-size: 1.25rem; line-height: 1.35; }

.timeline { position: relative; border-left: 1px solid color-mix(in oklab, var(--sand) 70%, transparent); padding-left: 1.75rem; }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -33px; top: 0.375rem; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 4px var(--background); }
.timeline-time { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }

.route { display: flex; align-items: center; gap: 1rem; border: 1px solid color-mix(in oklab, var(--on-dark) 15%, transparent); border-radius: var(--radius-sm); padding: 1.25rem; }
.route-line { height: 1px; flex: 1; background: color-mix(in oklab, var(--on-dark) 25%, transparent); }
.transport-grid { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--on-dark) 12%, transparent); }
@media (min-width: 640px) { .transport-grid { grid-template-columns: 1fr 1fr; } }
.transport-grid > div { background: var(--wine-deep); padding: 1.5rem; }
.transport-grid dd { font-size: 0.9375rem; line-height: 1.4; color: var(--on-dark); }

.others li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.others li:first-child { border-top: 0; }

.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); background: var(--card); padding: 0.75rem 1.25rem; box-shadow: var(--shadow-lift); }
.mobile-bar-btn { margin-right: 4rem; }
body.has-mobile-bar { padding-bottom: 4.5rem; }
body.has-mobile-bar .wa-button { bottom: 5.25rem; }
@media (min-width: 1024px) { .mobile-bar { display: none; } body.has-mobile-bar { padding-bottom: 0; } body.has-mobile-bar .wa-button { bottom: 1.25rem; } }

/* ------------------------------------------------------------------ Footer */
.footer-grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-top: 5rem; padding-bottom: 5rem; } }
.footer-brand { font-family: var(--font-display); font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.34em; }
.footer-list { margin-top: 1rem; font-size: 0.875rem; color: var(--on-dark-muted); }
.footer-list li + li { margin-top: 0.75rem; }
.footer-list a:hover { color: var(--on-dark); }
.footer-bottom { border-top: 1px solid color-mix(in oklab, var(--on-dark) 10%, transparent); padding: 1.5rem 0; }
.wa-button { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50; display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-lift); transition: transform 0.3s; }
.wa-button:hover { transform: scale(1.05); }

/* ------------------------------------------------------------------ Avisos */
.toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 0.5rem; width: min(26rem, calc(100% - 2rem)); }
.toast { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.875rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary); box-shadow: var(--shadow-lift); font-size: 0.875rem; animation: fade-up 0.3s both; transition: opacity 0.25s, transform 0.25s; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--destructive); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
.toast-close { background: none; border: 0; cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--muted-foreground); }

/* =================================================================== Panel */
.admin-body { background: var(--secondary); min-height: 100vh; }
.admin-header { border-bottom: 1px solid var(--border); background: var(--card); }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.admin-brand { display: flex; align-items: baseline; gap: 1rem; }
.admin-brand a { font-family: var(--font-display); font-size: 1.5rem; }
.admin-user { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.admin-user button { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: inherit; font-size: inherit; padding: 0; }
.admin-tabs { display: flex; gap: 1.5rem; overflow-x: auto; }
.admin-tabs a { border-bottom: 2px solid transparent; padding: 0.75rem 0; font-size: 0.875rem; white-space: nowrap; color: var(--muted-foreground); }
.admin-tabs a:hover { color: var(--foreground); }
.admin-tabs a.is-active { border-color: var(--primary); color: var(--foreground); }
.admin-main { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.admin-title { font-size: 1.875rem; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-help { margin-top: 1rem; font-size: 0.75rem; color: var(--muted-foreground); max-width: 56rem; }
.table-wrap { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); padding: 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .nowrap { white-space: nowrap; }
.table .num { font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table .input { min-width: 12rem; padding: 0.5rem 0.75rem; }
.admin-section { display: grid; gap: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); padding: 1.5rem; }
.admin-section h2 { font-size: 1.375rem; grid-column: 1 / -1; }
.diet .eyebrow { line-height: 1.6; }
.diet-choice { display: flex; gap: 1.5rem; }
.diet-tag { display: inline-block; margin-top: 0.5rem; padding: 0.375rem 0.5rem; background: color-mix(in oklab, var(--primary) 9%, transparent); border-left: 2px solid var(--primary); font-size: 0.75rem; line-height: 1.45; white-space: pre-line; }
.diet-list { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; background: var(--card); }
.diet-list li { padding: 0.375rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.diet-list li:last-child { border-bottom: 0; }
.retracto { margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--border); line-height: 1.55; }
.retracto a, .check a, .diet a, .form-card .muted a { text-decoration: underline; text-underline-offset: 2px; }
.legal-page { padding-top: 7rem; padding-bottom: 5rem; }
.legal-wrap { max-width: 52rem; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; font-size: 0.8125rem; }
.legal-tabs a { padding: 0.75rem 0; color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.legal-tabs a.is-active { color: var(--foreground); border-bottom-color: var(--primary); }
.legal h1 { font-size: 2.5rem; line-height: 1.1; margin-top: 0.75rem; }
@media (min-width: 768px) { .legal h1 { font-size: 3.25rem; } }
.legal-updated { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.legal-note { margin-top: 1.25rem; padding: 0.875rem 1rem; background: var(--secondary); font-size: 0.875rem; line-height: 1.6; }
.legal-intro { margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.7; }
.legal section { margin-top: 2.25rem; }
.legal h2 { font-size: 1.5rem; }
.legal section p, .legal section li { font-size: 0.975rem; line-height: 1.75; color: var(--muted-foreground); }
.legal section p { margin: 0.75rem 0 0; }
.legal section ul { margin: 0.75rem 0 0; padding-left: 1.25rem; list-style: disc; }
.legal section li::marker { color: var(--primary); }
.legal section li { margin-top: 0.4rem; }
.legal strong { color: var(--foreground); font-weight: 600; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-missing { background: #fde68a; color: #7c2d12; padding: 0 0.25rem; }
.lang-tag { display: inline-block; margin-left: 0.375rem; padding: 0.05rem 0.4rem; border: 1px solid var(--border); border-radius: 3px; font-size: 0.625rem; letter-spacing: 0.1em; color: var(--primary); vertical-align: middle; }
.tr-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.875rem 1rem; }
.tr-block summary { cursor: pointer; }
.tr-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .tr-grid { grid-template-columns: 1fr 1fr; } .tr-grid .span-all { grid-column: 1 / -1; } }
@media (min-width: 768px) { .admin-section.cols-2 { grid-template-columns: 1fr 1fr; } .admin-section.cols-3 { grid-template-columns: repeat(3, 1fr); } .span-all { grid-column: 1 / -1; } }
.checks > * + * { margin-top: 0.5rem; }
.checks label { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.checks input, .admin-section input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--primary); }
.inline-check { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.thumb { width: 4.5rem; height: 3.25rem; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.list-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.list-card > li { padding: 1.25rem; border-top: 1px solid var(--border); }
.list-card > li:first-child { border-top: 0; }
.msg-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); padding: 1.25rem; }
.msg-card.is-done { opacity: 0.6; }
.admin-grid-2 { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.75rem; color: var(--muted-foreground); text-decoration: underline; }
.danger-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.875rem; color: var(--destructive); text-decoration: underline; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--secondary); padding: 4rem 1.5rem; }
.auth-card { width: 100%; max-width: 28rem; padding: 2rem; box-shadow: var(--shadow-lift); }
.stat-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.75rem; }
.stat-row strong { color: var(--foreground); font-weight: 600; }

/* ------------------------------------------------- Plazo del cupo mínimo */
.quorum { margin-top: 0.625rem; font-size: 0.8125rem; line-height: 1.55; color: var(--muted-foreground); }
.quorum strong { color: var(--foreground); font-weight: 600; }
.quorum.is-expired { color: var(--destructive); }
.badge-sin_cupo { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); background: color-mix(in oklab, var(--destructive) 10%, var(--card)); color: var(--destructive); }
.alert-box { border: 1px solid color-mix(in oklab, var(--accent) 80%, transparent); background: color-mix(in oklab, var(--accent) 22%, var(--card)); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-size: 0.875rem; }
.alert-box.is-danger { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); background: color-mix(in oklab, var(--destructive) 7%, var(--card)); }

/* Cloudflare Turnstile */
.wr-turnstile { min-height: 65px; }
.wr-turnstile:empty { min-height: 0; }
