/* ============================================================
   modal.css — Modal luxury editorial: ficha técnica premium
   Ilios Vounó — marca de mezcal artesanal de élite
   ============================================================ */

/* ── Tokens locales ── */
:root {
  --modal-silver:      #C8C2B8;
  --modal-silver-dim:  rgba(200, 194, 184, 0.12);
  --modal-silver-line: rgba(200, 194, 184, 0.22);
  --modal-surface:     rgba(8, 7, 6, 0.98);
  --modal-border:      rgba(255, 255, 255, 0.065);
  --modal-text-mid:    rgba(255, 255, 255, 0.55);
  --modal-text-dim:    rgba(255, 255, 255, 0.32);
}

/* ── Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Marco de grecas — flota detrás del panel ── */
.modal-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.modal-frame__svg {
  position: absolute;
  width: min(820px, 98vw);
  height: min(620px, 95svh);
  height: min(620px, 95vh);
  overflow: visible;
}

.modal-frame__greca {
  stroke: rgba(200, 194, 184, 0.28);
  stroke-width: 1.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
  filter: drop-shadow(0 0 3px rgba(200,194,184,0.12));
}

.modal-frame__line {
  stroke: rgba(200, 194, 184, 0.12);
  stroke-width: 0.8;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}

/* El panel va encima del marco */
#modal-panel {
  position: relative;
  z-index: 1;
}

/* ── Panel ── */
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 92svh;
  max-height: 92vh;
  overflow-y: auto;
  background:
    linear-gradient(rgba(4, 6, 5, 0.45), rgba(4, 6, 5, 0.45)),
    url('../../assets/images/fondo_oscurof.jpg');
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--modal-accent-color, rgba(200, 194, 184, 0.5));
  border-radius: 3px;
  box-shadow:
    0 0 0 1px var(--modal-accent-color, transparent),
    0 0 18px var(--modal-accent-color, rgba(200, 194, 184, 0.35)),
    0 0 45px color-mix(in srgb, var(--modal-accent-color, rgba(200,194,184,0.15)) 40%, transparent),
    inset 0 0 20px rgba(0, 0, 0, 0.18);
  transform: translateY(44px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,194,184,0.12) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Mobile: ajuste de fondo para nueva imagen */
@media (max-width: 767px) {
  .modal-panel {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-panel::-webkit-scrollbar        { width: 2px; }
.modal-panel::-webkit-scrollbar-track  { background: transparent; }
.modal-panel::-webkit-scrollbar-thumb  { background: rgba(200,194,184,0.18); border-radius: 1px; }

/* Línea platino degradada en el tope */
.modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--modal-silver), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Botón Cerrar ── */
.modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}
.modal-close:hover {
  border-color: var(--modal-silver-line);
  color: var(--modal-silver);
}

/* ── Botón Cerrar: circular Liquid Glass en mobile ── */
@media (max-width: 767px) {
  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    box-shadow:
      0 2px 12px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.18);
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease,
      transform 0.2s ease;
  }
  .modal-close:active {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
    transform: scale(0.95);
  }
  .modal-close svg { width: 11px; height: 11px; }
}

/* ── Body ── */
.modal-body {
  padding: var(--space-10) var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ── Header — Mobile: imagen izquierda + texto derecha ── */
.modal-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-5);
  align-items: center;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--modal-border);
}

.modal-header__img-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header__aura { display: none; }

.modal-header__img-wrap {
  background: transparent;
}

.modal-header__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.65));
}

.modal-header__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal-header__prelabel {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.55;
}

.modal-header__nombre {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-white);
}

.modal-header__agave {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--modal-text-dim);
  margin-top: 2px;
}

.modal-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--space-3);
}

.modal-header__tag {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--modal-text-dim);
}
.modal-header__tag:not(:last-child)::after {
  content: ' ·';
  margin-right: 0.5em;
  opacity: 0.4;
}

