:root {
  /* COLORES OFICIALES */
  --bg-paper: #F0E6D2; 
  --text-main: #1A1A1A; 
  --text-soft: #4a4a4a;
  --accent-red: #ED1C24; 
  --accent-gold: #c4a46b; 

  /* CAMBIO: Opacidad al 20% (0.2) */
  --card-bg: rgba(255, 255, 255, 0.2);
  
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.12);
}

/* RESET SUAVE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scrollbars invisibles: conserva scroll con rueda, teclado y gesto táctil. */
html,
body,
* {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  border: 0 !important;
  background: transparent !important;
}

body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-paper);
  background-image:
    radial-gradient(circle at 0 0, rgba(0,0,0,0.02) 0, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,0.04) 0, transparent 55%);
}

/* ------------------------------------- */
/* NUEVA ANIMACIÓN ZOOM IN PARA EL LOGO */
/* ------------------------------------- */
@keyframes zoomInLogo {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* ========================================= */
/* ESTILOS DEL GATEWAY (MODAL BIENVENIDA) */
/* ========================================= */
.gateway-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(240, 230, 210, 0.4); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
}
.gateway-overlay.active { opacity: 1; visibility: visible; }

.gateway-content {
  text-align: center; max-width: 460px; padding: 1.8rem 2rem 2rem; width: 90%;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.7);
  border: 2px solid rgba(196, 164, 107, 0.58);
  outline: 1px solid rgba(237,28,36,0.2);
  outline-offset: -8px;
  transform: translateY(20px); transition: transform 0.4s ease;
}
.gateway-overlay.active .gateway-content { transform: translateY(0); }

.gateway-logo { 
  width: 155px; height: auto; margin: 0 auto 0.35rem; display: block;
  animation: zoomInLogo 3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.gateway-content h2 { 
  font-family: "Cinzel", serif; color: var(--text-main); 
  margin-top: 0.5rem; margin-bottom: 0.2rem; line-height: 1.1; 
}

.gateway-content p { color: var(--text-soft); margin-bottom: 1.2rem; }

.gateway-options { display: flex; flex-direction: column; gap: 1rem; }
.gateway-btn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.9rem 1rem; border: 1px solid rgba(196,164,107,0.42); background: #fdfbf7;
  border-radius: 10px; font-family: "Raleway", sans-serif; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; color: var(--text-main); font-weight: 600;
}
.gateway-btn:hover {
  border-color: var(--accent-red); background: #fff; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-2px);
}
.gateway-btn i { color: var(--accent-red); font-size: 1.2rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(196, 164, 107, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-main);
  font-family: "Raleway", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.theme-toggle-btn i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .gateway-overlay {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }

  .gateway-content {
    width: min(100%, 420px);
    max-width: 420px;
    padding: 1.35rem 1rem 1rem;
    border-radius: 16px;
    margin: 0 auto;
    transform: none;
  }

  .gateway-overlay.active .gateway-content {
    transform: none;
  }

  .gateway-logo {
    width: min(68vw, 220px);
    margin-bottom: 0.35rem;
  }

  .gateway-content h2 {
    font-size: 1.45rem;
    margin-top: 0.2rem;
  }

  .gateway-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .gateway-options {
    gap: 0.75rem;
  }

  .gateway-btn {
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    min-height: 56px;
  }
}

/* ========================================= */
/* BOTÓN GATEWAY EN HEADER */
/* ========================================= */
.header-gateway-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  color: var(--text-main);
  font-family: "Raleway", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-gateway-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.header-gateway-btn i {
  font-size: 0.9rem;
}

/* Responsive: Ocultar texto en móvil */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.45rem;
  }

  .theme-toggle-btn .theme-toggle-text,
  .header-gateway-btn .gateway-text {
    display: none;
  }

  .theme-toggle-btn {
    padding: 0.5rem 0.55rem;
  }

  .header-gateway-btn {
    padding: 0.5rem;
  }
}

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  padding: 0.55rem max(4vw, calc((100vw - 1120px) / 2));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
  background: rgba(240, 230, 210, 0.65); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: transform .32s cubic-bezier(.22,.8,.24,1), opacity .28s ease;
}
body.chrome-hidden .site-header {
  transform: translate3d(0, -120%, 0);
  opacity: 0;
  pointer-events: none;
}

/* Mantiene la narrativa de fondos por encima de reglas temáticas anteriores. */
body.theme-dark {
  background-color: #0f1113;
  background-image: linear-gradient(rgba(15,17,19,0.84), rgba(15,17,19,0.9));
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 70vh;
}
body.theme-dark.bg-ready {
  background-image:
    linear-gradient(rgba(15,17,19,0.84), rgba(15,17,19,0.9)),
    url("../img/section-bg-gastronomy.jpg"),
    url("../img/section-bg-wine-contact.jpg");
  background-size: 100% auto, 100% auto, 100% auto;
  background-position: center 70vh, center 70vh, center calc(70vh + 2300px);
}
.logo {
  display: flex; justify-content: center;
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; font-size: 1.1rem; color: var(--text-main);
}

.header-brand-crop { width: 132px; height: 48px; position: relative; overflow: hidden; flex: 0 0 132px; }
.header-brand-logo { position: absolute; width: 132px; height: 95px; max-width: none; left: 0; top: 50%; transform: translateY(-50%); object-fit: contain; }
.header-brand-logo,
.header-brand-logo.inline-brand-logo { filter: brightness(0) !important; }
.header-brand-logo.inline-brand-logo .st0,
.header-brand-logo.inline-brand-logo .st1 { fill: #1d1d1b !important; }
.header-text-brand {
  width: auto; height: auto; overflow: visible;
  color: var(--text-main); text-decoration: none;
  font: 700 clamp(1rem,1.4vw,1.2rem)/1 "Cinzel",serif;
  letter-spacing: .055em;
}
body.theme-dark .header-text-brand { color: #f5efe4; }

.main-nav { display: flex; gap: 1.6rem; font-size: 0.85rem; }

.nav-link {
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 600; color: var(--text-soft); position: relative; transition: color 0.3s;
}
.nav-link:hover { color: var(--accent-red); }
.nav-link.portfolio-return { color: var(--accent-gold); }
.nav-link.portfolio-return:hover { color: var(--accent-red); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -0.25rem;
  width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* HERO */
.hero {
  position: relative; min-height: min(74svh, 650px);
  padding: clamp(4.15rem, 6vh, 4.75rem) max(4vw, calc((100vw - 1120px) / 2)) clamp(0.5rem, 1.2vh, 0.85rem);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.catalog-search {
  position: relative; width: clamp(210px, 34vw, 460px); height: 44px; margin: 0 0 0 auto;
  display: flex; align-items: center; padding: 0 0.15rem 0 0.9rem;
  border: 1px solid rgba(26,26,26,0.14); border-radius: 16px;
  background: rgba(255,255,255,0.42); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.catalog-search:focus-within { border-color: rgba(237,28,36,.48); background: rgba(255,255,255,.62); box-shadow: 0 0 0 4px rgba(237,28,36,.07); }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-main); font: 600 0.82rem "Raleway", sans-serif; }
.catalog-search input::placeholder { color: rgba(26,26,26,0.55); }
.catalog-search-count { margin-right: .25rem; color: var(--accent-red); font-size: 0.65rem; font-weight: 800; white-space: nowrap; }
.catalog-search-submit { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; border-radius: 13px; background: transparent; color: var(--accent-red); cursor: pointer; transition: background .2s ease, color .2s ease; }
.catalog-search-submit:hover { background: rgba(237,28,36,.1); }
.catalog-search-results {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: min(390px, calc(100vw - 24px)); padding: .45rem;
  border: 1px solid rgba(196,164,107,.28); border-radius: 16px;
  background: rgba(245,239,228,.96); box-shadow: 0 24px 55px rgba(20,14,8,.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.catalog-search-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .72rem .78rem; border: 0; border-radius: 12px; background: transparent;
  color: var(--text-main); text-align: left; cursor: pointer;
}
.catalog-search-option:hover, .catalog-search-option:focus-visible { outline: 0; background: rgba(237,28,36,.08); }
.catalog-search-option span { min-width: 0; display: grid; gap: .12rem; }
.catalog-search-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.catalog-search-option small { color: var(--text-soft); font-size: .65rem; }
.catalog-search-option b { flex: 0 0 auto; color: var(--accent-red); font-size: .78rem; }
.search-empty { margin: 0; padding: .8rem; color: var(--text-soft); font-size: .74rem; text-align: center; }
.search-highlight { animation: curarteSearchHighlight 1.8s ease; }
@keyframes curarteSearchHighlight {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 3px rgba(237,28,36,.55), 0 12px 30px rgba(237,28,36,.16); }
}
.header-portfolio-link { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(196,164,107,.55); border-radius: 12px; background: transparent; color: var(--text-main); font-size: .95rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.header-portfolio-link:hover { border-color: var(--accent-red); background: var(--accent-red); color: #fff; }
.portfolio-dialog { width: min(92vw, 480px); padding: 2.2rem; border: 1px solid rgba(196,164,107,0.35); border-radius: 18px; background: rgba(253,251,247,0.96); color: var(--text-main); box-shadow: 0 30px 90px rgba(0,0,0,0.32); text-align: center; }
.portfolio-dialog::backdrop { background: rgba(10,10,10,0.62); backdrop-filter: blur(8px); }
.portfolio-dialog-close { position: absolute; top: 0.7rem; right: 0.9rem; border: 0; background: transparent; color: var(--text-soft); font-size: 1.7rem; cursor: pointer; }
.portfolio-dialog-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent-red); color: white; font-size: 1.2rem; }
.portfolio-dialog-kicker { margin: 0; color: var(--accent-red); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.portfolio-dialog h2 { margin: 0.55rem 0; font: 700 clamp(1.35rem, 4vw, 2rem)/1.15 "Cinzel", serif; }
.portfolio-dialog > p:not(.portfolio-dialog-kicker) { color: var(--text-soft); line-height: 1.6; }
.portfolio-dialog-actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0.7rem; margin-top: 1.4rem; }
.inline-brand-logo { display: block; aspect-ratio: 114 / 82; }
.inline-brand-logo svg { display: block; width: 100%; height: 100%; }
.inline-brand-logo .st1 { fill: var(--accent-red) !important; }
body.theme-dark .inline-brand-logo .st0 { fill: #f5efe4 !important; }
body.theme-dark .inline-brand-logo { filter: none !important; }
body.theme-dark .portfolio-dialog { background: #171b1f; }

.hero-photo-layer {
  position: absolute; inset: 0;
  display: block;
  background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8));
  background-size: cover;
  background-position: center right;
  opacity: 1;
  mix-blend-mode: normal;
  transition: background-position 0.3s ease, background-image .4s ease;
}
.hero.bg-ready .hero-photo-layer {
  background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url("../img/hero-bg.jpg");
}

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,19,0.08), rgba(15,17,19,0.02) 42%, rgba(15,17,19,0.14));
  pointer-events: none;
}
body:not(.theme-dark) .hero-photo-layer { opacity: 1; }
body:not(.theme-dark) .hero::after { background: linear-gradient(180deg, rgba(240,230,210,0.04), rgba(240,230,210,0.1)); }

.hero-card {
  position: relative; max-width: 480px; padding: 2.6rem 3rem 3rem;
  background: rgba(255, 255, 255, 0.35); 
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6); 
  border-top: 4px solid var(--accent-red);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); 
  border-radius: 4px;
  z-index: 2; transform: translateY(22px); opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-card.in-view { opacity: 1; transform: translateY(0); }

.hero > .hero-card:not(.hero-grid) {
  display: none;
}

.hero-card.hero-grid {
  max-width: 1040px;
  width: min(100%, 1040px);
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(240px, 0.92fr);
  gap: 1rem;
}

.hero-panel {
  min-height: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(31, 38, 135, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.hero-panel-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel-feature,
.hero-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero-panel-feature {
  justify-content: center;
}

.hero-panel-promo {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-logo {
  display: block; width: min(100%, 250px); height: auto; margin: 0 0 0.4rem 0; 
  animation: zoomInLogo 2s ease-out forwards;
}

/* ANIMACIÓN DE SALUDO */
.fade-transition { transition: opacity 0.5s ease-in-out; }

.hero-overline { text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.72rem; margin: 0 0 0.55rem; color: var(--accent-red); font-weight: 700; }
.hero-title { font-family: "Cinzel", serif; font-size: clamp(1.9rem, 3.2vw, 2.75rem); letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 0.65rem; color: var(--text-main); line-height: 1.12; }
.hero-text { font-size: 0.98rem; line-height: 1.6; color: var(--text-main); margin: 0; font-weight: 500; text-shadow: 0 0 25px rgba(255,255,255,0.7); }

.hero-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(237, 28, 36, 0.1);
  border: 1px solid rgba(237, 28, 36, 0.16);
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--text-main);
}

.hero-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.92rem;
}

.hero-inline-btn {
  width: fit-content;
  min-width: 0;
  padding-inline: 1.1rem;
}

.hero-promo-list {
  display: grid;
  gap: 0.65rem;
}

.hero-promo-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.18rem 0.8rem;
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.44);
  border: 1px solid rgba(196, 164, 107, 0.16);
}

.hero-promo-item strong,
.hero-promo-item em {
  color: var(--text-main);
  font-style: normal;
}

.hero-promo-item strong {
  font-size: 0.92rem;
}

.hero-promo-item span {
  grid-column: 1 / 2;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hero-promo-item em {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--accent-red);
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-actions .hero-inline-btn {
  width: 100%;
}

/* Fondo continuo: una sola atmósfera visual hasta más allá del footer. */
body {
  position: relative;
  background-color: #111315;
  background-image: linear-gradient(rgba(15,17,19,0.84), rgba(15,17,19,0.9));
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 70vh;
  background-attachment: scroll;
}
body.bg-ready {
  background-image:
    linear-gradient(rgba(15,17,19,0.84), rgba(15,17,19,0.9)),
    url("../img/section-bg-gastronomy.jpg"),
    url("../img/section-bg-wine-contact.jpg");
  background-size: 100% auto, 100% auto, 100% auto;
  background-position: center 70vh, center 70vh, center calc(70vh + 2300px);
}
body::after {
  content: "";
  display: block;
  height: clamp(7rem, 14vh, 12rem);
  background: linear-gradient(180deg, transparent, #0f1113 75%);
}
.hero { align-items: center; }
.hero-card.hero-grid.hero-static-grid { align-self: center; }
.section,
.experience-section,
.promos-section,
.menu-section,
.pairing-section,
.vinos-section,
.contacto-section,
footer {
  background-color: transparent !important;
  background-image: none !important;
}
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,17,19,0.28), rgba(15,17,19,0.1) 30%, rgba(15,17,19,0.3));
}
body:not(.theme-dark) {
  background-color: #efe5d2;
  background-image: linear-gradient(rgba(240,230,210,0.77), rgba(240,230,210,0.86));
}
body:not(.theme-dark).bg-ready {
  background-image:
    linear-gradient(rgba(240,230,210,0.77), rgba(240,230,210,0.86)),
    url("../img/section-bg-gastronomy.jpg"),
    url("../img/section-bg-wine-contact.jpg");
}
body:not(.theme-dark)::after { background: linear-gradient(180deg, transparent, #efe5d2 75%); }
body:not(.theme-dark) .section::after { background: linear-gradient(180deg, rgba(240,230,210,0.12), rgba(240,230,210,0.28)); }

/* Hero editorial: bienvenida dominante y contenido secundario en grid. */
.hero-card.hero-grid.hero-static-grid {
  max-width: 1120px;
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
  grid-template-areas:
    "welcome sommelier"
    "welcome actions";
  gap: clamp(0.7rem, 1.2vh, 0.9rem);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-static-grid .hero-panel-brand { grid-area: welcome; min-height: 0; align-self: start; padding: clamp(1.5rem, 2.6vw, 2.35rem); align-items: flex-start; justify-content: flex-start; background: linear-gradient(145deg, rgba(255,255,255,0.56), rgba(240,230,210,0.18)); border-left: 3px solid var(--accent-red); }
.hero-static-grid .hero-panel-feature { grid-area: sommelier; }
.hero-static-grid .hero-panel-actions { grid-area: actions; }
.hero-static-grid .hero-panel { border-radius: 18px; border-color: rgba(196,164,107,0.22); box-shadow: 0 18px 48px rgba(0,0,0,0.11); }
.hero-static-grid .hero-logo { width: min(100%, clamp(145px, 13vw, 190px)); margin: 0 0 clamp(0.8rem, 1.8vh, 1.15rem); }
.hero-static-grid .hero-overline { margin-top: 0; }
.hero-static-grid .hero-title { max-width: 720px; font-size: clamp(2.25rem, 3.7vw, 3.8rem); line-height: 0.96; letter-spacing: 0.018em; text-wrap: balance; }
.hero-static-grid .hero-text { max-width: 620px; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-welcome-note { margin: 0.65rem 0 1.15rem; color: var(--accent-red); font-family: "Cinzel", serif; font-size: 0.92rem; letter-spacing: 0.06em; }
.hero-static-grid .hero-panel-feature,
.hero-static-grid .hero-panel-actions { padding: clamp(0.9rem, 1.5vh, 1.15rem) clamp(1rem, 1.5vw, 1.3rem); }
.hero-static-grid .hero-promo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-static-grid .hero-promo-item { display: flex; flex-direction: column; gap: 0.3rem; min-height: 142px; padding: 0.8rem; border-radius: 15px; }
.hero-static-grid .hero-promo-item strong { line-height: 1.05; }
.hero-static-grid .hero-promo-item span { line-height: 1.4; }
.hero-static-grid .hero-promo-item em { margin-top: auto; font-size: 1rem; }
.hero-static-grid .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-static-grid .hero-panel-feature .hero-inline-btn { margin-top: auto; }
.hero-static-grid .hero-panel-actions .hero-actions { margin-top: auto; }

.hero-carousel-shell {
  max-width: none;
  width: 100%;
  padding: 0;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-card.hero-grid {
  max-width: none;
  width: 100%;
  padding: 0;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  cursor: default;
  padding-right: 0;
}

.hero-carousel-track::-webkit-scrollbar {
  display: none;
}

.hero-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.hero-slide {
  flex: initial;
  min-width: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  scroll-snap-align: none;
}

.hero-slide-curiosity {
  justify-content: space-between;
}

.hero-fact-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(196, 164, 107, 0.16);
}

.hero-fact-card strong {
  color: var(--accent-red);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-fact-card span {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.86rem;
}

.hero-actions-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 2rem; border-radius: 0; 
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; border: 1px solid var(--text-main); background-color: transparent;
  color: var(--text-main); transition: all 0.25s ease; text-decoration: none;
}
.btn-primary { background-color: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.btn-primary:hover { background-color: #c4141b; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3); }
.btn-ghost { border-color: var(--text-main); }
.btn-ghost:hover { background-color: var(--text-main); color: #fff; }

/* SECCIONES GENERALES */
.section { padding: 5.5rem 6vw 4.5rem; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-overline { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8rem; color: var(--accent-red); font-weight: 700; }
.section-title { margin: 0.8rem 0 0.6rem; font-family: "Cinzel", serif; font-size: 2.2rem; letter-spacing: 0.02em; text-transform: uppercase; }
.section-description { max-width: 580px; margin: 0.5rem auto 0; font-size: 0.95rem; color: var(--text-soft); }
.section-header, .menu-tabs, .menu-grid, .vinos-grid { width: min(100%, 1120px); margin-left: auto; margin-right: auto; }

/* Composición editorial orgánica CurArte */
.section:not(.experience-section) {
  overflow: hidden;
  isolation: isolate;
}
.section:not(.experience-section)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 1.15rem;
  left: 50%;
  width: min(1120px, 92vw);
  height: 42px;
  transform: translateX(-50%);
  opacity: 0.48;
  pointer-events: none;
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1120 42' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ed1c24' stroke-width='1.35' stroke-linecap='round'%3E%3Cpath d='M0 29 C112 10 196 37 308 23 S506 11 615 27 S817 37 923 20 S1045 12 1120 25'/%3E%3Cpath d='M277 26 C292 19 302 12 308 3 M775 31 C790 24 800 16 806 6'/%3E%3C/g%3E%3Cg fill='%23ed1c24'%3E%3Cellipse cx='297' cy='13' rx='6' ry='2' transform='rotate(-35 297 13)'/%3E%3Cellipse cx='316' cy='10' rx='5' ry='1.8' transform='rotate(30 316 10)'/%3E%3Cellipse cx='795' cy='17' rx='6' ry='2' transform='rotate(-35 795 17)'/%3E%3Cellipse cx='813' cy='13' rx='5' ry='1.8' transform='rotate(30 813 13)'/%3E%3C/g%3E%3C/svg%3E");
}
.section:not(.experience-section)::before {
  display: none;
}
.section:not(.experience-section) .section-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  grid-template-areas:
    "overline title"
    "overline description";
  gap: 0.35rem clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
  padding: 1.7rem 0 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(196,164,107,0.24);
}
.section:not(.experience-section) .section-overline {
  grid-area: overline;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section:not(.experience-section) .section-overline::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent-red);
}
.section:not(.experience-section) .section-title { grid-area: title; margin: 0; font-size: clamp(1.8rem, 3vw, 2.75rem); text-wrap: balance; }
.section:not(.experience-section) .section-description { grid-area: description; max-width: 680px; margin: 0; }

.menu-card,
.vino-card,
.pairing-suggestion-card,
.promo-carousel-container,
.experience-story-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(196,164,107,0.24);
}
.menu-card::after,
.vino-card::after,
.pairing-suggestion-card::after,
.experience-story-card::after,
.pairing-panel::after,
.wine-guide-card::after,
.ai-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -12% -8% 22%;
  height: 34%;
  pointer-events: none;
  opacity: 0.13;
  background: none;
  transform: rotate(-2deg);
}
.menu-card > *, .vino-card > *, .pairing-suggestion-card > *, .experience-story-card > *,
.pairing-panel > *, .wine-guide-card > *, .ai-card > * { position: relative; z-index: 1; }

/* Fondos específicos por capítulo: solo se piden al entrar en vista. */
.experience-section.bg-ready,
.promos-section.bg-ready {
  background-image: linear-gradient(rgba(15,17,19,0.76), rgba(15,17,19,0.84)), url("../img/section-bg-experience-promos.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}
.menu-section.bg-ready {
  background-image: linear-gradient(rgba(15,17,19,0.78), rgba(15,17,19,0.86)), url("../img/section-bg-menu.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}
.pairing-section.bg-ready,
.vinos-section.bg-ready,
#vinos.bg-ready {
  background-image: linear-gradient(rgba(15,17,19,0.77), rgba(15,17,19,0.87)), url("../img/section-bg-pairing-wine.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}
body:not(.theme-dark) .experience-section.bg-ready,
body:not(.theme-dark) .promos-section.bg-ready { background-image: linear-gradient(rgba(240,230,210,0.72), rgba(240,230,210,0.84)), url("../img/section-bg-experience-promos.jpg") !important; }
body:not(.theme-dark) .menu-section.bg-ready { background-image: linear-gradient(rgba(240,230,210,0.74), rgba(240,230,210,0.86)), url("../img/section-bg-menu.jpg") !important; }
body:not(.theme-dark) .pairing-section.bg-ready,
body:not(.theme-dark) .vinos-section.bg-ready,
body:not(.theme-dark) #vinos.bg-ready { background-image: linear-gradient(rgba(240,230,210,0.74), rgba(240,230,210,0.87)), url("../img/section-bg-pairing-wine.jpg") !important; }
.menu-card:nth-child(even)::after,
.vino-card:nth-child(even)::after,
.pairing-suggestion-card:nth-child(even)::after {
  inset: -4% 18% auto -14%;
  transform: rotate(180deg);
}
.menu-card::before,
.vino-card::before,
.pairing-suggestion-card::before,
.experience-story-card::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--accent-red);
  opacity: 0.55;
  transform: scaleY(0.45);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-card:hover::before,
.vino-card:hover::before,
.pairing-suggestion-card:hover::before,
.experience-story-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.menu-grid,
.vinos-grid { gap: clamp(1rem, 2vw, 1.5rem); }
.menu-card,
.vino-card { box-shadow: 0 16px 42px rgba(0,0,0,0.07); }
.promos-section,
.pairing-section { background-image: linear-gradient(145deg, rgba(237,28,36,0.025), transparent 42%); }
body.theme-dark .section:not(.experience-section) .section-header { border-bottom-color: rgba(196,164,107,0.2); }

@media (max-width: 768px) {
  .section:not(.experience-section)::before { top: 0.65rem; height: 30px; opacity: 0.38; }
  .section:not(.experience-section) .section-header {
    display: block;
    padding: 1.25rem 0 1rem;
    text-align: left;
  }
  .section:not(.experience-section) .section-overline { margin-bottom: 0.7rem; }
  .section:not(.experience-section) .section-title { font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .section:not(.experience-section) .section-description { margin-top: 0.55rem; }
  .menu-card::before,
  .vino-card::before,
  .pairing-suggestion-card::before,
  .experience-story-card::before { transform: scaleY(1); opacity: 0.75; }
}

/* SECCIÓN EXPERIENCIA */
.experience-section { background-color: #fff; text-align: center; padding-bottom: 2rem; }
.experience-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.experience-story-card {
  padding: 1.45rem 1.35rem;
  text-align: left;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(196, 164, 107, 0.2);
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.experience-story-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-story-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Cinzel", serif;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--text-main);
}

.experience-story-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
}
.experience-toggle {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(196, 164, 107, 0.24);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 16px 38px rgba(0,0,0,0.06);
}

.experience-summary {
  list-style: none;
  cursor: pointer;
}

.experience-summary::-webkit-details-marker {
  display: none;
}

.experience-summary .section-title,
.experience-summary .section-overline {
  display: block;
}

.experience-toggle-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(237, 28, 36, 0.08);
  border: 1px solid rgba(237, 28, 36, 0.14);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-toggle[open] .experience-toggle-action {
  color: var(--accent-gold);
  background: rgba(196, 164, 107, 0.1);
  border-color: rgba(196, 164, 107, 0.18);
}

.experience-toggle[open] .experience-toggle-action::after {
  content: " · Cerrar";
}

.experience-content {
  max-width: 700px;
  margin: 1.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.experience-content p { font-size: 1rem; line-height: 1.8; color: var(--text-soft); margin-bottom: 1.5rem; }

/* ========================================= */
/* SECCIÓN PROMOCIONES - ESTILO ACTUALIZADO */
/* ========================================= */
.promos-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e6 100%);
  padding-bottom: 3rem;
}

.promo-carousel-container {
  position: relative;
  width: min(100%, 1120px);
  max-width: 1120px;
  height: 392px; /* ALTO FIJO PARA EVITAR SALTOS */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  background: #fff;
}

.promo-carousel {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 1rem;
  padding-right: 1rem;
  cursor: grab;
}

.promo-carousel::-webkit-scrollbar {
  display: none;
}

.promo-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.promo-slide {
  min-width: calc(100% - 1rem);
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #fff;
  opacity: 1;
  visibility: visible;
  position: relative;
  top: auto;
  left: auto;
  transition: opacity 0.5s ease;
  scroll-snap-align: start;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.promo-image {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajuste perfecto de imagen */
  object-position: center;
  transition: transform 0.5s ease;
}

.promo-slide:hover .promo-image img {
  transform: scale(1.05);
}

.promo-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  background: var(--accent-red);
  color: #fff;
  padding: 0.38rem 0.8rem;
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
  z-index: 2;
}

.promo-content {
  padding: 1.55rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.promo-content-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.promo-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.promo-title {
  font-family: "Cinzel", serif;
  font-size: 1.42rem;
  color: var(--text-main);
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

.promo-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.promo-items {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  margin-bottom: 0.95rem;
  padding: 0.72rem 0.82rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-main);
  font-weight: 600;
}

.promo-item i {
  color: var(--accent-red);
  font-size: 0.8rem;
}

.promo-price {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.promo-old-price {
  font-size: 1rem;
  color: var(--text-soft);
  text-decoration: line-through;
  opacity: 0.6;
}

.promo-new-price {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  color: var(--accent-red);
  font-weight: 700;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.35rem;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "Raleway", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-promo:hover {
  background: #c4141b;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(237, 28, 36, 0.4);
}

/* --- CONTROLES CARRUSEL (FLECHAS LATERALES) --- */
.carousel-btn {
  display: none !important;
}

/* Indicadores Puntos (Ocultos o minimizados si usamos miniaturas) */
.carousel-dots {
  display: none !important;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-red);
  width: 25px;
  border-radius: 5px;
}

/* --- MINIATURAS (BOTONES INFERIORES) --- */
.promo-thumbnails {
  display: none !important;
}

.promo-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid var(--accent-gold); /* Borde dorado */
  border-radius: 50px; /* Estilo pastilla */
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.promo-thumb:hover {
  background: rgba(196, 164, 107, 0.1);
  transform: translateY(-2px);
}

.promo-thumb.active {
  background: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.thumb-title {
  font-family: "Raleway", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.thumb-discount {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-red);
  margin-top: 2px;
}

.promo-thumb.active .thumb-title { color: #fff; }
.promo-thumb.active .thumb-discount { color: var(--accent-gold); }


/* RESPONSIVE CARRUSEL */
@media (max-width: 768px) {
  .promo-carousel-container {
    height: auto;
    min-height: 470px;
  }

  .promo-carousel {
    gap: 0.8rem;
    padding-right: 0.8rem;
  }
  
  .promo-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 210px auto;
    min-width: calc(100% - 0.8rem);
  }
  
  .promo-image {
    height: 100%;
    min-height: 210px;
  }
  
  .promo-content {
    padding: 1.3rem 1.1rem 1.25rem;
  }
  
  .promo-title {
    font-size: 1.3rem;
  }

  .promo-desc {
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
  }

  .promo-items {
    margin-bottom: 0.95rem;
    padding: 0.75rem 0.8rem;
  }

  .promo-new-price {
    font-size: 1.55rem;
  }

  .btn-promo {
    width: 100%;
    padding: 0.78rem 1rem;
  }

  .promo-content-actions .btn-ghost,
  .promo-content-actions .btn-promo {
    width: 100%;
  }
  
  /* Ajuste controles móvil */
  .carousel-btn {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.95);
  }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  
  .promo-thumbnails { gap: 0.5rem; }
  
  .promo-thumb {
    padding: 0.6rem 1rem;
    min-width: auto;
    border-radius: 8px; /* Menos redondo en móvil para ahorrar espacio */
  }
  
  .thumb-title { font-size: 0.75rem; }
}

/* NAVEGACIÓN TABS */
.menu-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; }
.tab-btn {
  background: transparent; border: 1px solid var(--border-soft); padding: 0.6rem 1.4rem;
  border-radius: 999px; font-family: "Raleway", sans-serif; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); cursor: pointer; transition: all 0.3s ease;
}
.tab-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }
.tab-btn.active { background-color: var(--accent-red); border-color: var(--accent-red); color: #fff; box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25); }

/* MENÚ GRID (RESTAURADO) */
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.menu-card {
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.7); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  border-radius: 8px; padding: 2rem; 
  position: relative; overflow: visible; /* IMPORTANTE: Visible para dropdowns */
  transition: transform 0.3s ease;
}
.menu-card:hover { transform: none; border-color: rgba(196, 164, 107, 0.28); }
.menu-card-title {
  position: relative; font-family: "Cinzel", serif; font-size: 1.4rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin: 0 0 0.4rem; color: var(--text-main);
  border-bottom: 2px solid var(--accent-gold); display: inline-block; padding-bottom: 0.3rem;
}
.menu-card-subtitle { margin: 0.8rem 0 1.5rem; font-size: 0.9rem; color: var(--text-soft); font-style: italic; }

/* ACORDEÓN DE HISTORIAS */
.story-toggle { margin-bottom: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 1rem; }
.story-toggle summary {
  list-style: none; cursor: pointer; font-family: "Cinzel", serif; font-size: 0.85rem;
  color: var(--accent-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s;
  transform-origin: left center; animation: steadyGlow 3s infinite ease-in-out;
}
@keyframes steadyGlow {
  0% { color: var(--accent-gold); transform: scale(1); text-shadow: none; }
  50% { color: var(--accent-red); transform: scale(1.03); text-shadow: 0 0 8px rgba(237, 28, 36, 0.5); }
  100% { color: var(--accent-gold); transform: scale(1); text-shadow: none; }
}
.story-toggle summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.story-toggle[open] summary::after { content: "-"; }
.story-toggle summary:hover { animation: none; color: var(--accent-red); cursor: pointer; }
.story-content { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--text-soft); font-style: italic; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* LISTA MENÚ BASE */
.menu-list { position: relative; list-style: none; padding: 0; margin: 0; }
.menu-list li:not(.item-complex) {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0.15rem;
  align-items: start; font-size: 0.95rem; padding: 0.8rem 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.menu-list li:last-child { border-bottom: none; }

/* ======================================================= */
/* ESTILOS SÁNDWICHES DESPLEGABLES (Lógica Acordeón)      */
/* ======================================================= */
.menu-list li.item-complex {
  display: flex !important; /* IMPORTANTE: Sobrescribe el grid */
  flex-direction: column !important;
  width: 100%; padding: 1rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1); cursor: pointer;
  transition: background 0.3s;
}
.menu-list li.item-complex:hover { background: rgba(0,0,0,0.02); }

/* Sommelier contextual: solo aparece al seleccionar un plato compatible. */
.sommelier-toggle-row {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; margin-top: 0.75rem; padding: 0.8rem 0.9rem;
  border: 1px solid rgba(196, 164, 107, 0.35); border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 164, 107, 0.12), rgba(255, 255, 255, 0.3));
}
.promo-progress { position: absolute; z-index: 8; left: 1rem; right: 1rem; bottom: 0.65rem; height: 4px; overflow: hidden; border: 1px solid rgba(26,26,26,.08); border-radius: 999px; background: rgba(26,26,26,.18); box-shadow: 0 1px 6px rgba(0,0,0,.14); pointer-events: none; }
.promo-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent-gold),var(--accent-red)); will-change: width; }
.promo-thumbnails { width: min(100%, 1120px); margin-left: auto; margin-right: auto; }
body.theme-dark .promo-progress { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.2); }
.sommelier-toggle-copy { display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; }
.sommelier-toggle-copy strong { display: block; font-family: "Cinzel", serif; font-size: 0.72rem; letter-spacing: 0.06em; }
.sommelier-toggle-copy small { display: block; margin-top: 0.2rem; color: var(--text-soft); font-size: 0.72rem; line-height: 1.35; }
.sommelier-live-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 0.28rem; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.1); animation: sommelierPulse 1.8s infinite; }
@keyframes sommelierPulse { 50% { box-shadow: 0 0 0 8px rgba(237, 28, 36, 0); } }
.sommelier-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; cursor: pointer; }
.sommelier-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sommelier-switch-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(26, 26, 26, 0.22); transition: 0.25s ease; }
.sommelier-switch-track::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,0.2); transition: 0.25s ease; }
.sommelier-switch input:checked + .sommelier-switch-track { background: var(--accent-red); }
.sommelier-switch input:checked + .sommelier-switch-track::after { transform: translateX(18px); }
.pairing-dish-analysis { width: 100%; padding: 0.85rem 0.95rem; border: 1px solid rgba(196, 164, 107, 0.25); border-radius: 12px; background: rgba(255,255,255,0.22); }
.pairing-dish-analysis + .pairing-dish-analysis { margin-top: 0.65rem; }
.pairing-dish-analysis strong { display: block; margin: 0.35rem 0 0.25rem; font-family: "Cinzel", serif; font-size: 0.88rem; }
.pairing-dish-analysis strong small { color: var(--accent-red); }
.pairing-dish-analysis p { margin: 0; color: var(--text-soft); font-size: 0.8rem; line-height: 1.5; }
.pairing-dish-status { display: flex; align-items: center; gap: 0.4rem; color: var(--accent-red); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pairing-dish-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(237,28,36,0.1); }
body.theme-dark .sommelier-toggle-row, body.theme-dark .pairing-dish-analysis { background: rgba(255,255,255,0.04); border-color: rgba(196,164,107,0.28); }

/* Cabecera del Sándwich */
.header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.item-complex .item-meta { display: block; margin-top: 5px; font-size: 0.85rem; color: var(--text-soft); }

/* Opciones Ocultas (S/D/T) */
.hidden-options {
  display: none; margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); animation: fadeIn 0.3s ease-out;
}
/* Mostrar cuando tiene clase .expanded */
.item-complex.expanded .hidden-options { display: block; }