/* ── Desktop: header centrado, imagen arriba grande ── */
@media (min-width: 640px) {
  .modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
  }
  .modal-header__img-wrap {
    width: 180px;
    height: 180px;
  }
  .modal-header__info {
    align-items: center;
  }
  .modal-header__tags {
    justify-content: center;
  }
}

/* ── Presentacion desktop-only (bajo los tags) ── */
.modal-header__presentacion-dt {
  display: none; /* oculto en mobile */
}
@media (min-width: 768px) {
  .modal-header__presentacion-dt {
    display: block;
    font-family: var(--font-body);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 194, 184, 0.55);
    margin-top: 8px;
    text-align: center;
  }
}

/* ── Specs: tabla editorial ── */
.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--modal-border);
}

@media (min-width: 600px) {
  .modal-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modal-spec {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--modal-border);
  border-right: 1px solid var(--modal-border);
}
.modal-spec:nth-child(2n)   { border-right: none; }

@media (min-width: 600px) {
  .modal-spec:nth-child(2n) { border-right: 1px solid var(--modal-border); }
  .modal-spec:nth-child(3n) { border-right: none; }
}

.modal-spec__label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.6;
}

.modal-spec__value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
}

.modal-spec__agave-desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--modal-text-dim);
  line-height: 1.5;
  margin-top: var(--space-1);
  font-style: italic;
}

/* ── Proceso artesanal ── */
.modal-proceso {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal-proceso__title {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.6;
}

.modal-proceso__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 600px) {
  .modal-proceso__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-proceso__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-2);
  border-bottom: 1px solid var(--modal-border);
}

/* Columna izquierda: icono + número apilados */
.modal-proceso__step-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 2px;
}

.modal-proceso__step-icon {
  color: var(--modal-silver);
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-proceso__step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--modal-silver);
  opacity: 0.55;
  line-height: 1;
}

.modal-proceso__step-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.modal-proceso__step-name {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.modal-proceso__step-desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--modal-text-dim);
  line-height: 1.65;
}

/* ── Sensorial ── */
.modal-sensorial {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-sensorial__title {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.6;
}

.modal-sensorial__rows {
  display: flex;
  flex-direction: column;
}

.modal-sensorial__row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--modal-border);
}

.modal-sensorial__sense {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.48;
  flex-shrink: 0;
}

.modal-sensorial__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--modal-text-mid);
  line-height: 1.75;
  font-style: italic;
}

/* ── Divider ── */
.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--modal-border) 30%, var(--modal-border) 70%, transparent);
}

/* ── Footer ── */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-7);
  flex-wrap: wrap;
}

.modal-footer__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-footer__presentacion {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--modal-silver);
  opacity: 0.6;
}

.modal-footer__grado {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* ── Acciones footer ── */
.modal-footer__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Botones Liquid Glass — cápsula real ── */
.modal-add-cart-btn,
.modal-ver-botella-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.20);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 110px;
}

.modal-add-cart-btn:hover,
.modal-ver-botella-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(255,255,255,0.98);
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.20);
}

.modal-add-cart-btn:active,
.modal-ver-botella-btn:active {
  transform: translateY(0);
}