/* Grilla de Botones */
.size-options-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%;
}
.size-btn {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 55px; cursor: pointer; transition: all 0.2s;
}
.size-btn.active { background: #2c2c2c; border-color: #2c2c2c; }
.size-btn.active span { color: #fff !important; }
.size-label { font-size: 0.65rem; text-transform: uppercase; font-weight: bold; color: #666; margin-bottom: 3px; }
.size-price { font-size: 0.9rem; font-weight: bold; color: var(--accent-red); }

/* Controles de cantidad complejos */
.complex-price-controls { display: flex; justify-content: flex-end; margin-top: 10px; width: 100%; }

/* Icono flecha */
.expand-icon { transition: transform 0.3s; font-size: 12px; color: #d4af37; }
.item-complex.expanded .expand-icon { transform: rotate(180deg); }

/* ELEMENTOS GENERALES */
.item-name { font-weight: 700; display: block; color: var(--text-main); }
.price-controls { justify-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.item-price { font-weight: 700; color: var(--accent-red); text-align: right; }

.qty-selector { display: flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 50px; padding: 2px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--bg-paper); color: var(--text-main); font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; transition: background 0.2s; }
.qty-btn:hover { background: var(--accent-red); color: white; }
.qty-val { font-size: 0.85rem; font-weight: 700; min-width: 14px; text-align: center; }

/* VINOS */
.vinos-section { background: #fdfbf7; }
.vinos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.vino-card {
  background: #fff; border-radius: 4px; padding: 2rem 1.6rem 1.6rem;
  border: 1px solid rgba(0, 0, 0, 0.05); position: relative; overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease;
}
.vino-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.vino-intensidad { width: 16px; height: 16px; border-radius: 999px; margin-bottom: 0.8rem; }
.intensidad-suave { background: #f4c94f; }
.intensidad-media { background: #ff8c39; }
.intensidad-alta { background: var(--accent-red); }
.vino-name { margin: 0 0 0.2rem; font-family: "Cinzel", serif; font-size: 1.2rem; font-weight: 700; }
.vino-meta { margin: 0 0 0.8rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-red); font-weight: 600; }
.vino-notas { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--text-soft); line-height: 1.5; }
.vino-precio { margin: 1rem 0 0; font-weight: 700; color: var(--text-main); border-top: 1px solid rgba(0,0,0,0.05); padding-top: 0.8rem; }

/* GUÍA VINOS & IA */
.wine-guide-container, .ai-pairing-container { display: flex; justify-content: center; margin-bottom: 3rem; padding: 0 1rem; }
.wine-guide-card, .ai-card { background: #fff; border: 1px solid rgba(196, 164, 107, 0.3); border-radius: 8px; padding: 2rem; max-width: 800px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.ai-header h3, .wine-guide-card h3 { font-family: "Cinzel", serif; color: var(--text-main); text-align: center; }
.guide-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { background: var(--bg-paper); color: var(--accent-red); font-weight: 700; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--accent-red); }

/* CONTACTO */
.contacto-section { text-align: center; padding-bottom: 5.5rem; }
.contacto-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.footer-copy { margin-top: 3rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); }
.designer-credit { display: block; margin-top: 1.5rem; font-size: 0.65rem; font-family: "Raleway", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft); text-decoration: none; opacity: 0.5; transition: all 0.3s ease; }
.curarte-studio-footer { width:min(100%,760px); margin:3rem auto 0; padding:1.4rem; display:grid; justify-items:center; gap:.85rem; border:1px solid rgba(196,164,107,.18); border-radius:18px; background:rgba(16,18,19,.64); color:#f4eee5; }
.curarte-studio-brand { display:flex; align-items:center; gap:.8rem; color:inherit; text-decoration:none; }
.curarte-studio-monogram { width:46px; height:42px; display:grid; place-items:center; color:#c4a46b; }
.curarte-studio-monogram svg { width:100%; height:100%; display:block; fill:currentColor; }
.curarte-studio-brand span { display:grid; gap:.15rem; text-align:left; }
.curarte-studio-brand strong { font:600 .78rem/1.1 "Raleway",sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.curarte-studio-brand small { color:#c4a46b; font-size:.57rem; letter-spacing:.1em; text-transform:uppercase; }
.curarte-studio-footer p { margin:0; color:#c8c0b5; font-size:.76rem; }
.curarte-studio-footer nav { display:flex; justify-content:center; flex-wrap:wrap; gap:.55rem; }
.curarte-studio-footer nav a { min-height:38px; padding:.55rem .75rem; display:inline-flex; align-items:center; gap:.4rem; border:1px solid rgba(196,164,107,.2); border-radius:12px; color:#eee6da; background:rgba(255,255,255,.035); font-size:.68rem; text-decoration:none; }
.curarte-studio-footer nav a:hover { border-color:rgba(196,164,107,.55); background:rgba(196,164,107,.08); }
.curarte-studio-footer > small { color:#918b82; font-size:.58rem; letter-spacing:.08em; }
.payment-qr { display:block; width:min(100%,240px); height:auto; margin:.8rem auto 0; padding:.45rem; border:1px solid rgba(196,164,107,.3); border-radius:14px; background:#fff; box-shadow:0 12px 30px rgba(0,0,0,.16); }

.service-floating-controls { position:fixed; bottom:2rem; left:50%; transform:translateX(-50%); z-index:100; display:flex; gap:.65rem; padding:.5rem; border:1px solid rgba(196,164,107,.35); border-radius:18px; background:rgba(25,23,20,.85); backdrop-filter:blur(14px); opacity:0; pointer-events:none; transition:opacity .35s ease,bottom .35s ease; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.service-floating-controls.is-visible { opacity:1; pointer-events:auto; bottom:2.5rem; }
.service-floating-controls button { width:46px; height:46px; display:grid; place-items:center; border:0; border-radius:14px; color:#fff; background:transparent; font-size:1.15rem; cursor:pointer; transition:background .25s,transform .2s; }
.service-floating-controls button:active { transform:scale(.94); }
.service-floating-controls button.active { background:var(--accent-gold); color:#12100e; }

/* TOASTS */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: rgba(18, 20, 22, 0.95);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show {
  transform: translateX(0);
}
.toast i {
  color: var(--accent-gold);
}

.order-print-overlay { position:fixed; inset:0; z-index:6000; display:grid; place-items:center; padding:1.2rem; visibility:hidden; opacity:0; pointer-events:none; background:rgba(7,8,9,.82); transition:opacity .25s ease,visibility .25s ease; }
.order-print-overlay.active { visibility:visible; opacity:1; pointer-events:auto; }
.order-print-dialog { width:min(920px,100%); max-height:calc(100dvh - 2.4rem); overflow:auto; border:1px solid rgba(196,164,107,.25); border-radius:20px; background:#1a1c1d; box-shadow:0 34px 90px rgba(0,0,0,.55); }
.order-print-toolbar,.order-print-actions { padding:1rem 1.2rem; display:flex; align-items:center; gap:.8rem; color:#f4eee5; }
.order-print-toolbar { justify-content:space-between; border-bottom:1px solid rgba(196,164,107,.18); }
.order-print-toolbar > div { display:grid; gap:.18rem; }.order-print-toolbar small { color:#c4a46b; letter-spacing:.12em; text-transform:uppercase; }.order-print-toolbar strong { font-weight:500; }
.order-print-close { width:38px;height:38px;border:1px solid rgba(196,164,107,.25);border-radius:11px;background:transparent;color:#f4eee5;font-size:1.4rem;cursor:pointer; }
.order-print-sheet { width:min(760px,calc(100% - 2rem)); margin:1rem auto; padding:clamp(1.5rem,4vw,3rem); color:#23201d; background:#f7f2e9; box-shadow:0 16px 48px rgba(0,0,0,.28); }
.order-print-brand { display:grid; grid-template-columns:120px 1fr; align-items:center; gap:1.4rem; padding-bottom:1.3rem; border-bottom:2px solid #b79558; }.order-print-brand img{width:120px;height:86px;object-fit:contain}.order-print-brand span{color:#b01820;font-size:.65rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.order-print-brand h2{margin:.25rem 0;font:600 clamp(1.7rem,4vw,2.5rem)/1 "Cinzel",serif}.order-print-brand p{margin:0;color:#73695e;font-size:.72rem}
.order-print-meta { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1.3rem 0}.order-print-meta>div{padding:.8rem;border:1px solid #ded3c2;border-radius:10px;display:grid;gap:.25rem}.order-print-meta small{color:#897963;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase}.order-print-meta strong{font-size:.76rem;font-weight:600}
.order-print-sheet h3{margin:0 0 .7rem;color:#6c2530;font:600 1rem "Cinzel",serif}.order-print-notes,.order-print-items{margin-top:1.2rem}.order-print-notes p,.order-print-legal p{color:#675e55;font-size:.72rem;line-height:1.6}.order-print-items>div:not(.order-print-total){display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid #ded3c2;font-size:.76rem}.order-print-items b{color:#b01820}.order-print-items strong{white-space:nowrap}.order-print-total{margin-top:1rem;padding:1rem;display:flex;justify-content:space-between;border-radius:10px;background:#35252a;color:#fff}.order-print-total strong{color:#dfbd78;font-size:1.15rem}.order-print-legal{margin-top:1.4rem;padding-top:1rem;border-top:1px solid #ded3c2}.order-print-sheet>footer{margin-top:1.5rem;display:flex;justify-content:space-between;gap:1rem;color:#897963;font-size:.58rem}
.order-print-actions { justify-content:flex-end; flex-wrap:wrap; border-top:1px solid rgba(196,164,107,.18); }.order-print-actions small{width:100%;color:#aaa299;text-align:right;font-size:.62rem}.order-print-actions button:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:600px){.order-print-overlay{padding:0}.order-print-dialog{max-height:100dvh;border-radius:0}.order-print-sheet{width:calc(100% - 1rem);padding:1.2rem}.order-print-brand{grid-template-columns:82px 1fr}.order-print-brand img{width:82px;height:60px}.order-print-meta{grid-template-columns:1fr}.order-print-actions{display:grid;grid-template-columns:1fr}.order-print-actions button{width:100%}.order-print-sheet>footer{flex-direction:column}}
@media print {
  html, body,
  html.sommelier-drawer-open, body.sommelier-drawer-open,
  html.modal-open, body.modal-open,
  body.gateway-pending, body.theme-dark {
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body > *:not(#orderPrintOverlay) { display: none !important; }
  #orderPrintOverlay,
  body.gateway-pending > #orderPrintOverlay {
    position: static !important;
    inset: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    background: #fff !important;
    transform: none !important;
    filter: none !important;
  }
  .order-print-dialog { width: 100% !important; max-height: none !important; overflow: visible !important; border: 0 !important; box-shadow: none !important; background: #fff !important; transform: none !important; }
  .no-print { display: none !important; }
  .order-print-sheet { width: 100% !important; margin: 0 !important; padding: 12mm !important; box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  @page { size: A4; margin: 10mm; }
}
@media (max-width:560px) { .curarte-studio-footer { padding:1.15rem .9rem; } .curarte-studio-footer nav { display:grid; grid-template-columns:1fr; width:100%; } .curarte-studio-footer nav a { justify-content:center; } }

/* ANIMACIONES */
.reveal { opacity: 1; transform: none; transition: none; }
.reveal.in-view { opacity: 1; transform: none; }

/* ========================================= */
/* 9. BOTONES FLOTANTES (FABS) - REDISEÑO ELEGANTE */
/* ========================================= */

.fab-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 1000;
  pointer-events: none; /* Permite clicks a través del contenedor */
  transition: transform .32s cubic-bezier(.22,.8,.24,1), opacity .28s ease;
}

/* Permitir interacción solo en los botones */
.fab-main, .fab-options, .fab-item {
  pointer-events: auto;
}

/* Elevar prioridad cuando está abierto */
.fab-container.active {
  z-index: 3000 !important;
}

/* POSICIONES ESPECÍFICAS */
/* Menú Hamburguesa (Navegación general) */
.fab-nav-pos {
  bottom: 6rem; /* Un poco más arriba del de comida */
  z-index: 1001;
}

/* Botón Carrito (Izquierda) */
.fab-cart-pos {
  align-items: flex-start; /* Alineado a la izquierda */
  right: auto;
  left: 1.5rem;
  bottom: 2rem;
  z-index: 1300;
}

.sommelier-float {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 1100;
  width: min(390px, calc(100vw - 12rem)); min-height: 64px;
  padding: .65rem .8rem; display: grid;
  grid-template-columns: 42px minmax(0,1fr) 30px; align-items: center; gap: .72rem;
  color: #f7f0e7; text-align: left;
  border: 1px solid rgba(196,164,107,.3); border-radius: 18px;
  background: linear-gradient(145deg,rgba(31,31,29,.96),rgba(17,19,20,.97));
  box-shadow: 0 16px 38px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.045);
  transform: translateX(-50%); cursor: pointer;
  transition: transform .32s cubic-bezier(.22,.8,.24,1), border-color .25s ease, opacity .28s ease;
}
.sommelier-float[hidden] { display: none !important; }
.sommelier-float:hover { border-color: rgba(196,164,107,.62); transform: translateX(-50%) translateY(-3px); }
body.chrome-hidden .sommelier-float {
  transform: translate(-50%, calc(100% + 2.4rem));
  opacity: 0;
  pointer-events: none;
}
body.chrome-hidden .fab-container,
body.chrome-hidden .service-floating-controls {
  transform: translate3d(0, calc(120% + env(safe-area-inset-bottom, 0px)), 0);
  opacity: 0 !important;
  pointer-events: none !important;
}
.sommelier-float__icon { width:42px; height:42px; display:grid; place-items:center; color:#1a1a18; border-radius:13px; background:var(--accent-gold); }
.sommelier-float__copy { min-width:0; display:grid; gap:2px; }
.sommelier-float__copy small { color:#d7bd8b; font-size:.62rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.sommelier-float__copy strong { overflow:hidden; font-size:.82rem; font-weight:500; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.sommelier-float__arrow { color:#d9b56f; text-align:center; }
.sommelier-float.is-alerting { animation:sommelierFloatAlert .8s ease 1, sommelierFloatReveal .42s ease both; }
@keyframes sommelierFloatAlert { 50% { border-color:rgba(196,164,107,.72); box-shadow:0 18px 44px rgba(0,0,0,.34),0 0 0 4px rgba(196,164,107,.08); } }
@keyframes sommelierFloatReveal { from { opacity:0; transform:translate(-50%,18px) scale(.96); } }

@media (max-width: 768px) {
  .sommelier-float {
    left: 5rem; right: 5rem; bottom: calc(1rem + env(safe-area-inset-bottom));
    width: auto; min-height: 58px; padding: .55rem .65rem;
    grid-template-columns: 38px minmax(0,1fr) 24px; border-radius: 16px; transform: none;
  }
  .sommelier-float:hover { transform: translateY(-2px); }
  body.chrome-hidden .sommelier-float { transform: translateY(calc(100% + 2.4rem)); }
  .sommelier-float__icon { width:38px; height:38px; border-radius:11px; }
  .sommelier-float.is-alerting { animation:sommelierFloatAlert .65s ease 2, sommelierFloatRevealMobile .42s ease both; }
  @keyframes sommelierFloatRevealMobile { from { opacity:0; transform:translateY(18px) scale(.96); } }
}

@media (max-width: 480px) {
  .sommelier-float { left:4.6rem; right:4.6rem; }
  .sommelier-float__copy small { font-size:.55rem; letter-spacing:.09em; }
  .sommelier-float__copy strong { font-size:.72rem; }
}

/* ESTILO DEL BOTÓN PRINCIPAL (CÍRCULO) */
.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Sombra difusa elegante */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Rebote elástico */
  position: relative;
  overflow: hidden;
}

/* 1. Botón Rojo (Carta de Comida) */
#fabTriggerFood {
  background: var(--accent-red);
  color: white;
}

/* 2. Botón Blanco (Navegación) */
.fab-nav-style {
  background: #fff !important;
  color: var(--text-main) !important;
  border: 1px solid var(--accent-gold) !important;
}

/* 3. Botón Carrito (Círculo Premium) */
.fab-cart-style {
  /* Forma Circular Perfecta */
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  
  /* Color Negro Mate y Borde Dorado */
  background: #1a1a1a !important; 
  border: 1px solid var(--accent-gold) !important;
  
  /* Centrado perfecto del ícono */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
  position: relative !important; 
  
  /* CORRECCIÓN CLAVE: Permitir que la burbuja salga del círculo */
  overflow: visible !important; 
}

/* Icono Dorado */
.fab-cart-style .fab-icon {
  font-size: 1.2rem !important;
  color: var(--accent-gold) !important;
  margin: 0 !important;
}

/* Efecto Hover */
.fab-cart-style:hover {
  background: #fff !important;
  border-color: var(--accent-red) !important;
  transform: scale(1.1);
}
.fab-cart-style:hover .fab-icon {
  color: var(--accent-red) !important;
}

/* La Burbuja Roja del Contador (CORREGIDA) */
.cart-count {
  position: absolute !important;
  top: -5px !important;    /* Más arriba para no tocar el borde */
  right: -5px !important;  /* Más a la derecha para salir del círculo */
  
  background: var(--accent-red) !important;
  color: white !important;
  border: 2px solid #fff !important; /* Borde blanco para separar */
  
  /* Tamaño flexible para números de dos dígitos */
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 4px !important; /* Espacio interno para que el texto no toque bordes */
  
  border-radius: 12px !important; /* Redondo pero adaptable */
  
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  z-index: 10;
}

/* CONTENIDO DEL BOTÓN (ICONO Y TEXTO) */
.fab-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease, opacity 0.3s;
}

.fab-text {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.fab-close {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  transform: rotate(-90deg);
  transition: all 0.3s ease;
}

/* ESTADO ACTIVO (ABIERTO) */
.fab-container.active .fab-main {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3); /* Anillo de brillo */
}

/* Transformación a 'X' de cerrar */
.fab-container.active .fab-icon,
.fab-container.active .fab-text {
  opacity: 0;
  transform: translateY(-10px);
}

.fab-container.active .fab-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* --- LISTA DE OPCIONES DESPLEGABLES --- */
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 1rem;
  
  /* Estado oculto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fab-container.active .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ITEMS INDIVIDUALES (LAS OPCIONES) */
.fab-item {
  background: rgba(255, 255, 255, 0.95); /* Casi sólido para legibilidad */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 164, 107, 0.3); /* Borde dorado sutil */
  color: var(--text-main);
  padding: 0.7rem 1.2rem;
  border-radius: 12px; /* Bordes más cuadrados pero suaves */
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  
  /* Animación de entrada escalonada */
  transform: translateX(10px);
  opacity: 0;
}

.fab-container.active .fab-item {
  transform: translateX(0);
  opacity: 1;
}

/* Efecto Hover en las opciones */
.fab-item:hover {
  background: var(--text-main);
  color: #fff;
  transform: translateX(-5px); /* Pequeño desplazamiento a la izquierda */
  border-color: var(--text-main);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Retrasos para efecto cascada (Stagger) */
.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.05s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.1s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.15s; }
.fab-container.active .fab-item:nth-child(4) { transition-delay: 0.2s; }
.fab-container.active .fab-item:nth-child(5) { transition-delay: 0.25s; }
.fab-container.active .fab-item:nth-child(6) { transition-delay: 0.3s; }
.fab-container.active .fab-item:nth-child(7) { transition-delay: 0.35s; }


/* RESPONSIVE: Ajustes para móvil */
@media (max-width: 768px) {
  .fab-container {
    right: 1rem;
    bottom: 1.5rem;
  }
  
  .fab-cart-pos {
    left: 1rem;
    right: auto;
  }
  
  .fab-nav-pos {
    bottom: 5.5rem; /* Separarlo del de comida */
  }

  .fab-main {
    width: 55px;
    height: 55px;
  }
}
/* MODAL Y CARRITO */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); justify-content: center; align-items: center; }
.modal-content { background-color: rgba(255,255,255,0.8); margin: auto; padding: 2.5rem; border-radius: 8px; width: 90%; max-width: 500px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; animation: slideUp 0.4s ease; max-height: 90vh; overflow-y: auto; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.06);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: var(--accent-red);
  color: #fff;
}

span.close-modal {
  display: none;
}
.hidden { display: none; }

/* CARRITO VINOS */
.wine-options-container { margin-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 1rem; }
.wine-option-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; font-size: 0.9rem; }
.wine-opt-label { font-weight: 600; color: var(--text-soft); }

/* RESPONSIVE */
@media (max-width: 1024px) { .menu-grid, .vinos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    background-color: var(--bg-paper);
  }

  body.theme-dark {
    background-color: #0f1113;
  }

  .site-wrapper,
  main,
  section {
    max-width: 100%;
  }

  .hero-photo-layer { background-position: center left !important; }
  .main-nav { display: none; }
  .site-header { padding: 0.5rem 4vw; }
  .hero {
    min-height: min(74svh, 650px);
    padding: 6.8rem 4vw 1rem;
    text-align: left;
    justify-content: center;
  }
  .hero-carousel-shell,
  .hero-card.hero-grid {
    width: 100%;
    padding: 0.85rem;
    overflow: hidden;
    backdrop-filter: blur(34px);
    -webkit-backdrop-filter: blur(34px);
  }
  .hero-card.hero-grid.hero-static-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "welcome"
      "sommelier"
      "actions";
    gap: 0.8rem;
    padding: 0;
    overflow: visible;
  }
  .hero-static-grid .hero-panel-brand { min-height: 0; padding: 1.3rem; }
  .hero-static-grid .hero-logo { width: min(48vw, 155px); margin-bottom: 1rem; }
  .hero-static-grid .hero-overline { margin-top: 0; }
  .hero-static-grid .hero-title { font-size: clamp(2.15rem, 10vw, 3.3rem); }
  .hero-static-grid .hero-promo-list { grid-template-columns: 1fr; }
  .hero-static-grid .hero-actions { grid-template-columns: 1fr 1fr; }
  .catalog-search { width: min(58vw, 420px); height: 38px; }
  .catalog-search-count { display: none; }
  .header-portfolio-link { width: 38px; height: 38px; font-size: 0.9rem; }
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 0.65rem;
  }
  .site-header .logo { grid-column: 1; grid-row: 1; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .catalog-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .hero-panel {
    padding: 1rem;
  }
  .hero-logo { margin: 0 0 0.75rem; max-width: 100%; width: min(68vw, 220px); }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.02rem; }
  .hero-copy,
  .hero-text { font-size: 0.9rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions-single { grid-template-columns: 1fr; }
  .hero-inline-btn { width: 100%; }
  .hero-promo-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .hero-promo-item span,
  .hero-promo-item em {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-slide {
    min-height: 300px;
  }
  .hero-carousel-track {
    display: flex;
    gap: 0.9rem;
    padding-right: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab;
  }
  .hero-carousel-track.is-dragging { cursor: grabbing; }
  .hero-slide {
    flex: 0 0 calc(100% - 1rem);
    min-width: calc(100% - 1rem);
    scroll-snap-align: start;
  }
  .menu-tabs { display: none !important; }
  
  /* CARRUSEL MÓVIL (Restaurado) */
  .menu-grid, .vinos-grid { 
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; 
    gap: 1rem; padding-bottom: 2rem; padding-inline: 0.5rem; scrollbar-width: none; 
  }
  .menu-grid::-webkit-scrollbar, .vinos-grid::-webkit-scrollbar { display: none; }
  .menu-card, .vino-card { flex: 0 0 85%; width: 85%; min-width: 85%; scroll-snap-align: start; }
  
  .menu-list li { grid-template-columns: 1fr auto; gap: 0.3rem; }
  .guide-steps { grid-template-columns: 1fr; }
  .mobile-scroll-hint { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-red); margin-bottom: 0.5rem; padding-right: 1rem; font-weight: 700; opacity: 0.8; }
  .mobile-scroll-hint .arrow { display: inline-block; animation: bounce-right 1.5s infinite ease-in-out; }
  @keyframes bounce-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
  
  .modal-content { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; margin: 0; padding: 2rem 1.5rem; }
}
.mobile-scroll-hint { display: none; }
@media (max-width: 768px) { .mobile-scroll-hint { display: flex; } }

html.modal-open,
body.modal-open {
  overflow: hidden;
}

/* ========================================= */
/* ESTILOS INTERNOS DEL MODAL (CARRITO & FORM) */
/* ========================================= */

/* Encabezado del Modal */
.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1rem;
}

#modalTitle {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

#modalSubtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Caja de Resumen del Carrito */
.cart-summary-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,246,239,0.96));
  padding: 1.2rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(196, 164, 107, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.cart-summary-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 0.5rem;
}

/* Lista de productos dentro del carrito */
.cart-items-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 5px; /* Espacio para scrollbar */
}

/* Fila individual de producto */
.cart-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
  padding: 0.15rem 0 0.75rem;
}

/* Botones +/- dentro del modal */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.15rem 0.2rem;
  border-radius: 999px;
  background: rgba(196, 164, 107, 0.08);
  border: 1px solid rgba(196, 164, 107, 0.14);
}

.cart-item-name {
  min-width: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.45;
  padding-top: 0.12rem;
}

.cart-item-subtotal {
  white-space: nowrap;
  font-weight: 800;
  color: var(--accent-red);
  padding-top: 0.12rem;
}

.modal-minus, .modal-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-main);
  transition: all 0.2s;
}

.modal-minus:hover, .modal-plus:hover {
  background: var(--accent-red);
  color: white;
  border-color: var(--accent-red);
}

/* Fila de Total */
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(0,0,0,0.1);
  color: var(--accent-red);
}

/* Formularios (Inputs y Labels) */
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 164, 107, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Botones del Modal */
.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn-ghost-sm {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}
.btn-ghost-sm:hover { color: var(--accent-red); }

/* Caja de Información Bancaria */
.bank-info-box {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(196, 164, 107, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 164, 107, 0.12), rgba(255,255,255,0.85));
}

.bank-info-box h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #8a7030; /* Dorado oscuro legible */
  font-weight: 700;
}

.payment-details {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  background: rgba(255,255,255,0.72);
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 164, 107, 0.16);
}

/* Alertas y Mensajes */
.modal-warning {
  background: linear-gradient(135deg, #fff3cd, #fff8e3);
  color: #856404;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ffeeba;
  line-height: 1.4;
}

.empty-cart-msg {
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
  padding: 1.5rem;
}
/* ========================================= */
/* SECCIÓN CURARTE IA (ESTILO ORIGINAL RESTAURADO) */
/* ========================================= */
.ai-pairing-container { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 3rem; 
  padding: 0 1rem; 
}

.ai-card { 
  background: white; 
  border-radius: 12px; 
  padding: 2rem; 
  max-width: 600px; 
  position: relative; 
  border: 1px solid rgba(0,0,0,0.05); 
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15); 
  overflow: hidden; 
}

/* La línea de color superior (Gradiente Tech) */
.ai-card::before { 
  content: ""; 
  position: absolute; 
  top: 0; left: 0; right: 0; 
  height: 4px; 
  background: linear-gradient(90deg, #4285F4, #9B72CB, #D96570); 
}

.ai-header { 
  display: flex; 
  align-items: center; 
  gap: 0.8rem; 
  margin-bottom: 0.5rem; 
  justify-content: center; 
}

/* El título con gradiente azul-rosado */
.ai-header h3 { 
  font-family: "Cinzel", serif; 
  margin: 0; 
  background: -webkit-linear-gradient(45deg, #4285F4, #D96570); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  font-size: 1.4rem; 
}

/* El ícono de la varita en púrpura */
.ai-icon { 
  color: #9B72CB; 
  font-size: 1.2rem; 
}

.ai-subtitle { 
  text-align: center; 
  font-size: 0.75rem; 
  text-transform: uppercase; 
  letter-spacing: 0.2em; 
  color: var(--text-soft); 
  margin-bottom: 1.5rem; 
}

.ai-text { 
  text-align: center; 
  font-size: 0.95rem; 
  line-height: 1.7; 
  color: var(--text-soft); 
  margin-bottom: 1.5rem; 
}

.ai-badge { 
  text-align: center; 
}

/* La pastilla de sugerencia en azul tecnológico */
.ai-badge span { 
  display: inline-block; 
  font-size: 0.7rem; 
  padding: 0.4rem 1rem; 
  border-radius: 50px; 
  background: rgba(66, 133, 244, 0.08); 
  color: #4285F4; 
  font-weight: 700; 
  letter-spacing: 0.05em; 
  border: 1px solid rgba(66, 133, 244, 0.2); 
}

#ai-text, #ai-recommendation { 
  transition: opacity 0.3s ease-in-out; 
}

/* ========================================= */
/* SECCION MARIDAJE IA - ESTILO CURARTE */
/* ========================================= */
.pairing-section {
  background:
    radial-gradient(circle at top left, rgba(196, 164, 107, 0.14), transparent 35%),
    linear-gradient(180deg, #f8f3ea 0%, #fdfbf7 100%);
}

.pairing-ai-card {
  max-width: 1120px;
  width: 100%;
  padding: 2.4rem;
  border-radius: 18px;
  border: 1px solid rgba(196, 164, 107, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
    radial-gradient(circle at top right, rgba(237, 28, 36, 0.08), transparent 28%);
}

.pairing-ai-card::before {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-red));
  height: 3px;
}

.pairing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.pairing-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-red);
  font-weight: 700;
}

.pairing-copy h3 {
  margin: 0 0 0.8rem;
  text-align: left;
  font-size: 2rem;
  line-height: 1.2;
}

.pairing-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.pairing-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.pairing-panel {
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pairing-panel-accent {
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.08), rgba(196, 164, 107, 0.1));
  border-color: rgba(237, 28, 36, 0.12);
}

.pairing-panel-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

.pairing-status,
.pairing-recommendation {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

.pairing-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pairing-selection-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  font-weight: 700;
}

.pairing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.pairing-suggestion-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 164, 107, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.05);
}

.pairing-suggestion-card.is-placeholder {
  background: rgba(255, 255, 255, 0.72);
}

.pairing-suggestion-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.pairing-badge,
.pairing-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pairing-badge {
  padding: 0.42rem 0.7rem;
  background: rgba(237, 28, 36, 0.08);
  color: var(--accent-red);
}

.pairing-score {
  padding: 0.42rem 0.65rem;
  color: var(--accent-gold);
  border: 1px solid rgba(196, 164, 107, 0.28);
}

.pairing-suggestion-card h4 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  line-height: 1.35;
}

.pairing-suggestion-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.pairing-serve {
  font-size: 0.88rem;
  color: var(--text-main) !important;
  font-weight: 600;
}

.pairing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pairing-tags span {
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.76rem;
  color: var(--text-soft);
}

.pairing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.2rem;
}

.pairing-price {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--accent-red);
}

.pairing-add-btn {
  padding: 0.72rem 1.2rem;
  font-size: 0.68rem;
}

@media (max-width: 1024px) {
  .pairing-hero,
  .pairing-insights,
  .pairing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pairing-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .experience-story-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .pairing-ai-card {
    padding: 1.35rem;
    border-radius: 14px;
  }

  .pairing-copy h3 {
    font-size: 1.5rem;
  }

  .pairing-insights {
    grid-template-columns: 1fr;
  }

  .pairing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0.9rem;
    padding-bottom: 0.4rem;
    grid-template-columns: none;
    scrollbar-width: none;
    cursor: grab;
  }

  .pairing-grid::-webkit-scrollbar {
    display: none;
  }

  .pairing-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
  }

  .pairing-suggestion-card {
    flex: 0 0 88%;
    min-width: 88%;
    scroll-snap-align: start;
  }

  .pairing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .pairing-add-btn {
    width: 100%;
  }
}
/* --- CORRECCIÓN DE TEXTO (QUITAR MAYÚSCULAS) --- */
.fab-item, .fab-text {
  text-transform: none !important; /* Elimina el forzado de mayúsculas */
  font-size: 0.85rem !important;   /* Ajuste de tamaño para que se vea delicado */
  letter-spacing: normal !important; /* Quita el espaciado exagerado */
}
/* --- CORRECCIÓN DE SUBRAYADOS --- */
.fab-item, 
.fab-item:hover, 
.fab-item:visited, 
.fab-item:active,
a.fab-item {
  text-decoration: none !important; /* Elimina la línea de enlace */
  border-bottom: none !important;   /* Elimina cualquier borde inferior */
}

body.theme-dark {
  --bg-paper: #0f1113;
  --text-main: #f5efe4;
  --text-soft: #c4b7a3;
  --price-ink: #f5efe4;
  --border-soft: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(20, 23, 26, 0.72);
  background-color: #0f1113;
  background-image: linear-gradient(rgba(15,17,19,0.84), rgba(15,17,19,0.9));
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 70vh;
}

body.theme-dark .site-header,
body.theme-dark .gateway-content,
body.theme-dark .menu-card,
body.theme-dark .vino-card,
body.theme-dark .promo-carousel-container,
body.theme-dark .promo-slide,
body.theme-dark .ai-card,
body.theme-dark .pairing-ai-card,
body.theme-dark .pairing-suggestion-card,
body.theme-dark .modal-content,
body.theme-dark .cart-summary-box,
body.theme-dark .bank-info-box,
body.theme-dark .pairing-panel,
body.theme-dark .fab-item,
body.theme-dark .gateway-btn,
body.theme-dark .qty-selector,
body.theme-dark .payment-details {
  background-color: #171b1f !important;
  color: var(--text-main);
  border-color: rgba(196, 164, 107, 0.18);
}
body.theme-dark .catalog-search { background: rgba(17,19,23,0.72); border-color: rgba(255,255,255,0.14); }
body.theme-dark .catalog-search input { color: #f5efe4; }
body.theme-dark .catalog-search input::placeholder { color: rgba(245,239,228,0.56); }
body.theme-dark .catalog-search:focus-within { border-color: rgba(237,28,36,.58); background: rgba(17,19,23,.9); }
body.theme-dark .catalog-search-submit { color: #f4c875; }
body.theme-dark .catalog-search-results { background: rgba(20,23,26,.96); border-color: rgba(196,164,107,.24); }
body.theme-dark .catalog-search-option { color: #f5efe4; }
body.theme-dark .catalog-search-option:hover,
body.theme-dark .catalog-search-option:focus-visible { background: rgba(237,28,36,.14); }
body.theme-dark .header-portfolio-link { color: var(--accent-gold); }

body.theme-dark .modal-content {
  background-color: rgba(23, 27, 31, 0.8) !important;
}

body.theme-dark .experience-section,
body.theme-dark .vinos-section,
body.theme-dark .promos-section,
body.theme-dark .pairing-section {
  background: linear-gradient(180deg, rgba(14,16,18,0.98), rgba(20,23,26,0.98));
}

body.theme-dark .pairing-ai-card {
  background:
    linear-gradient(135deg, rgba(19,22,25,0.96), rgba(14,16,18,0.94)),
    radial-gradient(circle at top right, rgba(196,164,107,0.1), transparent 26%) !important;
  border-color: rgba(196, 164, 107, 0.2);
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

body.theme-dark .hero-logo,
body.theme-dark .gateway-logo {
  filter: brightness(0) invert(1);
}

body.theme-dark img.hero-logo,
body.theme-dark img.header-brand-logo {
  content: url("../img/logo-dark.svg");
  filter: none !important;
}
body.theme-dark .inline-brand-logo { filter: none !important; }
body.theme-dark .inline-brand-logo .st0 { fill: #f5efe4 !important; }
body.theme-dark .inline-brand-logo .st1 { fill: var(--accent-red) !important; }
body.theme-dark img.header-brand-logo {
  content: url("../img/logo.svg");
  filter: brightness(0) invert(1) !important;
}
body.theme-dark .header-brand-logo.inline-brand-logo { filter: none !important; }
body.theme-dark .header-brand-logo.inline-brand-logo .st0,
body.theme-dark .header-brand-logo.inline-brand-logo .st1 { fill: #f5efe4 !important; }

body.theme-dark .experience-toggle {
  background: rgba(23, 27, 31, 0.94);
  border-color: rgba(196, 164, 107, 0.16);
  box-shadow: 0 16px 38px rgba(0,0,0,0.28);
}

body.theme-dark .experience-content {
  border-top-color: rgba(255,255,255,0.08);
}

body.theme-dark .experience-story-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-color: rgba(196, 164, 107, 0.14);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}

body.theme-dark .pairing-panel,
body.theme-dark .pairing-panel-accent {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) !important;
  border-color: rgba(196, 164, 107, 0.14);
}

body.theme-dark .pairing-badge {
  background: rgba(237, 28, 36, 0.16);
  color: #ffd7d9;
}

body.theme-dark .pairing-score {
  background: rgba(255,255,255,0.04);
  color: #f0d99a;
  border-color: rgba(196,164,107,0.18);
}

body.theme-dark .item-price,
body.theme-dark .size-price,
body.theme-dark .promo-new-price,
body.theme-dark .pairing-price,
body.theme-dark .sommelier-dish-card > div strong,
body.theme-dark .catalog-search-option b,
body.theme-dark .pairing-dish-analysis strong small {
  color: var(--price-ink);
}

body.theme-dark .hero::after {
  background: radial-gradient(circle at 15% 80%, rgba(10,10,10,0.25) 0, transparent 55%);
}

body.theme-dark .hero-card {
  background: rgba(18, 22, 25, 0.58);
  border-color: rgba(196, 164, 107, 0.22);
  box-shadow: 0 16px 38px rgba(0,0,0,0.35);
}

body.theme-dark .hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(196, 164, 107, 0.16);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

body.theme-dark .hero-chip {
  background: rgba(237, 28, 36, 0.16);
  border-color: rgba(237, 28, 36, 0.2);
  color: #ffd7d9;
}

body.theme-dark .hero-promo-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(196,164,107,0.14);
}

body.theme-dark .hero-fact-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(196,164,107,0.16);
}

body.theme-dark .hero-text,
body.theme-dark .experience-content p,
body.theme-dark .section-description,
body.theme-dark .story-content,
body.theme-dark .promo-desc,
body.theme-dark .vino-notas,
body.theme-dark .pairing-body,
body.theme-dark .pairing-status,
body.theme-dark .pairing-recommendation,
body.theme-dark .pairing-suggestion-card p,
body.theme-dark .item-meta,
body.theme-dark #modalSubtitle,
body.theme-dark .form-group label,
body.theme-dark .payment-details,
body.theme-dark .empty-cart-msg {
  color: var(--text-soft) !important;
}

body.theme-dark .nav-link,
body.theme-dark .logo,
body.theme-dark .item-name,
body.theme-dark .menu-card-title,
body.theme-dark .section-title,
body.theme-dark .vino-name,
body.theme-dark #modalTitle,
body.theme-dark .cart-summary-box h3,
body.theme-dark .bank-info-box h3,
body.theme-dark .promo-title,
body.theme-dark .promo-item,
body.theme-dark .pairing-copy h3,
body.theme-dark .pairing-suggestion-card h4 {
  color: var(--text-main) !important;
}

body.theme-dark .btn-ghost,
body.theme-dark .header-gateway-btn,
body.theme-dark .theme-toggle-btn,
body.theme-dark .tab-btn,
body.theme-dark .qty-btn,
body.theme-dark .modal-minus,
body.theme-dark .modal-plus {
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  border-color: rgba(196, 164, 107, 0.25);
}

body.theme-dark .tab-btn.active,
body.theme-dark .btn-primary,
body.theme-dark .btn-promo {
  color: #fff !important;
}

body.theme-dark .promo-items,
body.theme-dark .pairing-tags span,
body.theme-dark .pairing-selection-chip {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-soft);
}

body.theme-dark .modal-overlay {
  background-color: rgba(0, 0, 0, 0.58);
}

body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select {
  background: #111417;
  color: var(--text-main);
  border-color: rgba(196,164,107,0.18);
}

body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder {
  color: #8f8476;
}

body.theme-dark .modal-header {
  background: #171b1f;
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.42);
}

body.theme-dark .cart-total-row {
  color: #ff7c82;
  border-top-color: rgba(255,255,255,0.1);
}

body.theme-dark .cart-summary-box {
  background: linear-gradient(180deg, rgba(28, 33, 37, 0.88), rgba(18, 22, 25, 0.84)) !important;
  color: var(--text-main) !important;
}

body.theme-dark .cart-summary-box h3,
body.theme-dark .cart-summary-box .cart-item-name,
body.theme-dark .cart-summary-box .cart-item-controls span,
body.theme-dark .cart-summary-box .cart-total-row span,
body.theme-dark .cart-summary-box .cart-total-row strong,
body.theme-dark .cart-summary-box .empty-text {
  color: var(--text-main) !important;
}

body.theme-dark .cart-summary-box .cart-total-row,
body.theme-dark .cart-summary-box .cart-item-subtotal {
  color: #ff9ca2 !important;
}

body.theme-dark .cart-item-row {
  border-bottom-color: rgba(255,255,255,0.08);
}

body.theme-dark .cart-item-controls {
  background: rgba(255,255,255,0.05);
  border-color: rgba(196,164,107,0.18);
}

body.theme-dark .cart-item-name {
  color: var(--text-main);
}

body.theme-dark .cart-item-subtotal {
  color: #ff7c82;
}

body.theme-dark .btn-block {
  box-shadow: 0 -8px 24px rgba(23,27,31,0.96);
}

body.theme-dark .bank-info-box {
  background: linear-gradient(135deg, rgba(125, 92, 22, 0.34), rgba(73, 52, 8, 0.52)) !important;
  border-color: rgba(240, 217, 154, 0.18);
}

body.theme-dark .payment-details {
  background: linear-gradient(180deg, rgba(54, 40, 12, 0.56), rgba(27, 20, 7, 0.72)) !important;
  color: #f5ead2 !important;
}

body.theme-dark .modal-warning {
  background: linear-gradient(135deg, rgba(117, 84, 10, 0.22), rgba(76, 55, 7, 0.16));
  color: #f0d99a;
  border-color: rgba(240, 217, 154, 0.16);
}

body.theme-dark .close-modal {
  background: rgba(255,255,255,0.07);
  color: var(--text-main);
}

body.theme-dark .close-modal:hover {
  background: var(--accent-red);
  color: #fff;
}

body.theme-dark .promo-thumb {
  border-color: rgba(196,164,107,0.32);
}

body.theme-dark .promo-thumb.active,
body.theme-dark .fab-nav-style {
  background: #f5efe4 !important;
  color: #111317 !important;
  border-color: #f5efe4 !important;
}

body.theme-dark .fab-cart-style {
  background: #111317 !important;
}