/* Ver Botella — CTA primario: borde y brillo un poco más fuerte */
.modal-ver-botella-btn {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255,255,255,0.95);
}
.modal-ver-botella-btn span {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   COLUMNAS — mobile: display:contents (invisible wrapper)
   desktop: layout horizontal real
   ══════════════════════════════════════════════════════════ */

/* Mobile: los wrappers se disuelven → hijos quedan en el flujo normal */
.modal-col {
  display: contents;
}

/* Footer al final del flujo en mobile */
.modal-footer {
  order: 10;
}

/* ── DESKTOP HORIZONTAL — min-width: 768px ── */
@media (min-width: 768px) {

  /* Panel: más ancho, altura fija, sin scroll propio */
  .modal-panel {
    max-width: 1080px;
    max-height: min(720px, 88vh);
    overflow: hidden;
    scrollbar-width: none;
    background-size: cover;
    background-position: center center;
  }
  .modal-panel::-webkit-scrollbar { display: none; }

  /* Body: fila, altura total del panel */
  .modal-body {
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 0;
    height: 100%;
    max-height: min(720px, 88vh);
    overflow: hidden;
  }

  /* ── Columna izquierda: identidad ── */
  .modal-col--left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    flex-shrink: 0;
    padding: var(--space-12) var(--space-7) var(--space-8);
    border-right: 1px solid var(--modal-border);
    overflow: hidden;
  }

  /* Header: centrado verticalmente */
  .modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
    justify-content: center;
  }
  .modal-header__img-wrap {
    width: 185px;
    height: 185px;
  }
  .modal-header__info { align-items: center; }
  .modal-header__tags { justify-content: center; }

  /* Footer: en la parte inferior de la columna izquierda */
  .modal-footer {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
    flex-wrap: unset;
  }
  /* Ocultar presentacion y grado del footer — se muestran en el header */
  .modal-footer__info {
    display: none;
  }
  .modal-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 0 var(--space-6);
  }
  .modal-add-cart-btn,
  .modal-ver-botella-btn {
    width: 170px !important;
    min-width: unset !important;
    max-width: 170px;
    padding: 9px 14px !important;
    justify-content: center;
    font-size: 7.5px !important;
    letter-spacing: 0.22em !important;
    border-radius: 999px;
  }

  /* ── Columna derecha: ficha técnica scrollable ── */
  .modal-col--right {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,194,184,0.10) transparent;
  }
  .modal-col--right::-webkit-scrollbar       { width: 2px; }
  .modal-col--right::-webkit-scrollbar-track { background: transparent; }
  .modal-col--right::-webkit-scrollbar-thumb { background: rgba(200,194,184,0.18); border-radius: 1px; }

  /* Secciones dentro de col derecha: padding propio */
  .modal-col--right > section {
    padding: var(--space-7) var(--space-8) var(--space-6);
  }
  .modal-col--right .modal-proceso {
    padding: var(--space-6) var(--space-8);
  }
  .modal-col--right .modal-sensorial {
    padding: var(--space-6) var(--space-8) var(--space-8);
    flex: 1; /* empuja hacia abajo si hay espacio sobrante */
  }

  /* Specs: 3 columnas compactas */
  .modal-specs {
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
  }
  .modal-spec:nth-child(2n)   { border-right: 1px solid var(--modal-border); }
  .modal-spec:nth-child(3n)   { border-right: none; }

  /* Proceso: grid 2×2 */
  .modal-proceso__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Línea top del panel: sólo sobre la columna derecha */
  .modal-panel::before {
    left: 300px;
    right: 5%;
  }
}

/* ── Responsive mobile ── */
@media (max-width: 479px) {
  .modal-body {
    padding: var(--space-8) var(--space-5) var(--space-6);
    gap: var(--space-6);
  }
  .modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-footer__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .modal-sensorial__row {
    grid-template-columns: 50px 1fr;
  }
}


/* ════════════════════════════════════════════════════
   AGE GATE
   ════════════════════════════════════════════════════ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease-out, background-color 1.5s ease, backdrop-filter 1.5s ease;
}

.age-gate.is-vanished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.age-gate__bg {
  will-change: transform, opacity;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease-in;
}

.age-gate.zoom-portal .age-gate__bg {
  transform: scale(4.5) translateZ(0);
  opacity: 0;
}

.age-gate__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8);
  max-width: 500px;
  will-change: transform, opacity;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
}

.age-gate.hide-text .age-gate__panel {
  transform: scale(1.5) translateZ(0);
  opacity: 0;
  pointer-events: none;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 12px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  width: auto !important;
}

.btn--glass:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

.btn--glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.age-gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  margin-top: var(--space-2);
}

.dob-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--space-2);
}

.glass-input, .glass-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px; /* Mínimo 16px para evitar auto-zoom en iOS Safari al enfocar */
  text-align: center;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.glass-input:focus, .glass-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.glass-input::placeholder { color: rgba(255, 255, 255, 0.2); }

.glass-input::-webkit-outer-spin-button,
.glass-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.glass-input[type=number]               { -moz-appearance: textfield; }