@media (max-width: 768px) {
  .fab-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 3500 !important;
  }

  .fab-main {
    display: flex !important;
    visibility: visible !important;
  }

  .fab-food,
  #fabFood,
  #fabNav,
  #fabCartContainer {
    visibility: visible !important;
  }

  body {
    padding-bottom: 6.5rem;
  }

  .section {
    padding: 4.25rem 4.5vw 3.25rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .section-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .site-header {
    padding: 0.65rem 4vw;
  }

  .logo {
    font-size: 0.95rem;
  }

  .hero {
    min-height: min(74svh, 650px);
    padding: 6.8rem 4vw 1rem;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    padding: 1.6rem 1.2rem 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .menu-grid,
  .vinos-grid {
    align-items: flex-start;
    gap: 0.85rem;
    padding-inline: 0.15rem;
    padding-bottom: 0.5rem;
  }

  .menu-card,
  .vino-card {
    flex: 0 0 91%;
    width: 91%;
    min-width: 91%;
    height: auto;
    align-self: flex-start;
    padding: 1.3rem 1rem;
    scroll-snap-align: start;
  }

  .menu-card-title,
  .vino-name {
    font-size: 1.15rem;
  }

  .menu-card-subtitle,
  .vino-notas,
  .story-content,
  .item-meta {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .menu-list li:not(.item-complex) {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.85rem 0;
  }

  .price-controls {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .ai-pairing-container,
  .wine-guide-container {
    margin-top: 0.35rem;
    margin-bottom: 1.6rem;
    padding: 0 0.2rem;
  }

  .pairing-section {
    margin-top: var(--assistant-mobile-gap, 0px);
    transition: margin-top 0.28s ease;
  }

  .header-top {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .header-info {
    min-width: 0;
  }

  .size-options-grid {
    grid-template-columns: 1fr;
  }

  .contacto-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contacto-actions .btn-primary,
  .contacto-actions .btn-ghost {
    width: 100%;
  }

  .fab-options {
    max-height: min(58vh, 420px);
    overflow-y: auto;
    padding-right: 0.15rem;
  }

  .fab-item {
    width: min(76vw, 280px);
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    border-radius: 14px;
  }

  .fab-nav-pos {
    bottom: calc(5.9rem + env(safe-area-inset-bottom));
  }

  .fab-cart-pos {
    left: 0.9rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  #fabFood {
    right: 0.9rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  #fabNav {
    right: 0.9rem;
  }

  .modal-overlay {
    align-items: stretch;
    padding: 0;
    background-color: rgba(15, 15, 15, 0.38);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .modal-content {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    padding: 0 1rem calc(1.4rem + env(safe-area-inset-bottom));
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .close-modal {
    position: sticky;
    top: 0.9rem;
    right: 1rem;
    margin-top: 0.9rem;
    margin-left: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  }

  .modal-header {
    position: sticky;
    top: 0.85rem;
    z-index: 2;
    background: #fff;
    padding: 1rem 2.8rem 1rem 1rem;
    margin-top: -2.9rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(17, 22, 29, 0.08);
  }

  #modalTitle {
    font-size: 1.28rem;
  }

  #modalSubtitle {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .cart-summary-box,
  .bank-info-box,
  .modal-warning {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .cart-items-list {
    max-height: none;
  }

  .cart-item-row {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .cart-item-name,
  .cart-item-subtotal {
    padding-top: 0;
  }

  .cart-total-row {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.88rem 0.85rem;
    font-size: 0.98rem;
    border-radius: 8px;
  }

  .form-group textarea {
    min-height: 96px;
  }

  #reservationForm {
    overflow: visible;
    padding-right: 0;
    overscroll-behavior: contain;
  }

  .btn-block {
    position: sticky;
    bottom: 0;
    margin-top: 1rem;
    box-shadow: 0 -8px 24px rgba(255,255,255,0.96);
  }

  .payment-details {
    font-size: 0.84rem;
  }
}

/* Cierre visual CurArte: cards editoriales sin lianas SVG. */
.menu-card::after, .vino-card::after, .pairing-suggestion-card::after,
.experience-story-card::after, .pairing-panel::after,
.wine-guide-card::after, .ai-card::after { display: none !important; content: none !important; }
.menu-card, .vino-card, .pairing-suggestion-card, .experience-story-card,
.ai-card, .wine-guide-card, .cart-summary-box, .bank-info-box {
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(245,239,228,.68));
  border: 1px solid rgba(196,164,107,.34);
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
body.theme-dark .menu-card, body.theme-dark .vino-card,
body.theme-dark .pairing-suggestion-card, body.theme-dark .experience-story-card,
body.theme-dark .ai-card, body.theme-dark .wine-guide-card,
body.theme-dark .cart-summary-box, body.theme-dark .bank-info-box {
  background: linear-gradient(145deg, rgba(28,30,31,.92), rgba(17,19,21,.86)) !important;
  border-color: rgba(196,164,107,.24);
}

/* Drawer izquierdo: desplaza la experiencia hacia el lado opuesto. */
:root { --cart-drawer-width: min(520px, 88vw); }
#reservationModal.modal-overlay { display: block; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(8,9,10,.42); transition: opacity .35s ease, visibility .35s ease; }
#reservationModal.drawer-open { visibility: visible; opacity: 1; pointer-events: auto; }
#reservationModal .modal-content { position:fixed; inset:0 auto 0 0; width:var(--cart-drawer-width); max-width:none; height:100dvh; max-height:100dvh; margin:0; padding:1.5rem 1.4rem 2rem; border-radius:0 22px 22px 0; border:0; border-right:2px solid rgba(237,28,36,.5); transform:translate3d(-104%,0,0); transition:transform .42s cubic-bezier(.22,.8,.24,1); overflow-y:auto; overscroll-behavior:contain; background:rgba(245,239,228,.97); }
#reservationModal.drawer-open .modal-content { transform: translateX(0); }
body > *:not(#reservationModal):not(.gateway-overlay):not(.portfolio-dialog):not(.order-print-overlay) { transition:transform .42s cubic-bezier(.22,.8,.24,1); }
body.drawer-open > *:not(#reservationModal):not(.gateway-overlay):not(.portfolio-dialog):not(.order-print-overlay) { transform:translate3d(var(--cart-drawer-width),0,0) !important; }
.drawer-progress { display: none; grid-template-columns: repeat(4,1fr); gap: .35rem; margin: .75rem 0 1.2rem; }
.drawer-progress span { height: 4px; border-radius: 9px; background: rgba(26,26,26,.14); }
.drawer-progress span.active { background: var(--accent-red); }
.drawer-step-label { margin: 0 0 .35rem; color: var(--accent-red); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.drawer-nav { position: sticky; bottom: -2rem; z-index: 10; display: none; grid-template-columns: 1fr 1.4fr; gap: .65rem; margin: 1rem -1.4rem -2rem; padding: .85rem 1.4rem 1rem; background: inherit; border-top: 1px solid rgba(196,164,107,.25); }
.drawer-nav button { width: 100%; }
body.theme-dark #reservationModal .modal-content { background: rgba(18,20,22,.98) !important; }
@media (max-width:768px) {
  :root { --cart-drawer-width: min(420px, 86vw); }
  #reservationModal .modal-content { width:var(--cart-drawer-width); padding:1.2rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); border-radius:0 18px 18px 0; }
  .drawer-step-part { display: none !important; }
  .drawer-step-part.is-active { display: block !important; }
  .drawer-progress, .drawer-nav { display: grid; }
  .drawer-nav { margin-inline: -1rem; padding-inline: 1rem; }
}
@media (max-width:420px) { :root { --cart-drawer-width: 88vw; } }

/* Checkout editorial CurArte */
#reservationModal .modal-content {
  display:flex; flex-direction:column; gap:0;
  padding:0 1.2rem calc(1rem + env(safe-area-inset-bottom));
  color:#29231f;
  background:
    radial-gradient(circle at 0 0,rgba(196,164,107,.12),transparent 30%),
    linear-gradient(180deg,#f7f1e7,#eee4d6) !important;
  border-right:1px solid rgba(196,164,107,.38);
  box-shadow:20px 0 70px rgba(0,0,0,.28);
}
#reservationModal .modal-header {
  position:sticky; top:0; z-index:12; margin:0 -1.2rem; padding:1.25rem 4.2rem 1rem 1.2rem;
  border-bottom:1px solid rgba(92,70,48,.12);
  background:rgba(247,241,231,.92); backdrop-filter:blur(18px);
}
.drawer-eyebrow { display:block; margin-bottom:.28rem; color:#a61f27; font-size:.58rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
#reservationModal .modal-header h2 { margin:0; color:#2d2420; font:600 clamp(1.55rem,5vw,2rem)/1 "Cinzel",serif; }
#reservationModal .modal-subtitle { margin:.35rem 0 0; color:#786d62; font-size:.72rem; }
#reservationModal .close-modal-btn { position:fixed; top:1rem; left:calc(var(--cart-drawer-width) - 3.2rem); z-index:20; width:36px; height:36px; color:#4a3f37; border:1px solid rgba(92,70,48,.15); border-radius:11px; background:rgba(255,255,255,.5); }
#reservationModal > .modal-content > span.close-modal { display:none; }
.drawer-progress { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.4rem; margin:.9rem 0 1rem; }
.drawer-progress::before { content:""; position:absolute; left:8%; right:8%; top:15px; height:1px; background:rgba(92,70,48,.14); }
.drawer-progress button { position:relative; z-index:1; min-width:0; padding:0; display:grid; justify-items:center; gap:.3rem; border:0; color:#8b7f74; background:transparent; cursor:pointer; }
.drawer-progress button span { width:31px; height:31px; display:grid; place-items:center; border:1px solid rgba(92,70,48,.18); border-radius:10px; background:#eee4d6; font-size:.66rem; font-weight:700; }
.drawer-progress button b { font-size:.53rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.drawer-progress button.active span { color:#fff; border-color:#8f2530; background:#8f2530; box-shadow:0 6px 16px rgba(112,64,77,.2); }
.drawer-progress button.active b { color:#6f1f28; }.drawer-progress button.complete span { color:#755b2c; border-color:rgba(196,164,107,.5); background:#dfc993; }
#reservationModal .drawer-step-part { animation:drawerStepEnter .32s ease both; }
@keyframes drawerStepEnter { from { opacity:0; transform:translateX(14px); } }
#reservationModal .cart-summary-box,#reservationModal .bank-info-box,#reservationModal .modal-warning,#reservationModal .form-group {
  border:1px solid rgba(92,70,48,.13); border-radius:16px; background:rgba(255,255,255,.42) !important; box-shadow:none; backdrop-filter:none;
}
#reservationModal .cart-summary-box,#reservationModal .bank-info-box { padding:1rem; }
.drawer-card-heading { display:flex; align-items:center; gap:.7rem; margin-bottom:.85rem; }
.drawer-card-heading>span { width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:11px;color:#71434b;background:rgba(112,64,77,.09);font-size:.62rem;font-weight:700; }
.drawer-card-heading>div { display:grid;gap:.05rem }.drawer-card-heading small { color:#9a7b47;font-size:.52rem;letter-spacing:.12em;text-transform:uppercase }.drawer-card-heading h3 { margin:0!important;color:#352c27!important;font:600 1.05rem "Cinzel",serif!important; }
#reservationModal .cart-items-list { display:grid; gap:.6rem; max-height:none; padding:0; }
#reservationModal .cart-item-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"copy subtotal" "controls subtotal"; gap:.45rem .75rem; padding:.78rem; border:1px solid rgba(92,70,48,.11); border-radius:13px; background:rgba(255,255,255,.48); }
.cart-item-copy { grid-area:copy; min-width:0; }.cart-item-copy small { color:#8c7e72;font-size:.58rem }.cart-item-name { color:#342c27!important;font-size:.76rem!important;font-weight:600;line-height:1.3 }.cart-item-subtotal { grid-area:subtotal; align-self:center; color:#8f2530!important;font-size:.82rem!important;font-weight:700 }.cart-item-controls { grid-area:controls; width:max-content; display:grid!important;grid-template-columns:29px 32px 29px;gap:.2rem;padding:.2rem!important;border:1px solid rgba(92,70,48,.11)!important;border-radius:10px;background:#eee5d8!important }.cart-item-controls button { width:29px;height:29px;border:0;border-radius:8px;color:#4c4138;background:rgba(255,255,255,.62);font-size:.58rem;cursor:pointer }.cart-item-controls span { display:grid;place-items:center;color:#3e352e!important;font-size:.68rem;font-weight:700 }
#reservationModal .cart-total-row { margin:.9rem 0 0;padding:.9rem 0 .15rem;display:flex;justify-content:space-between;border-top:1px solid rgba(92,70,48,.14);color:#5f544b }.cart-total-row #cartTotalValue { color:#75232c!important;font-size:1.15rem;font-weight:700 }
#btnClearCart { margin-top:.75rem;display:inline-flex;align-items:center;gap:.4rem;color:#887a6f;border:0;background:transparent;cursor:pointer;font-size:.62rem }
#reservationModal .form-group { margin:0 0 .7rem;padding:.85rem; }.form-group label { margin-bottom:.42rem;color:#665a50!important;font-size:.6rem!important;font-weight:650;letter-spacing:.06em;text-transform:uppercase }.form-group input,.form-group textarea,.form-group select,#paymentMethodSelector { width:100%!important;min-height:46px;padding:.75rem!important;border:1px solid rgba(92,70,48,.16)!important;border-radius:11px!important;color:#322b26!important;background:rgba(255,255,255,.62)!important;box-shadow:none!important }.form-group textarea{min-height:92px}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:2px solid rgba(196,164,107,.28)!important;border-color:#b79558!important}
#reservationModal .payment-details { margin-top:.75rem;padding:1rem;border:1px dashed rgba(112,64,77,.24);border-radius:13px;color:#65594f;background:rgba(255,255,255,.4)!important }.payment-qr{width:min(100%,210px)}
#reservationModal .modal-warning { padding:.85rem;color:#6c6056;background:rgba(196,164,107,.08)!important;font-size:.68rem;line-height:1.55 }.modal-warning p{margin:0}
.drawer-nav { bottom:calc(-1rem - env(safe-area-inset-bottom)); margin:auto -1.2rem calc(-1rem - env(safe-area-inset-bottom)); padding:.85rem 1.2rem calc(.85rem + env(safe-area-inset-bottom)); grid-template-columns:.78fr 1.35fr; background:rgba(247,241,231,.94)!important;backdrop-filter:blur(20px);box-shadow:0 -12px 30px rgba(62,43,31,.08) }.drawer-nav button{min-height:48px;border-radius:13px}.drawer-nav .drawer-next{display:flex;align-items:center;justify-content:center;gap:.55rem;background:#702f3a}.drawer-nav .drawer-back{color:#574b42;background:transparent;border-color:rgba(92,70,48,.18)}
body.theme-dark #reservationModal .modal-content { color:#29231f!important;background:radial-gradient(circle at 0 0,rgba(196,164,107,.12),transparent 30%),linear-gradient(180deg,#f7f1e7,#eee4d6)!important; }
@media(max-width:420px){#reservationModal .modal-content{padding-inline:.85rem}.drawer-progress button b{font-size:.48rem}.drawer-nav{margin-inline:-.85rem;padding-inline:.85rem}#reservationModal .modal-header{margin-inline:-.85rem;padding-left:.85rem}}

/* El checkout hereda la identidad y el tema activo de CurArte. */
#reservationModal {
  --drawer-bg: rgba(240,230,210,.98);
  --drawer-bg-deep: rgba(225,211,188,.98);
  --drawer-surface: rgba(255,255,255,.3);
  --drawer-surface-strong: rgba(255,255,255,.52);
  --drawer-ink: #211d1a;
  --drawer-muted: #655d55;
  --drawer-line: rgba(93,73,50,.17);
  --drawer-header: rgba(240,230,210,.9);
  --drawer-nav-bg: rgba(240,230,210,.94);
  --drawer-control: rgba(231,219,200,.9);
  --drawer-shadow: rgba(62,43,31,.16);
}
body.theme-dark #reservationModal {
  --drawer-bg: rgba(18,20,22,.985);
  --drawer-bg-deep: rgba(10,12,14,.99);
  --drawer-surface: rgba(255,255,255,.035);
  --drawer-surface-strong: rgba(255,255,255,.065);
  --drawer-ink: #f5efe4;
  --drawer-muted: #b9ad9d;
  --drawer-line: rgba(196,164,107,.19);
  --drawer-header: rgba(17,19,21,.92);
  --drawer-nav-bg: rgba(17,19,21,.95);
  --drawer-control: rgba(255,255,255,.055);
  --drawer-shadow: rgba(0,0,0,.42);
}
#reservationModal .modal-content,
body.theme-dark #reservationModal .modal-content {
  color:var(--drawer-ink)!important;
  background:
    linear-gradient(180deg,transparent 0 72%,var(--drawer-bg-deep) 100%),
    radial-gradient(circle at 0 0,rgba(237,28,36,.07),transparent 28%),
    radial-gradient(circle at 100% 18%,rgba(196,164,107,.09),transparent 32%),
    var(--drawer-bg)!important;
  border-right-color:rgba(196,164,107,.34);
  box-shadow:22px 0 74px var(--drawer-shadow);
}
#reservationModal .modal-header,
body.theme-dark #reservationModal .modal-header { background:var(--drawer-header)!important; border-bottom-color:var(--drawer-line); }
#reservationModal .modal-header h2,
body.theme-dark #reservationModal .modal-header h2,
.drawer-card-heading h3,
body.theme-dark .drawer-card-heading h3 { color:var(--drawer-ink)!important; }
#reservationModal .modal-subtitle,
#reservationModal .cart-item-copy small,
#reservationModal .form-group label,
#reservationModal .modal-warning,
#reservationModal .payment-details,
body.theme-dark #reservationModal .modal-subtitle,
body.theme-dark #reservationModal .cart-item-copy small,
body.theme-dark #reservationModal .form-group label { color:var(--drawer-muted)!important; }
#reservationModal .close-modal-btn,
body.theme-dark #reservationModal .close-modal-btn { color:var(--drawer-ink)!important; border-color:var(--drawer-line)!important; background:var(--drawer-surface-strong)!important; }
.drawer-progress::before { background:var(--drawer-line); }
.drawer-progress button { color:var(--drawer-muted); }
.drawer-progress button span { color:var(--drawer-muted); border-color:var(--drawer-line); background:var(--drawer-control); }
.drawer-progress button.active span { color:#fff; border-color:var(--accent-red); background:var(--accent-red); box-shadow:0 6px 18px rgba(237,28,36,.17); }
.drawer-progress button.active b { color:var(--accent-red); }
.drawer-progress button.complete span { color:var(--drawer-ink); border-color:rgba(196,164,107,.55); background:var(--accent-gold); }
#reservationModal .cart-summary-box,
#reservationModal .bank-info-box,
#reservationModal .modal-warning,
#reservationModal .form-group,
body.theme-dark #reservationModal .cart-summary-box,
body.theme-dark #reservationModal .bank-info-box,
body.theme-dark #reservationModal .modal-warning,
body.theme-dark #reservationModal .form-group { color:var(--drawer-ink)!important; border-color:var(--drawer-line)!important; background:var(--drawer-surface)!important; }
#reservationModal .cart-item-row,
body.theme-dark #reservationModal .cart-item-row { border-color:var(--drawer-line)!important; background:var(--drawer-surface-strong)!important; }
#reservationModal .cart-item-name,
body.theme-dark #reservationModal .cart-item-name { color:var(--drawer-ink)!important; }
#reservationModal .cart-item-controls,
body.theme-dark #reservationModal .cart-item-controls { border-color:var(--drawer-line)!important; background:var(--drawer-control)!important; }
#reservationModal .cart-item-controls button,
body.theme-dark #reservationModal .cart-item-controls button { color:var(--drawer-ink)!important; background:var(--drawer-surface-strong)!important; }
#reservationModal .cart-item-controls span,
body.theme-dark #reservationModal .cart-item-controls span { color:var(--drawer-ink)!important; }
#reservationModal .cart-total-row { color:var(--drawer-muted); border-top-color:var(--drawer-line); }
#reservationModal .form-group input,
#reservationModal .form-group textarea,
#reservationModal .form-group select,
#reservationModal #paymentMethodSelector,
body.theme-dark #reservationModal .form-group input,
body.theme-dark #reservationModal .form-group textarea,
body.theme-dark #reservationModal .form-group select,
body.theme-dark #reservationModal #paymentMethodSelector { color:var(--drawer-ink)!important; border-color:var(--drawer-line)!important; background:var(--drawer-surface-strong)!important; }
#reservationModal .payment-details,
body.theme-dark #reservationModal .payment-details { border-color:rgba(196,164,107,.3)!important; background:rgba(196,164,107,.055)!important; }
.drawer-nav,
body.theme-dark .drawer-nav { background:var(--drawer-nav-bg)!important; border-top-color:var(--drawer-line); box-shadow:0 -12px 32px var(--drawer-shadow); }
.drawer-nav .drawer-next { color:#fff; border-color:var(--accent-red); background:var(--accent-red); }
.drawer-nav .drawer-back,
body.theme-dark .drawer-nav .drawer-back { color:var(--drawer-ink); border-color:var(--drawer-line); background:var(--drawer-surface); }

/* Menús flotantes con el patrón glass-grid del portafolio. */
#fabFood, #fabNav { overflow: visible; }
#fabFood .fab-options, #fabNav .fab-options {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(340px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(196,164,107,.24);
  border-radius: 20px;
  background: rgba(18,21,23,.97);
  box-shadow: 0 24px 60px rgba(0,0,0,.52);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateY(12px) scale(.97);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}
#fabFood.active .fab-options, #fabNav.active .fab-options {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}
#fabFood .fab-item, #fabNav .fab-item {
  width: 100%; min-width: 0; min-height: 56px;
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  color: #e8e1d6;
  box-shadow: none;
  font-size: .76rem; line-height: 1.25; letter-spacing: .025em;
  text-align: left; text-transform: none; white-space: normal;
  transform: translateY(8px); opacity: 0;
  transition: transform .24s ease, opacity .24s ease, background .2s ease, border-color .2s ease;
}
#fabFood.active .fab-item, #fabNav.active .fab-item { transform: translateY(0); opacity: 1; }
#fabFood .fab-item:hover, #fabNav .fab-item:hover {
  transform: translateY(-2px); color: #fff;
  background: rgba(237,28,36,.13); border-color: rgba(237,28,36,.34);
}
#fabFood .fab-main, #fabNav .fab-main {
  border: 1px solid rgba(196,164,107,.38) !important;
  box-shadow: 0 15px 38px rgba(0,0,0,.34) !important;
}
#fabFood.active .fab-main, #fabNav.active .fab-main {
  transform: none; box-shadow: 0 0 0 4px rgba(237,28,36,.12), 0 15px 38px rgba(0,0,0,.34) !important;
}
#fabFood.active .fab-close, #fabNav.active .fab-close { color: #fff; }
#fabFood.active .fab-item:nth-child(1), #fabNav.active .fab-item:nth-child(1) { transition-delay:.03s; }
#fabFood.active .fab-item:nth-child(2), #fabNav.active .fab-item:nth-child(2) { transition-delay:.06s; }
#fabFood.active .fab-item:nth-child(3), #fabNav.active .fab-item:nth-child(3) { transition-delay:.09s; }
#fabFood.active .fab-item:nth-child(4), #fabNav.active .fab-item:nth-child(4) { transition-delay:.12s; }
#fabFood.active .fab-item:nth-child(5), #fabNav.active .fab-item:nth-child(5) { transition-delay:.15s; }
#fabFood.active .fab-item:nth-child(6), #fabNav.active .fab-item:nth-child(6) { transition-delay:.18s; }
#fabFood.active .fab-item:nth-child(7), #fabNav.active .fab-item:nth-child(7) { transition-delay:.21s; }
#fabFood.active .fab-item:nth-child(8) { transition-delay:.24s; }
@media(max-width:560px) {
  #fabFood .fab-options, #fabNav .fab-options { width:min(330px,calc(100vw - 24px)); gap:7px; padding:9px; }
  #fabFood .fab-item, #fabNav .fab-item { min-height:52px; padding:8px 9px; font-size:.7rem; }
}

/* Separa y centra visualmente el hero bajo el header fijo. */
.hero-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 clamp(.8rem,1.8vh,1.15rem);
  color: var(--text-main);
}
.hero-wordmark strong {
  font-family: "Cinzel",serif;
  font-size: clamp(2rem,3vw,3rem);
  line-height: .92;
  letter-spacing: -.025em;
}
.hero-wordmark span {
  margin-top: .4rem;
  font-size: clamp(.5rem,.7vw,.64rem);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.theme-dark .hero-wordmark { color: #f5efe4; }
.hero {
  min-height: 100svh;
  padding-top: clamp(6.4rem, 12vh, 8rem);
  padding-bottom: clamp(1.4rem, 3vh, 2.2rem);
}
.hero-card.hero-grid.hero-static-grid {
  transform: translateY(clamp(.7rem, 2vh, 1.4rem));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.hero-static-grid .hero-panel-brand {
  align-self: stretch;
  height: 100%;
}
.hero-static-grid .hero-panel-brand .hero-logo {
  margin-bottom: clamp(1.35rem, 2.5vh, 1.8rem);
}
.hero-static-grid .hero-panel-brand .hero-title {
  margin-bottom: clamp(.85rem, 1.5vh, 1.15rem);
  line-height: 1;
}
.hero-static-grid .hero-panel-brand .hero-text {
  line-height: 1.72;
}
.hero-static-grid .hero-panel-brand .hero-welcome-note {
  margin-top: clamp(.85rem, 1.5vh, 1.1rem);
  margin-bottom: clamp(1.15rem, 2vh, 1.5rem);
  line-height: 1.5;
}
.hero-static-grid .hero-panel-feature,
.hero-static-grid .hero-panel-actions {
  height: 100%;
}

/* Cristal más ligero para revelar mejor el fondo del hero. */
.hero-static-grid .hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-static-grid .hero-panel-brand {
  background: linear-gradient(145deg, rgba(255,255,255,0.42), rgba(240,230,210,0.12));
}
body.theme-dark .hero-static-grid .hero-panel,
body.theme-dark .hero-static-grid .hero-panel-brand {
  background: linear-gradient(180deg, rgba(20,23,26,0.54), rgba(20,23,26,0.34));
}

/* Hero claro alineado con el papel crema y el cristal editorial del sitio. */
body:not(.theme-dark) .hero-photo-layer {
  background-image: linear-gradient(rgba(240,230,210,.8), rgba(240,230,210,.8));
}
body:not(.theme-dark) .hero.bg-ready .hero-photo-layer {
  background-image: linear-gradient(rgba(240,230,210,.8), rgba(240,230,210,.8)), url("../img/hero-bg.jpg");
}
body:not(.theme-dark) .hero::after {
  background: linear-gradient(180deg, rgba(240,230,210,.04), rgba(240,230,210,.14));
}
body:not(.theme-dark) .hero-static-grid .hero-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(245,239,228,.38));
  border-color: rgba(196,164,107,.28);
  box-shadow: 0 16px 42px rgba(73,52,24,.1);
}
body:not(.theme-dark) .hero-static-grid .hero-panel-brand {
  background: linear-gradient(145deg, rgba(255,255,255,.64), rgba(245,239,228,.42));
}
body:not(.theme-dark) .hero-text {
  color: var(--text-soft);
  text-shadow: none;
}
body:not(.theme-dark) .hero-chip {
  background: rgba(237,28,36,.08);
  border-color: rgba(237,28,36,.18);
  color: #a80f15;
}
body:not(.theme-dark) .hero-promo-item,
body:not(.theme-dark) .hero-fact-card {
  background: rgba(255,255,255,.34);
  border-color: rgba(196,164,107,.24);
}
body:not(.theme-dark) .hero-inline-btn.btn-ghost {
  border-color: rgba(26,26,26,.42);
  background: rgba(255,255,255,.18);
}

/* Radios coherentes: suaves, editoriales y sin extremos rectos. */
.hero .btn-primary,
.hero .btn-ghost,
.hero .hero-inline-btn {
  border-radius: 10px;
}
.header-gateway-btn,
.header-portfolio-link {
  border-radius: 12px;
}
.theme-toggle-btn {
  border-radius: 14px;
}
.catalog-search {
  border-radius: 16px;
}

/* Unifica fondos editoriales y cristal del resto de la experiencia. */
body.theme-dark .experience-section.bg-ready,
body.theme-dark .promos-section.bg-ready {
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)), url("../img/section-bg-experience-promos.jpg") center/cover no-repeat !important;
}
body.theme-dark .menu-section.bg-ready {
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)), url("../img/section-bg-menu.jpg") center/cover no-repeat !important;
}
body.theme-dark .pairing-section.bg-ready,
body.theme-dark .vinos-section.bg-ready,
body.theme-dark #vinos.bg-ready {
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)), url("../img/section-bg-pairing-wine.jpg") center/cover no-repeat !important;
}
body:not(.theme-dark) .experience-section.bg-ready,
body:not(.theme-dark) .promos-section.bg-ready {
  background: linear-gradient(rgba(240,230,210,.8), rgba(240,230,210,.8)), url("../img/section-bg-experience-promos.jpg") center/cover no-repeat !important;
}
body:not(.theme-dark) .menu-section.bg-ready {
  background: linear-gradient(rgba(240,230,210,.8), rgba(240,230,210,.8)), url("../img/section-bg-menu.jpg") center/cover no-repeat !important;
}
body:not(.theme-dark) .pairing-section.bg-ready,
body:not(.theme-dark) .vinos-section.bg-ready,
body:not(.theme-dark) #vinos.bg-ready {
  background: linear-gradient(rgba(240,230,210,.8), rgba(240,230,210,.8)), url("../img/section-bg-pairing-wine.jpg") center/cover no-repeat !important;
}

.menu-card,
.vino-card,
.pairing-suggestion-card,
.experience-story-card,
.ai-card,
.pairing-ai-card,
.pairing-panel,
.wine-guide-card,
.promo-carousel-container,
.promo-slide,
.cart-summary-box,
.bank-info-box {
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(245,239,228,.38)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(196,164,107,.28);
  box-shadow: 0 16px 42px rgba(0,0,0,.1);
}
body.theme-dark .menu-card,
body.theme-dark .vino-card,
body.theme-dark .pairing-suggestion-card,
body.theme-dark .experience-story-card,
body.theme-dark .ai-card,
body.theme-dark .pairing-ai-card,
body.theme-dark .pairing-panel,
body.theme-dark .wine-guide-card,
body.theme-dark .promo-carousel-container,
body.theme-dark .promo-slide,
body.theme-dark .cart-summary-box,
body.theme-dark .bank-info-box {
  background: linear-gradient(145deg, rgba(20,23,26,.7), rgba(20,23,26,.48)) !important;
  border-color: rgba(196,164,107,.2);
  box-shadow: 0 16px 42px rgba(0,0,0,.2);
}

/* Explorador bidireccional del sommelier. */
.pairing-ai-card {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr);
  grid-template-areas:
    "analysis criterion"
    "explorer explorer"
    "recommendations recommendations";
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pairing-ai-card::before { display: none; content: none; }
.pairing-ai-card .pairing-hero {
  grid-area: analysis;
  align-items: start;
  margin: 0;
  padding: clamp(1.2rem,2.4vw,1.8rem);
  border: 1px solid rgba(196,164,107,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
}
.pairing-ai-card .pairing-insights {
  display: contents;
}
.pairing-ai-card .pairing-panel-accent {
  grid-area: criterion;
  min-height: 0;
  height: 100%;
  padding: clamp(1.2rem,2.4vw,1.8rem);
  border: 1px solid rgba(196,164,107,.24);
  border-radius: 18px;
}
.pairing-current-reading { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(196,164,107,.22); }
.pairing-current-reading .pairing-selection-summary { margin-bottom: 0; }
.pairing-panel-accent .pairing-attributes { grid-template-columns: 1fr; }
.pairing-ai-card .sommelier-explorer { grid-area: explorer; margin: 0; }
.pairing-ai-card .pairing-grid { grid-area: recommendations; }
body.theme-dark .pairing-ai-card .pairing-hero,
body.theme-dark .pairing-ai-card .pairing-panel-accent { background: rgba(255,255,255,.025); }
.pairing-ai-card.steps-ready { display: block; padding: 1rem; }
.sommelier-flow-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: .4rem; align-items: start; width: calc(100% - 2rem); margin: 0 1rem .85rem; padding: .25rem 0 1rem; border-bottom: 1px solid rgba(196,164,107,.22); overflow: visible; }
.sommelier-flow-intro > span { display: block; width: fit-content; max-width: 100%; margin: 0; padding-left: .18rem; color: var(--accent-red); font-size: .6rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; overflow: visible; overflow-wrap: normal; }
.sommelier-flow-intro h3 { margin: 0 0 .22rem; font: 700 clamp(1.05rem,1.7vw,1.35rem)/1.15 "Cinzel",serif; }
.sommelier-flow-intro p { max-width: 760px; margin: 0; color: var(--text-soft); font-size: .76rem; line-height: 1.5; }
.sommelier-steps-nav { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; width: 100%; margin-bottom: 1rem; }
.sommelier-steps-nav button { position: relative; min-width: 0; overflow: hidden; display: grid; grid-template-columns: 27px minmax(0,1fr); grid-template-areas: "number title" "number copy"; align-items: center; gap: .08rem .55rem; min-height: 56px; padding: .55rem .7rem; border: 1px solid rgba(196,164,107,.24); border-radius: 12px; background: rgba(255,255,255,.08); color: var(--text-main); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.sommelier-steps-nav button:hover { transform: translateY(-2px); border-color: rgba(237,28,36,.38); }
.sommelier-steps-nav button.active { border-color: rgba(237,28,36,.58); background: rgba(237,28,36,.09); }
.sommelier-steps-nav button > span { grid-area: number; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(196,164,107,.14); color: var(--accent-gold); font-size: .72rem; font-weight: 800; }
.sommelier-steps-nav button.active > span { background: var(--accent-red); color: #fff; }
.sommelier-steps-nav strong { grid-area: title; min-width: 0; font-size: .72rem; line-height: 1.25; overflow-wrap: anywhere; }
.sommelier-steps-nav small { grid-area: copy; min-width: 0; color: var(--text-soft); font-size: .6rem; line-height: 1.3; overflow-wrap: anywhere; }
.sommelier-steps-viewport { position: relative; z-index: 1; width: 100%; overflow: hidden; transition: height .45s cubic-bezier(.2,.78,.2,1); }
.sommelier-steps-track { display: flex; align-items: flex-start; width: 100%; gap: 0; transition: transform .55s cubic-bezier(.2,.78,.2,1); }
.sommelier-step { position: relative; flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%; padding: .05rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease; }
.sommelier-step[aria-hidden="false"] { z-index: 2; opacity: 1; visibility: visible; pointer-events: auto; }
.sommelier-step-analysis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 1rem; }
.sommelier-step-analysis .pairing-hero,
.sommelier-step-analysis .pairing-panel-accent {
  grid-area: auto;
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
}
.sommelier-step-analysis .pairing-hero { grid-column: 1; grid-row: 1; }
.sommelier-step-analysis .pairing-panel-accent { grid-column: 2; grid-row: 1; }
.sommelier-step-analysis .pairing-insights { display: contents; }
.sommelier-step-analysis .pairing-copy,
.sommelier-step-analysis .pairing-current-reading,
.sommelier-step-analysis .pairing-attributes { min-width: 0; }
.sommelier-step-analysis .pairing-hero,
.sommelier-step-analysis .pairing-panel-accent { padding: 1rem 1.1rem; }
.sommelier-step-analysis .pairing-kicker { margin-bottom: .4rem; font-size: .58rem; }
.sommelier-step-analysis .pairing-copy h3 { margin-bottom: .45rem; font-size: clamp(1.25rem,2.2vw,1.75rem); }
.sommelier-step-analysis .pairing-body { font-size: .82rem; line-height: 1.55; }
.sommelier-step-analysis .pairing-current-reading { margin-top: .75rem; padding-top: .7rem; }
.sommelier-step-analysis .pairing-status,
.sommelier-step-analysis .pairing-recommendation { font-size: .75rem; line-height: 1.5; }
.sommelier-step-analysis .pairing-panel-accent,
.sommelier-step-analysis .pairing-panel-accent * { font-weight: 400; }
.sommelier-step-analysis .pairing-panel-accent .pairing-panel-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em;
}
.sommelier-step-analysis .pairing-panel-accent .pairing-recommendation {
  font-size: .82rem; line-height: 1.6;
}
.sommelier-step-analysis .pairing-panel-accent .pairing-attributes strong,
.sommelier-step-analysis .pairing-panel-accent .pairing-attributes em { font-weight: 500; }
.sommelier-step-analysis .pairing-attributes { gap: .45rem; margin-top: .7rem; }
.sommelier-step-analysis .pairing-attributes > button { padding: .55rem .65rem; }
.sommelier-step .sommelier-explorer,
.sommelier-step .pairing-grid { margin: 0; }
.sommelier-step-controls { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; align-items: center; gap: .8rem; margin-top: 1rem; }
.sommelier-step-controls > span { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(196,164,107,.16); }
.sommelier-step-controls > span b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent-gold),var(--accent-red)); transition: width .4s ease; }
.sommelier-step-controls button { min-height: 38px; padding: .55rem .75rem; border: 1px solid rgba(196,164,107,.3); border-radius: 10px; background: rgba(255,255,255,.06); color: var(--text-main); font: 700 .66rem "Raleway",sans-serif; cursor: pointer; }
.sommelier-step-controls button:disabled { opacity: .35; cursor: default; }
.sommelier-step-controls button:not(:disabled):hover { border-color: var(--accent-red); color: var(--accent-red); }
.pairing-attributes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-top: 1.1rem; max-width: none; }
.pairing-attributes > button { display: grid; grid-template-columns: 1fr auto; gap: .4rem .7rem; padding: .72rem .8rem; border: 1px solid rgba(196,164,107,.24); border-left: 2px solid var(--accent-red); border-radius: 10px; background: rgba(255,255,255,.1); color: var(--text-main); text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.pairing-attributes > button:hover:not(:disabled), .pairing-attributes > button.active { transform: translateY(-2px); border-color: rgba(196,164,107,.34); background: rgba(255,255,255,.035); }
.pairing-attributes > button:disabled { cursor: default; opacity: .58; }
.pairing-attributes > button > span { display: grid; gap: .16rem; }
.pairing-attributes small { color: var(--accent-gold); font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pairing-attributes strong { color: var(--text-main); font-size: .82rem; }
.pairing-attributes em { color: var(--text-main); font-size: .68rem; font-style: normal; font-weight: 600; }
.pairing-attributes i { grid-column: 1/-1; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(196,164,107,.16); }
.pairing-attributes i b { display: block; width: var(--metric-score); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent-gold),var(--accent-red)); transition: width .65s cubic-bezier(.2,.78,.2,1); }
.pairing-attributes u { grid-column: 1/-1; color: var(--text-soft); font-size: .58rem; text-decoration: none; }
.pairing-metric-help {
  grid-column: 1/-1; display: grid; grid-template-rows: 0fr; gap: .38rem;
  max-height: 0; overflow: hidden; opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height .35s ease, opacity .25s ease, padding-top .3s ease, border-color .3s ease;
}
.pairing-attributes > button.active .pairing-metric-help {
  grid-template-rows: 1fr; max-height: 240px; padding-top: .65rem; opacity: 1;
  border-top-color: rgba(196,164,107,.2);
}
.pairing-metric-help > span { color: var(--text-soft); font-size: .64rem; line-height: 1.5; }
.pairing-metric-help > small { color: var(--accent-gold); font-size: .59rem; line-height: 1.45; }
.pairing-attributes > button.active > u { color: var(--accent-gold); }
body.theme-dark .pairing-attributes > button { background: rgba(255,255,255,.035); }
body.theme-dark .pairing-attributes em { color: #f5efe4; }
.sommelier-menu-ribbon { display: grid; grid-template-columns: 1fr auto; gap: .18rem .7rem; margin: -2rem -2rem 1.25rem; padding: .7rem 1rem; border-radius: 8px 8px 0 0; background: linear-gradient(90deg,rgba(237,28,36,.94),rgba(153,16,22,.94)); color: #fff; }
.sommelier-menu-ribbon span { grid-column: 1/-1; font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.sommelier-menu-ribbon strong { font-size: .75rem; }
.sommelier-menu-ribbon em { font-size: .72rem; font-style: normal; font-weight: 800; }
.menu-card.sommelier-menu-focus { border-color: rgba(237,28,36,.62) !important; box-shadow: 0 0 0 3px rgba(237,28,36,.12), 0 20px 48px rgba(0,0,0,.18) !important; }
.sommelier-explorer {
  margin: 0 0 1.35rem;
  padding: clamp(1rem,2vw,1.35rem);
  border: 1px solid rgba(196,164,107,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.18);
}
.sommelier-explorer-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.sommelier-explorer-head h3 { margin: 0; font: 700 clamp(1.15rem,2vw,1.55rem)/1.2 "Cinzel",serif; }
.sommelier-route-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.sommelier-route-btn,
.sommelier-filter-btn {
  border: 1px solid rgba(196,164,107,.28); border-radius: 12px;
  background: rgba(255,255,255,.18); color: var(--text-main); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.sommelier-route-btn { min-height: 42px; padding: .65rem .85rem; font: 700 .7rem "Raleway",sans-serif; letter-spacing: .06em; }
.sommelier-route-btn i { margin-right: .35rem; color: var(--accent-red); }
.sommelier-route-btn.active,
.sommelier-filter-btn.active { border-color: rgba(237,28,36,.58); background: rgba(237,28,36,.11); }
.sommelier-explorer-prompt { margin: 1rem 0 .8rem; color: var(--text-soft); line-height: 1.55; }
.sommelier-explorer-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .6rem; }
.sommelier-filter-btn { min-height: 78px; padding: .8rem; text-align: left; }
.sommelier-filter-btn:hover { transform: translateY(-2px); border-color: var(--accent-red); }
.sommelier-filter-btn strong,
.sommelier-filter-btn small { display: block; }
.sommelier-filter-btn strong { margin-bottom: .3rem; font-size: .78rem; }
.sommelier-filter-btn small { color: var(--text-soft); font-size: .65rem; line-height: 1.35; }
.sommelier-explorer-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin-top: .8rem; }
.sommelier-explorer-empty { grid-column: 1/-1; margin: 0; padding: .85rem; border-radius: 12px; color: var(--text-soft); background: rgba(255,255,255,.1); text-align: center; }
.sommelier-dish-card { display: flex; flex-direction: column; min-height: 190px; padding: .9rem; border: 1px solid rgba(196,164,107,.22); border-radius: 14px; background: rgba(255,255,255,.18); }
.sommelier-dish-card > span { color: var(--accent-red); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sommelier-dish-card h4 { margin: .45rem 0; font: 700 .92rem/1.25 "Cinzel",serif; }
.sommelier-dish-card p { margin: 0 0 .75rem; color: var(--text-soft); font-size: .72rem; line-height: 1.45; }
.sommelier-dish-card > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; }
.sommelier-dish-card > div strong { color: var(--accent-red); }
.sommelier-dish-card .btn-primary { padding: .6rem .7rem; border-radius: 9px; font-size: .61rem; letter-spacing: .08em; }
.sommelier-dish-card .btn-primary.is-added { background: #2f8f67; border-color: #2f8f67; }
.sommelier-reroll { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .8rem; border-top: 1px solid rgba(196,164,107,.22); }
.sommelier-reroll span { color: var(--text-soft); font-size: .68rem; }
.sommelier-reroll button { display: inline-flex; align-items: center; gap: .4rem; padding: .58rem .75rem; border: 1px solid rgba(196,164,107,.34); border-radius: 10px; background: rgba(255,255,255,.08); color: var(--text-main); font: 700 .66rem "Raleway",sans-serif; cursor: pointer; }
.sommelier-reroll button:hover { border-color: var(--accent-red); color: var(--accent-red); }
.sommelier-reroll button i { transition: transform .35s ease; }
.sommelier-reroll button:hover i { transform: rotate(150deg); }
.pairing-empty-state { grid-column: 1/-1; display: grid; justify-items: center; gap: .45rem; padding: clamp(1.5rem,4vw,2.5rem); border: 1px dashed rgba(196,164,107,.32); border-radius: 16px; text-align: center; color: var(--text-soft); }
.pairing-empty-state i { color: var(--accent-gold); font-size: 1.45rem; }
.pairing-empty-state strong { color: var(--text-main); font-family: "Cinzel",serif; }
.pairing-empty-state span { font-size: .78rem; }
body.theme-dark .sommelier-explorer,
body.theme-dark .sommelier-route-btn,
body.theme-dark .sommelier-filter-btn,
body.theme-dark .sommelier-dish-card { background: rgba(255,255,255,.035); }
.pairing-dish-analysis { display: block; color: var(--text-main); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.pairing-dish-analysis:hover { transform: translateX(3px); border-color: rgba(237,28,36,.42); }
.pairing-dish-analysis.active { border-color: rgba(237,28,36,.58); background: rgba(237,28,36,.09); box-shadow: inset 3px 0 var(--accent-red); }
.pairing-dish-analysis:not(.active) .pairing-dish-status { color: var(--accent-gold); }
body.theme-dark .pairing-dish-analysis.active { background: rgba(237,28,36,.11); border-color: rgba(237,28,36,.46); }

@media (max-width: 900px) {
  .pairing-ai-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "analysis"
      "criterion"
      "explorer"
      "recommendations";
  }
  .sommelier-step-analysis { grid-template-columns: 1fr; }
  .sommelier-step-analysis .pairing-hero,
  .sommelier-step-analysis .pairing-panel-accent { grid-column: 1; grid-row: auto; }
  .sommelier-explorer-head { align-items: flex-start; flex-direction: column; }
  .sommelier-route-tabs { justify-content: flex-start; }
  .sommelier-explorer-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sommelier-explorer-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .sommelier-steps-nav { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .45rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .sommelier-steps-nav button { flex: 0 0 min(78vw,260px); }
  .sommelier-steps-nav button { scroll-snap-align: start; }
  .pairing-attributes { grid-template-columns: 1fr; }
  .sommelier-route-tabs, .sommelier-route-btn { width: 100%; }
  .sommelier-explorer-filters, .sommelier-explorer-results { grid-template-columns: 1fr; }
  .sommelier-reroll { align-items: stretch; flex-direction: column; }
  .sommelier-reroll button { justify-content: center; }
}

/* Aparición progresiva: sección, encabezado y cards en cascada. */
.curarte-section-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .7s ease, transform .82s cubic-bezier(.2,.78,.2,1);
  will-change: opacity, transform;
}
.curarte-item-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  transition:
    opacity .62s ease var(--reveal-delay, 0ms),
    transform .78s cubic-bezier(.2,.78,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.curarte-section-reveal.in-view,
.curarte-item-reveal.in-view {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

@media (max-width: 768px) {
  .curarte-item-reveal {
    --reveal-x: 12vw;
    transform: translate3d(var(--reveal-x), 34px, 0) rotate(1.5deg) scale(.97);
  }
  .curarte-item-reveal:nth-child(even) {
    --reveal-x: -12vw;
    transform: translate3d(var(--reveal-x), 34px, 0) rotate(-1.5deg) scale(.97);
  }
  .curarte-item-reveal.in-view { transform: translate3d(0,0,0) rotate(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .curarte-section-reveal,
  .curarte-item-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Integración visual del sommelier con el sistema editorial CurArte. */
.pairing-section .ai-pairing-container { padding: 0; }
.pairing-section .pairing-ai-card { width: min(100%,1120px); padding: 0; }
.pairing-ai-card.steps-ready { padding: 0; }
.sommelier-flow-intro { margin: 0 1rem 1rem; padding: .25rem 0 1rem; }
.sommelier-steps-nav { gap: .55rem; }
.sommelier-steps-nav button {
  min-height: 52px;
  border-color: rgba(196,164,107,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
}
.sommelier-steps-nav button.active {
  border-color: rgba(237,28,36,.42);
  background: rgba(237,28,36,.07);
}
.sommelier-steps-nav button > span { background: transparent; border: 1px solid rgba(196,164,107,.25); }
.sommelier-steps-nav button.active > span { border-color: var(--accent-red); }
.sommelier-step-analysis .pairing-hero,
.sommelier-step-analysis .pairing-panel-accent,
.sommelier-explorer {
  border-color: rgba(196,164,107,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sommelier-step-analysis .pairing-panel-accent { background: rgba(196,164,107,.035); }
.pairing-current-reading { border-top-color: rgba(196,164,107,.14); }
.pairing-selection-summary { gap: .45rem; }
.pairing-dish-analysis {
  padding: .68rem .75rem;
  border-color: rgba(196,164,107,.16);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.pairing-dish-analysis.active { background: rgba(237,28,36,.055); box-shadow: inset 2px 0 var(--accent-red); }
.pairing-more-dishes { width:100%; min-height:38px; margin-top:.5rem; display:flex; align-items:center; justify-content:center; gap:.45rem; color:var(--accent-gold); border:1px dashed rgba(196,164,107,.35); border-radius:10px; background:transparent; font:600 .64rem "Raleway",sans-serif; cursor:pointer; transition:border-color .2s ease,background .2s ease,color .2s ease; }
.pairing-more-dishes:hover { color:var(--accent-red); border-color:rgba(237,28,36,.38); background:rgba(237,28,36,.045); }
.pairing-selection-summary.is-collapsed .pairing-dish-analysis.active { margin-bottom:0; }
.pairing-activation-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.8rem; padding:.75rem; border:1px solid rgba(196,164,107,.22); border-radius:11px; background:rgba(255,255,255,.035); }
.pairing-activation-card + .pairing-activation-card { margin-top:.5rem; }
.pairing-activation-card > span { min-width:0; display:grid; gap:.22rem; }
.pairing-activation-card small { color:var(--accent-gold); font-size:.55rem; letter-spacing:.1em; text-transform:uppercase; }
.pairing-activation-card strong { color:var(--text-main); font:500 .78rem/1.3 "Cinzel",serif; }
.pairing-activation-card em { color:var(--accent-red); font:600 .58rem "Raleway",sans-serif; }
.pairing-activation-card button { min-height:38px; padding:.55rem .7rem; display:flex; align-items:center; gap:.4rem; color:#fff; border:1px solid var(--accent-red); border-radius:10px; background:var(--accent-red); font:600 .62rem "Raleway",sans-serif; cursor:pointer; }
@media(max-width:560px){.pairing-activation-card{grid-template-columns:1fr}.pairing-activation-card button{width:100%;justify-content:center}}
.pairing-table-preview,.pairing-table-reading { display:grid; gap:.45rem; padding:.8rem; border:1px solid rgba(196,164,107,.22); border-radius:11px; background:rgba(255,255,255,.035); }
.pairing-table-preview > small,.pairing-table-reading > small { color:var(--accent-gold); font-size:.56rem; letter-spacing:.12em; text-transform:uppercase; }
.pairing-table-preview > span,.pairing-table-reading > span { display:flex; justify-content:space-between; gap:.6rem; color:var(--text-main); font-size:.7rem; line-height:1.4; }
.pairing-table-preview em,.pairing-table-reading em { color:var(--accent-red); font-size:.58rem; font-style:normal; }
.pairing-table-preview button { min-height:42px; margin-top:.35rem; display:flex; align-items:center; justify-content:center; gap:.45rem; color:#fff; border:1px solid var(--accent-red); border-radius:10px; background:var(--accent-red); font:600 .64rem "Raleway",sans-serif; cursor:pointer; }
.pairing-attributes > button {
  border-color: rgba(196,164,107,.16);
  border-left: 0;
  border-radius: 10px;
  background: transparent;
}
.pairing-attributes > button.active,
.pairing-attributes > button:hover:not(:disabled) { border-color: rgba(196,164,107,.34); background: rgba(255,255,255,.035); }
.pairing-attributes i { height: 3px; }
.sommelier-explorer { padding: clamp(1rem,2vw,1.25rem); }
.sommelier-route-btn,
.sommelier-filter-btn,
.sommelier-dish-card {
  border-color: rgba(196,164,107,.17);
  background: transparent;
  box-shadow: none;
}
.sommelier-filter-btn { min-height: 68px; }
.sommelier-dish-card { min-height: 176px; }
.sommelier-reroll { border-top-color: rgba(196,164,107,.14); }
.pairing-grid { gap: .8rem; }
.pairing-suggestion-card {
  gap: .65rem;
  padding: 1rem;
  border-color: rgba(196,164,107,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.035) !important;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pairing-tags { gap: .35rem; }
.pairing-tags span,
.pairing-badge,
.pairing-score { border-radius: 8px; }
.sommelier-step-controls { margin-top: .8rem; }
.sommelier-step-controls button { background: transparent; border-color: rgba(196,164,107,.2); }
body.theme-dark .sommelier-step-analysis .pairing-hero,
body.theme-dark .sommelier-step-analysis .pairing-panel-accent,
body.theme-dark .sommelier-explorer,
body.theme-dark .sommelier-dish-card,
body.theme-dark .pairing-suggestion-card { background: rgba(20,23,26,.48) !important; }

/* Contraste editorial del sommelier en modo dia. */
body:not(.theme-dark) #maridaje-ia {
  --sommelier-day-ink: #211e1a;
  --sommelier-day-muted: #514b43;
  --sommelier-day-line: rgba(72, 55, 34, .24);
  --sommelier-day-surface: rgba(248, 243, 233, .9);
  --sommelier-day-surface-strong: rgba(255, 252, 246, .96);
}
body:not(.theme-dark) #maridaje-ia .pairing-ai-card {
  color: var(--sommelier-day-ink);
  border-color: var(--sommelier-day-line);
  background: linear-gradient(145deg, rgba(246, 239, 225, .94), rgba(234, 224, 204, .9));
  box-shadow: 0 20px 55px rgba(58, 43, 27, .12);
}
body:not(.theme-dark) #maridaje-ia .sommelier-flow-intro {
  border-bottom-color: var(--sommelier-day-line);
}
body:not(.theme-dark) #maridaje-ia .sommelier-flow-intro h3,
body:not(.theme-dark) #maridaje-ia .sommelier-explorer-head h3,
body:not(.theme-dark) #maridaje-ia .sommelier-steps-nav button,
body:not(.theme-dark) #maridaje-ia .sommelier-route-btn,
body:not(.theme-dark) #maridaje-ia .sommelier-filter-btn,
body:not(.theme-dark) #maridaje-ia .sommelier-step-controls button {
  color: var(--sommelier-day-ink);
}
body:not(.theme-dark) #maridaje-ia .sommelier-flow-intro p,
body:not(.theme-dark) #maridaje-ia .sommelier-steps-nav small,
body:not(.theme-dark) #maridaje-ia .sommelier-explorer-prompt,
body:not(.theme-dark) #maridaje-ia .sommelier-filter-btn small,
body:not(.theme-dark) #maridaje-ia .sommelier-explorer-empty {
  color: var(--sommelier-day-muted);
}
body:not(.theme-dark) #maridaje-ia .sommelier-steps-nav button,
body:not(.theme-dark) #maridaje-ia .sommelier-route-btn,
body:not(.theme-dark) #maridaje-ia .sommelier-filter-btn,
body:not(.theme-dark) #maridaje-ia .sommelier-dish-card,
body:not(.theme-dark) #maridaje-ia .sommelier-step-controls button {
  border-color: var(--sommelier-day-line);
  background: var(--sommelier-day-surface);
}
body:not(.theme-dark) #maridaje-ia .sommelier-steps-nav button.active,
body:not(.theme-dark) #maridaje-ia .sommelier-route-btn.active,
body:not(.theme-dark) #maridaje-ia .sommelier-filter-btn.active {
  border-color: rgba(237, 28, 36, .62);
  background: rgba(237, 28, 36, .09);
}
body:not(.theme-dark) #maridaje-ia .sommelier-step-analysis .pairing-hero,
body:not(.theme-dark) #maridaje-ia .sommelier-step-analysis .pairing-panel-accent,
body:not(.theme-dark) #maridaje-ia .sommelier-explorer,
body:not(.theme-dark) #maridaje-ia .pairing-suggestion-card,
body:not(.theme-dark) #maridaje-ia .pairing-table-preview,
body:not(.theme-dark) #maridaje-ia .pairing-table-reading,
body:not(.theme-dark) #maridaje-ia .pairing-activation-card {
  border-color: var(--sommelier-day-line);
  background: var(--sommelier-day-surface-strong) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.theme-dark) #maridaje-ia .sommelier-explorer-empty {
  border: 1px solid rgba(72, 55, 34, .12);
  background: rgba(255, 252, 246, .72);
}
body:not(.theme-dark) #maridaje-ia .sommelier-step-controls > span {
  background: rgba(72, 55, 34, .16);
}

/* Sommelier inmersivo: drawer derecho a pantalla completa. */
html.sommelier-drawer-open,
body.sommelier-drawer-open { overflow: hidden; }
#maridaje-ia.pairing-section {
  position: fixed; z-index: 1200; inset: 0;
  width: 100vw; max-width: 100vw; height: 100dvh; min-height: 0;
  padding: clamp(1.1rem,2.4vw,2.2rem) clamp(1rem,3vw,3rem) 2rem;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translate3d(0,102%,0);
  transition: transform .5s cubic-bezier(.22,.8,.24,1), opacity .3s ease, visibility 0s linear .5s;
  box-shadow: none;
}
#maridaje-ia.pairing-section.drawer-open {
  visibility: visible; opacity: 1; pointer-events: auto; transform: translate3d(0,0,0);
  transition-delay: 0s;
}
.sommelier-drawer-close {
  position: sticky; z-index: 20; top: 0; float: right;
  width: 44px; height: 44px; display: grid; place-items: center;
  margin: 0 0 .5rem 1rem; border: 1px solid rgba(196,164,107,.34);
  border-radius: 13px; color: var(--text-main); background: rgba(18,20,22,.78);
  backdrop-filter: blur(14px); cursor: pointer;
}
body:not(.theme-dark) .sommelier-drawer-close { color: #211e1a; background: rgba(248,243,233,.9); }
#maridaje-ia .section-header,
#maridaje-ia .ai-pairing-container { width: min(100%,1380px); max-width: none; margin-inline: auto; }
#maridaje-ia .pairing-ai-card { width: 100%; max-width: none; }
.pairing-dish-picker { display: grid; gap: .5rem; }
#maridaje-ia .sommelier-step-analysis .pairing-copy { display: flex; flex-direction: column; }
#maridaje-ia .sommelier-step-analysis .pairing-kicker { order: 0; }
#maridaje-ia .sommelier-step-analysis .pairing-current-reading { order: 1; margin-top: .65rem; }
#maridaje-ia .sommelier-step-analysis #ai-subtitle { order: 2; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(196,164,107,.18); }
#maridaje-ia .sommelier-step-analysis #ai-text { order: 3; }
@media(max-width:768px) {
  #maridaje-ia.pairing-section { width: 100vw; padding: .8rem .75rem 1.5rem; }
  .sommelier-drawer-close { top: .2rem; width: 42px; height: 42px; }
}

/* Paso 1 compacto en bento: iconos primero, contexto bajo demanda. */
#maridaje-ia .sommelier-route-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; width: min(100%,260px); }
#maridaje-ia .sommelier-route-btn {
  aspect-ratio: 1; min-height: 0; padding: .75rem; display: grid;
  place-items: center; align-content: center; gap: .55rem;
  border-radius: 14px; text-align: center; line-height: 1.25;
}
#maridaje-ia .sommelier-route-btn i {
  width: 38px; height: 38px; margin: 0; display: grid; place-items: center;
  border-radius: 11px; color: var(--accent-gold); background: rgba(196,164,107,.1);
  font-size: 1rem;
}
#maridaje-ia .sommelier-route-btn.active i { color: #fff; background: var(--accent-red); }
#maridaje-ia .sommelier-explorer-filters { grid-template-columns: repeat(8,minmax(0,1fr)); grid-auto-flow: dense; gap: .6rem; }
#maridaje-ia .sommelier-filter-btn {
  grid-column: span 1; aspect-ratio: 1; min-height: 0; display: grid;
  grid-template-columns: 1fr; grid-template-rows: 42px 1.35em 1em minmax(0,1fr);
  grid-template-areas: "icon" "title" "action" "detail";
  justify-items: center; text-align: center; align-content: start; align-items: center;
  gap: .45rem; padding: .6rem; overflow: hidden;
}
#maridaje-ia .sommelier-filter-btn.bento-wide { grid-column: span 1; }
#maridaje-ia .sommelier-filter-btn > i,
#maridaje-ia .sommelier-route-btn i,
#maridaje-ia .sommelier-dish-card > i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
#maridaje-ia .sommelier-filter-btn > i { grid-area: icon; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-gold); background: rgba(196,164,107,.1); font-size: 1.1rem; }
#maridaje-ia .sommelier-filter-btn strong { grid-area: title; align-self: center; margin: 0; min-height: 1.35em; font-size: .8rem; line-height: 1.35; }
#maridaje-ia .sommelier-filter-btn u { grid-area: action; min-height: 1em; color: var(--accent-gold); font-size: .6rem; line-height: 1; text-decoration: none; }
#maridaje-ia .sommelier-filter-detail { grid-area: detail; display: none; color: var(--text-soft); font-size: .64rem; line-height: 1.45; }
#maridaje-ia .sommelier-filter-btn.show-details .sommelier-filter-detail { display: block; }
#maridaje-ia .sommelier-filter-btn.show-details { align-content: start; }
#maridaje-ia .sommelier-explorer-results { grid-template-columns: repeat(8,minmax(0,1fr)); grid-auto-flow: dense; gap: .6rem; }
#maridaje-ia .sommelier-dish-card {
  grid-column: span 1; min-height: 154px; aspect-ratio: 4/5;
  display: grid; grid-template-columns: 32px minmax(0,1fr);
  grid-template-rows: 30px 3.9em 1.25em minmax(0,1fr) 40px;
  grid-template-areas: "icon eyebrow" "title title" "toggle toggle" "detail detail" "actions actions";
  align-content: stretch; align-items: start;
}
#maridaje-ia .sommelier-dish-card:nth-child(4n + 1) { grid-column: span 1; }
#maridaje-ia .sommelier-dish-card > i { grid-area: icon; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-gold); background: rgba(196,164,107,.1); }
#maridaje-ia .sommelier-dish-card > span {
  grid-area: eyebrow; align-self: center; min-width: 0;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
}
#maridaje-ia .sommelier-dish-card h4 {
  grid-area: title; align-self: start; margin: .2rem 0 0;
  min-height: 3.75em; max-height: 3.75em;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-height: 1.25;
}
#maridaje-ia .sommelier-detail-toggle { grid-area: toggle; width: max-content; min-height: 1.25em; padding: 0; border: 0; color: var(--accent-gold); background: transparent; font: 500 .6rem "Raleway",sans-serif; cursor: pointer; }
#maridaje-ia .sommelier-card-detail { grid-area: detail; display: none; }
#maridaje-ia .sommelier-dish-card.show-details { aspect-ratio: auto; grid-template-rows: 30px 3.9em 1.25em auto 40px; }
#maridaje-ia .sommelier-dish-card.show-details .sommelier-card-detail { display: block; }
#maridaje-ia .sommelier-dish-card > div {
  grid-area: actions; align-self: end; width: 100%; min-height: 40px;
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .45rem;
}
#maridaje-ia .sommelier-dish-card .btn-primary {
  width: 100%; min-height: 38px; padding: .45rem .5rem;
  display: inline-flex; align-items: center; justify-content: center;
}
@media(max-width:900px) {
  #maridaje-ia .sommelier-explorer-filters,
  #maridaje-ia .sommelier-explorer-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #maridaje-ia .sommelier-filter-btn,
  #maridaje-ia .sommelier-filter-btn.bento-wide,
  #maridaje-ia .sommelier-dish-card,
  #maridaje-ia .sommelier-dish-card:nth-child(4n + 1) { grid-column: span 1; }
}
@media(max-width:540px) {
  #maridaje-ia .sommelier-route-tabs { width: 100%; }
  #maridaje-ia .sommelier-filter-btn { min-height: 96px; }
  #maridaje-ia .sommelier-explorer-results { grid-template-columns: 1fr; }
}

/* En móvil cada paso del sommelier ocupa un pantallazo completo. */
@media(max-width:768px) {
  #maridaje-ia.pairing-section {
    height: 100dvh; max-height: 100dvh; padding: .55rem .65rem;
    display: flex; flex-direction: column; overflow: hidden;
  }
  #maridaje-ia > .section-header { display: none; }
  #maridaje-ia .sommelier-drawer-close {
    position: absolute; top: .55rem; right: .65rem; float: none;
    width: 36px; height: 36px; margin: 0; border-radius: 10px;
  }
  #maridaje-ia .ai-pairing-container,
  #maridaje-ia .pairing-ai-card.steps-ready { height: 100%; min-height: 0; }
  #maridaje-ia .pairing-ai-card.steps-ready {
    display: flex; flex-direction: column; padding: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  #maridaje-ia .sommelier-flow-intro {
    flex: 0 0 auto; width: calc(100% - 46px); margin: 0 0 .45rem;
    gap: .12rem; padding: .05rem 0 .4rem;
  }
  #maridaje-ia .sommelier-flow-intro > span { font-size: .47rem; letter-spacing: .12em; }
  #maridaje-ia .sommelier-flow-intro h3 { margin: 0; font-size: .88rem; }
  #maridaje-ia .sommelier-flow-intro p { display: none; }
  #maridaje-ia .sommelier-steps-nav {
    flex: 0 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .35rem; margin: 0 0 .45rem; padding: 0; overflow: visible;
  }
  #maridaje-ia .sommelier-steps-nav button {
    width: auto; min-height: 42px; padding: .38rem; display: grid;
    grid-template-columns: 24px minmax(0,1fr); grid-template-areas: "number title";
    gap: .35rem; border-radius: 10px;
  }
  #maridaje-ia .sommelier-steps-nav button > span { width: 24px; height: 24px; }
  #maridaje-ia .sommelier-steps-nav strong { font-size: .58rem; }
  #maridaje-ia .sommelier-steps-nav small { display: none; }
  #maridaje-ia .sommelier-steps-viewport { flex: 1 1 auto; height: auto !important; min-height: 0; overflow: hidden; }
  #maridaje-ia .sommelier-steps-track { height: 100%; align-items: stretch; }
  #maridaje-ia .sommelier-step {
    height: 100%; min-height: 0; padding: 0 0 .2rem;
    overflow-x: hidden; overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  #maridaje-ia .sommelier-step-controls {
    flex: 0 0 auto; grid-template-columns: 76px minmax(50px,1fr) 88px;
    gap: .4rem; margin-top: .4rem;
  }
  #maridaje-ia .sommelier-step-controls button { min-height: 36px; padding: .42rem; font-size: .56rem; }

  /* Paso 1: decisiones compactas y resultados horizontales. */
  #maridaje-ia .sommelier-explorer { height: auto; min-height: 100%; padding: .65rem; overflow: visible; }
  #maridaje-ia .sommelier-explorer-head { align-items: center; flex-direction: row; gap: .5rem; }
  #maridaje-ia .sommelier-explorer-head .pairing-panel-label,
  #maridaje-ia .sommelier-explorer-head h3 { display: none; }
  #maridaje-ia .sommelier-route-tabs { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: stretch; }
  #maridaje-ia .sommelier-route-btn { width: 100%; height: 84px; aspect-ratio: auto; padding: .45rem; gap: .3rem; font-size: .56rem; }
  #maridaje-ia .sommelier-route-btn i { width: 34px; height: 34px; border-radius: 10px; font-size: .88rem; }
  #maridaje-ia .sommelier-explorer-prompt { margin: .35rem 0; font-size: .6rem; line-height: 1.3; }
  #maridaje-ia .sommelier-explorer-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .42rem; overflow: visible; }
  #maridaje-ia .sommelier-filter-btn,
  #maridaje-ia .sommelier-filter-btn.bento-wide {
    width: 100%; min-height: 88px; aspect-ratio: auto;
    grid-template-columns: 1fr; grid-template-areas: "icon" "title";
    justify-items: center; align-content: center; gap: .3rem; padding: .45rem; text-align: center;
  }
  #maridaje-ia .sommelier-filter-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #maridaje-ia .sommelier-filter-btn > i { width: 38px; height: 38px; border-radius: 11px; font-size: .95rem; }
  #maridaje-ia .sommelier-filter-btn strong { font-size: .62rem; }
  #maridaje-ia .sommelier-filter-btn u,
  #maridaje-ia .sommelier-filter-detail { display: none !important; }
  #maridaje-ia .sommelier-explorer-results {
    display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem;
    overflow: visible;
  }
  #maridaje-ia .sommelier-reroll { flex: 1 0 100%; }
  #maridaje-ia .sommelier-dish-card,
  #maridaje-ia .sommelier-dish-card:nth-child(4n + 1) {
    flex: 0 0 min(66vw,210px); min-height: 168px; aspect-ratio: auto; padding: .55rem;
    grid-template-rows: 28px 3.3em 0 minmax(0,1fr) 36px;
    scroll-snap-align: start;
  }
  #maridaje-ia .sommelier-dish-card h4 { margin: .15rem 0 0; min-height: 3.3em; max-height: 3.3em; font-size: .72rem; }
  #maridaje-ia .sommelier-detail-toggle,
  #maridaje-ia .sommelier-card-detail { display: none !important; }
  #maridaje-ia .sommelier-dish-card > div { min-height: 36px; }
  #maridaje-ia .sommelier-dish-card .btn-primary { min-height: 34px; padding: .4rem; font-size: .5rem; }

  /* Paso 2: platos a la izquierda y criterio apilado a la derecha. */
  #maridaje-ia .sommelier-step-analysis {
    display: grid !important;
    grid-template-columns: minmax(0,1.2fr) minmax(118px,.8fr) !important;
    grid-template-rows: auto;
    align-items: start;
    height: auto;
    min-height: 0;
    gap: .4rem;
  }
  #maridaje-ia .sommelier-step-analysis .pairing-hero {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: .5rem .5rem;
    overflow: visible;
  }
  #maridaje-ia .sommelier-step-analysis .pairing-insights {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    min-height: 0;
  }
  #maridaje-ia .sommelier-step-analysis .pairing-panel-accent {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: .5rem .45rem;
    overflow: visible;
  }
  #maridaje-ia .sommelier-step-analysis .pairing-copy { height: auto; min-height: 0; }
  #maridaje-ia .sommelier-step-analysis .pairing-kicker { display: none; }
  #maridaje-ia .pairing-kicker,
  #maridaje-ia .pairing-panel-label { font-size: .48rem; }
  #maridaje-ia .sommelier-step-analysis #ai-subtitle { margin: .45rem 0 0; padding-top: .4rem; font-size: .72rem; }
  #maridaje-ia .sommelier-step-analysis #ai-text { display: block; margin: .18rem 0 0; overflow: visible; font-size: .54rem; line-height: 1.35; }
  #maridaje-ia .pairing-recommendation { display: block; margin: 0 0 .4rem; overflow: visible; font-size: .52rem; line-height: 1.35; }
  #maridaje-ia .pairing-current-reading { margin-top: 0; padding-top: 0; border-top: 0; }
  #maridaje-ia .pairing-status { margin: .15rem 0 .3rem; font-size: .52rem; line-height: 1.3; }
  #maridaje-ia .pairing-table-reading { padding: .35rem; }
  #maridaje-ia .pairing-table-reading > small { font-size: .45rem; }
  #maridaje-ia .pairing-dish-picker { gap: .25rem; max-height: none; }
  #maridaje-ia .pairing-dish-analysis { padding: .32rem .42rem; }
  #maridaje-ia .pairing-dish-status { font-size: .45rem; }
  #maridaje-ia .pairing-dish-analysis strong { margin: .15rem 0; font-size: .62rem; }
  #maridaje-ia .pairing-more-dishes { min-height: 30px; margin-top: .25rem; font-size: .52rem; }
  #maridaje-ia .sommelier-step-analysis .pairing-attributes {
    flex: 0 0 auto; min-height: 0;
    display: grid; grid-template-columns: 1fr; gap: .32rem; margin-top: .15rem;
  }
  #maridaje-ia .pairing-attributes > button {
    grid-template-columns: 1fr; align-content: start; justify-items: start;
    gap: .16rem; padding: .42rem .4rem; text-align: left;
  }
  #maridaje-ia .pairing-attributes > button > span { justify-items: start; }
  #maridaje-ia .pairing-attributes small { font-size: .48rem; }
  #maridaje-ia .pairing-attributes strong,
  #maridaje-ia .pairing-attributes em { font-size: .58rem; }
  #maridaje-ia .pairing-attributes em { grid-row: 2; }
  #maridaje-ia .pairing-attributes i { width: 100%; }
  #maridaje-ia .pairing-attributes u { font-size: .43rem; text-align: left; }
  #maridaje-ia .pairing-metric-help { display: none; }
  #maridaje-ia .pairing-grid {
    position: relative; height: auto; display: flex; align-items: stretch;
    gap: .5rem; padding: .15rem .15rem .45rem; overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  #maridaje-ia .pairing-grid::-webkit-scrollbar { display: none; }
  #maridaje-ia .pairing-suggestion-card {
    flex: 0 0 calc(100% - 1rem); height: auto; min-height: 0;
    gap: .38rem; padding: .7rem; scroll-snap-align: center;
  }
  #maridaje-ia .pairing-suggestion-top { gap: .35rem; }
  #maridaje-ia .pairing-badge,
  #maridaje-ia .pairing-score { padding: .3rem .42rem; font-size: .52rem; }
  #maridaje-ia .pairing-suggestion-card h4 { font-size: .92rem; line-height: 1.18; }
  #maridaje-ia .pairing-suggestion-card > p:not(.pairing-serve) {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    font-size: .62rem; line-height: 1.4;
  }
  #maridaje-ia .pairing-serve {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: .58rem; line-height: 1.35;
  }
  #maridaje-ia .pairing-tags { flex-wrap: nowrap; gap: .25rem; overflow: hidden; }
  #maridaje-ia .pairing-tags span { flex: 0 1 auto; padding: .25rem .35rem; overflow: hidden; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
  #maridaje-ia .pairing-actions {
    position: sticky; bottom: 0; margin-top: auto; padding-top: .45rem;
    border-top: 1px solid rgba(196,164,107,.16);
  }
  #maridaje-ia .pairing-price { font-size: .9rem; }
  #maridaje-ia .pairing-add-btn { min-height: 38px; padding: .48rem .65rem; font-size: .54rem; }
  #maridaje-ia .pairing-empty-state { height: 100%; align-content: center; padding: 1rem; }
  #maridaje-ia .pairing-empty-state strong { font-size: .8rem; }
  #maridaje-ia .pairing-empty-state span { font-size: .6rem; }
}
@media(max-width:768px) {
  .hero { min-height: 100svh; padding-top: 8.4rem; padding-bottom: 1.5rem; }
  .hero-card.hero-grid.hero-static-grid { transform: translateY(.5rem); grid-template-rows: auto; }
  .hero-static-grid .hero-panel-brand,
  .hero-static-grid .hero-panel-feature,
  .hero-static-grid .hero-panel-actions { height: auto; }
}