.glass-select {
  width: 100%;
  text-align: left;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}
.glass-select option { background: var(--color-black); }

.glass-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  justify-content: center;
  margin-top: var(--space-2);
}
.glass-checkbox input { display: none; }
.custom-chk {
  width: 18px; height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.glass-checkbox input:checked + .custom-chk {
  background: var(--color-white);
  border-color: var(--color-white);
}
.glass-checkbox input:checked + .custom-chk::after {
  content: '✓';
  color: var(--color-black);
  font-size: 12px;
  font-weight: 900;
}
.terms-text {
  font-size: 10px;
  color: var(--color-gray-400);
  letter-spacing: 0.05em;
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.age-gate__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-gray-200);
}
.age-gate__actions {
  display: flex;
  gap: var(--space-4);
  width: 100%;
  justify-content: center;
  margin-top: var(--space-4);
}
.age-gate__legal {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  margin-top: var(--space-4);
}

/* ============================================================
   DESKTOP OVERRIDES — texto blanco, iconos nítidos, close circular
   Solo afecta ≥768px — mobile intacto
   ============================================================ */
@media (min-width: 768px) {

  /* ── Botón Cerrar: circular Liquid Glass ── */
  .modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    box-shadow:
      0 2px 12px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.18);
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease,
      transform 0.2s ease,
      box-shadow 0.25s ease;
  }
  .modal-close:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow:
      0 4px 20px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .modal-close svg { width: 12px; height: 12px; }

  /* ── Labels de sección (PROCESO ARTESANAL, NOTAS SENSORIALES) ── */
  .modal-proceso__title,
  .modal-sensorial__title {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
  }

  /* ── Spec labels (AGAVE, MAESTRO MEZCALERO…) ── */
  .modal-spec__label {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
  }

  /* ── Spec valores ── */
  .modal-spec__value {
    color: #ffffff;
  }

  /* ── Agave description italic ── */
  .modal-spec__agave-desc {
    color: rgba(255, 255, 255, 0.70);
  }

  /* ── Proceso: iconos SVG — blancos y opacos ── */
  .modal-proceso__step-icon {
    color: rgba(255, 255, 255, 0.90);
    opacity: 1;
  }

  /* ── Proceso: número paso ── */
  .modal-proceso__step-num {
    color: rgba(255, 255, 255, 0.70);
    opacity: 1;
  }

  /* ── Proceso: nombre del paso ── */
  .modal-proceso__step-name {
    color: #ffffff;
  }

  /* ── Proceso: descripción ── */
  .modal-proceso__step-desc {
    color: rgba(255, 255, 255, 0.78);
  }

  /* ── Sensorial: etiqueta sentido (VISTA, OLFATO…) ── */
  .modal-sensorial__sense {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
  }

  /* ── Sensorial: texto descriptivo ── */
  .modal-sensorial__text {
    color: rgba(255, 255, 255, 0.88);
  }

  /* ── Header: agave italic y prelabel ── */
  .modal-header__agave {
    color: rgba(255, 255, 255, 0.70);
  }
  .modal-header__prelabel {
    color: rgba(255, 255, 255, 0.60);
    opacity: 1;
  }
  .modal-header__tag {
    color: rgba(255, 255, 255, 0.65);
  }

  /* ── Presentacion desktop bajo los tags ── */
  .modal-header__presentacion-dt {
    color: rgba(255, 255, 255, 0.60);
  }

  /* ── Botones: más grandes en desktop ── */
  .modal-add-cart-btn,
  .modal-ver-botella-btn {
    width: 185px !important;
    max-width: 185px !important;
    padding: 11px 16px !important;
    font-size: 8px !important;
    letter-spacing: 0.24em !important;
  }

  /* ── Subir botones: padding-bottom en la columna izquierda
     Mueve el punto de anclaje del footer (space-between) hacia arriba
     para que queden alineados con VISTA / OLFATO en la columna derecha ── */
  .modal-col--left {
    padding-bottom: 155px;
  }
}