/* Gateway editorial alineado con el index de CurArte. */
body.gateway-pending { overflow: hidden; }
body.gateway-pending > :not(.gateway-overlay):not(.hero) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.gateway-pending .hero-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.gateway-overlay {
  padding: 1rem;
  background: rgba(8,10,11,.32);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.gateway-content {
  position: relative; overflow: hidden;
  width: min(92vw,500px); max-width: 500px;
  padding: clamp(1.6rem,4vw,2.5rem);
  border: 1px solid rgba(196,164,107,.34);
  border-left: 3px solid var(--accent-red);
  outline: 0;
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(29,31,32,.96),rgba(15,17,19,.96));
  box-shadow: 0 34px 100px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.04);
  text-align: left;
}
.gateway-content::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(circle at 100% 0,rgba(237,28,36,.12),transparent 38%);
}
.gateway-content > * { position:relative; z-index:1; }
.gateway-logo {
  display:block; width:clamp(125px,18vw,165px); height:auto;
  margin:0 auto 1.25rem !important; animation:none; filter:none !important;
}
.gateway-content > .gateway-logo,
.gateway-content > .gateway-logo.inline-brand-logo { align-self:center; justify-self:center; }
.gateway-content > .gateway-logo.inline-brand-logo svg { margin-inline:auto; }
body.theme-dark img.gateway-logo { content:url("../img/logo-dark.svg"); filter:none !important; }
body.theme-dark .gateway-logo.inline-brand-logo { filter:none !important; }
.gateway-wordmark {
  margin-bottom: 1.5rem;
  color:#f5efe4;
  font:700 clamp(2.1rem,6vw,3.4rem)/.9 "Cinzel",serif;
  letter-spacing:-.035em;
}
.gateway-content h2 { margin:.2rem 0 .45rem; color:#f5efe4; font-size:clamp(1.45rem,4vw,2rem); }
.gateway-content p { margin:0 0 1.45rem; color:#c4b7a3; }
.gateway-case-meta { display:block; margin:-.05rem 0 .75rem; color:#dfbd78; font-size:.57rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.gateway-archive-label { width:max-content; margin:0 auto .9rem; padding:.4rem .65rem; display:flex; align-items:center; gap:.42rem; color:#dfbd78; border:1px solid rgba(196,164,107,.25); border-radius:999px; background:rgba(196,164,107,.07); font-size:.58rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.gateway-options-archive { grid-template-columns:minmax(0,1fr); }
.gateway-demo-btn { width:100%; min-height:66px; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; text-align:left; }
.gateway-demo-btn > span { display:grid; gap:.2rem; }
.gateway-demo-btn strong { color:#f5efe4; font-size:.76rem; font-weight:600; }
.gateway-demo-btn small { color:#aa9f91; font-size:.59rem; font-weight:400; }
.gateway-options-demo .gateway-btn { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; text-align:left; }
.gateway-options-demo .gateway-btn > span { min-width:0; display:grid; gap:.18rem; }
.gateway-options-demo .gateway-btn strong { color:#f5efe4; font-size:.68rem; font-weight:600; line-height:1.25; }
.gateway-options-demo .gateway-btn small { color:#aa9f91; font-size:.55rem; font-weight:400; line-height:1.35; }
.gateway-demo-note { display:block; margin-top:.9rem; color:#857d73; font-size:.53rem; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
.gateway-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.gateway-btn {
  min-height:112px; padding:.9rem .7rem;
  flex-direction:column; justify-content:center; gap:.65rem;
  border:1px solid rgba(196,164,107,.25); border-radius:14px;
  background:rgba(255,255,255,.04); color:#f5efe4;
  font-size:.76rem; line-height:1.25; text-align:center;
}
.gateway-btn i { font-size:1.25rem; color:var(--accent-red); }
.gateway-btn:hover { background:rgba(237,28,36,.12); color:#fff; border-color:rgba(237,28,36,.4); box-shadow:none; }
@media(max-width:560px) {
  .gateway-content { padding:1.45rem 1.15rem; }
  .gateway-wordmark { margin-bottom:1rem; font-size:2.25rem; }
  .gateway-logo { width:130px; margin-bottom:1rem; }
  .gateway-options { grid-template-columns:1fr; }
  .gateway-btn { min-height:58px; flex-direction:row; justify-content:flex-start; padding:.8rem 1rem; text-align:left; }
}
