/* /css/styles.css */
/* =========================================================
   GHETTOS PIZZA — UI System (2025) — Underground Edition
   Cambios: PRICEDOWN para titulares, fondo global con back checker,
   nav sin CTA duplicado, carta informativa sin botón Añadir.
   ========================================================= */
:root{
  --bg:#1A1919; --surface:#291D2B; --surface-2:#3C2143; --border:#4D2457;
  --text:#F2ECF8; --text-muted:#B7A8C7;
  --primary:#712F87; --primary-hover:#B26ACB; --focus:#CFA3DE;
  --success:#92D17D; --info:#7DD3FC; --warning:#F59E0B; --error:#EF4444;

  --container-max: 1200px;
  --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);

  /* Fuentes especializadas */
  --font-display: "Bangers", cursive;
  --font-titles: "Kalam", cursive; /* Brush script urbano para títulos de productos - más legible */
  --font-block: "Luckiest Guy", cursive; /* Display cómic para secciones especiales */
  --font-descriptions: "Poppins", sans-serif; /* Sans redondeada para descripciones */
  --font-prices: "Bangers", cursive; /* Estilo cómic para precios */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-72: 72px;
}

/* Fuente Bangers cargada desde Google Fonts */

/* Reset y base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);

  /* Fondo global con el patrón adjunto */
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at center, rgba(26,25,25,.2) 0%, rgba(26,25,25,.7) 70%),
    url("/assets/img/back/background.png");
  background-size: auto, 640px auto; /* ajusta si quieres tiles más grandes/pequeños */
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, fixed;
}

img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible{
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--focus);
  border-radius: 10px;
}

.container{ width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px){ .container{ padding-inline: 32px; } }
@media (min-width: 1024px){ .container{ padding-inline: 48px; } }

.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:16px; top:16px; width:auto; height:auto; background:var(--primary); color:var(--text); padding:8px 12px; border-radius:8px; z-index:9999; }

/* Header / Navbar */
.site-header{
  position: sticky; top:0; z-index:1000;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.header-inner{ 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:80px; 
  min-height:64px; 
}
.logo { 
  display:flex; 
  align-items:center; 
  gap:16px;
  margin-left: -120px; /* Echarlo más hacia la izquierda */
}
.logo img{ 
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); 
  width:60px; 
  height:60px;
  object-fit:cover;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.logo-line {
  font-size: 24px;
  display: block;
  white-space: nowrap;
}

.nav{ 
  display:flex; 
  align-items:baseline; /* Cambiar de center a baseline para alinear con el botón */
  gap:24px; 
  margin-right: -120px; /* Mover más hacia la derecha */
}
.nav-toggle{
  display:inline-flex; flex-direction:column; gap:4px; padding:10px 8px;
  background:transparent; border:1px solid var(--border); border-radius:10px; color:var(--text);
  box-shadow: var(--shadow-sm);
}
.nav-toggle:active{ transform: translateY(1px); }
.nav-toggle-bar{ width:22px; height:2px; background:var(--text); border-radius:2px; }

.nav-list{
  position:fixed; inset:64px 0 auto 0;
  display:none; flex-direction:column; gap:12px; padding:20px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  border-bottom:1px solid var(--border); box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 18px;
}
.nav-list[data-open="true"]{ display: flex; }
.nav-list li{ list-style:none; }
.nav-list .divider{ height:1px; background:var(--border); margin:8px 0; }

@media (min-width: 1024px){
  .nav-toggle{ display:none; }
  .nav-list{
    position:static; inset:auto; flex-direction:row; background:transparent; border:0; box-shadow:none; padding:0; gap:32px;
    display: flex;
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 18px;
    align-items: baseline; /* Alinear con la baseline para consistencia */
  }
  .nav-list .divider{ display:none; }
  
  /* Enlaces normales con padding reducido para alineación */
  .nav-list a:not(.btn){ 
    padding:8px 12px; 
    border-radius:10px; 
    margin-top: 8px; /* Bajar un poco los enlaces */
  }
  .nav-list a:not(.btn):hover{ background: var(--surface-2); }
  
  /* Botón más grande en desktop */
  .nav-list .btn{ 
    font-size: 18px; 
    padding: 14px 24px; 
    border-radius: 12px;
  }
}

/* ================================
   OPTIMIZACIÓN MÓVILES 
   ================================ */

/* Prevenir scroll horizontal global */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  width: 100%;
  position: relative;
}

/* Asegurar que todos los elementos respeten el ancho */
* {
  max-width: 100%;
}

/* Responsive adjustments para móviles */
@media (max-width: 1023px){
  .header-inner {
    justify-content: space-between;
    padding: 0 16px;
  }
  
  /* Quitar márgenes negativos en móvil */
  .logo {
    margin-left: 0;
  }
  
  .nav {
    margin-right: 0;
  }
  
  /* Ajustar tamaño del logo en móvil */
  .logo img {
    width: 45px;
    height: 45px;
  }
  
  .logo-line {
    font-size: 18px;
  }
  
  /* Menú hamburguesa más visible */
  .nav-toggle {
    padding: 12px 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nav-toggle-bar {
    width: 24px;
    height: 3px;
  }
  
  /* Nav list móvil optimizada */
  .nav-list {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .nav-list li a {
    padding: 14px 20px;
    font-size: 20px;
  }
  
  /* Hero móvil */
  .hero {
    min-height: auto;
    padding: 24px 16px;
  }
  
  .hero-wrapper {
    gap: 20px;
  }
  
  .display {
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1;
  }
  
  .lead {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 16px 0 !important;
  }
  
  .lead br {
    display: none;
  }
  
  .lead span {
    font-size: 1em !important;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Container móvil */
  .container {
    padding-inline: 16px;
    max-width: 100%;
  }
  
  /* Sección móvil */
  .section {
    padding-block: 40px;
  }
  
  .section-title {
    font-size: clamp(24px, 8vw, 36px);
    text-align: center;
    margin-bottom: 24px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Botones móvil */
  .btn {
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    justify-content: center;
  }
  
  .btn-lg {
    padding: 16px 24px;
    font-size: 18px;
  }
  
  .btn-xl {
    padding: 18px 28px;
    font-size: 20px;
  }
  
  /* Delivery grid móvil */
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Footer móvil */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-inner nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Drinks list móvil */
  .drinks-list {
    gap: 8px;
  }
  
  .drink-item {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .drink-name {
    font-size: 16px;
  }
  
  .drink-price {
    font-size: 16px;
  }
  
  /* About cards móvil */
  .about-card, .social-section {
    padding: 20px;
    margin-bottom: 24px;
  }
  
  .about-card p {
    font-size: 15px;
  }
  
  .social-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  
  /* Contact page móvil */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .reservation-section, .call-section-card, .info-card {
    padding: 20px;
  }
  
  .contact-section-title {
    font-size: 24px;
  }
  
  .contact-section-subtitle {
    font-size: 18px;
  }
  
  /* Calendar móvil */
  .calendar-container {
    min-width: auto;
    width: calc(100vw - 32px);
    max-width: 360px;
    padding: 12px;
  }
  
  .calendar-day {
    font-size: 13px;
  }
  
  /* Form móvil */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Extra small devices (muy pequeños) */
@media (max-width: 360px) {
  .container {
    padding-inline: 10px;
  }
  
  .logo-line {
    font-size: 16px;
  }
  
  .logo img {
    width: 40px;
    height: 40px;
  }
  
  .display {
    font-size: 28px;
  }
  
  /* Asegurar 2 columnas incluso en pantallas muy pequeñas */
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  
  .product-title {
    font-size: 13px;
  }
  
  .product-description {
    font-size: 11px;
  }
  
  .product-price {
    font-size: 13px;
    padding: 4px 8px;
  }
  
  .product-info {
    padding: 6px;
  }
  
  .product-size-btn {
    padding: 2px 4px;
    font-size: 9px;
    min-width: 26px;
  }
  
  .card-title {
    font-size: 13px;
  }
  
  .card-desc {
    font-size: 10px;
  }
  
  .card-body {
    padding: 6px;
  }
}

/* Botones */
.btn{
  --_bg: transparent; --_color: var(--text); --_bd: var(--border);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 16px; border:1px solid var(--_bd); border-radius: var(--radius-sm);
  background: var(--_bg); color: var(--_color); 
  font-family: var(--font-display);
  font-weight: 300; 
  letter-spacing: .8px;
  text-transform: uppercase; box-shadow: var(--shadow-sm); transition: transform .08s ease, background .2s ease, border-color .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover{ border-color: color-mix(in oklab, var(--_bd) 70%, var(--text) 30%); }
.btn:active{ transform: translateY(2px); }
.btn-sm{ padding:8px 12px; font-size:.85rem; }
.btn-lg{ padding:18px 32px; font-size:1.3rem; }
.btn-xl{ padding:22px 36px; font-size:1.4rem; }
.btn-primary{ --_bg: var(--primary); --_bd: var(--primary); }
.btn-primary:hover{ --_bg: var(--primary-hover); --_bd: var(--primary-hover); }
.btn-ghost{ --_bg: transparent; --_color: var(--text); --_bd: var(--border); background: transparent; }
.btn-ghost:hover{ --_bg: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.gradient{ background: linear-gradient(135deg, var(--primary) 0%, var(--border) 50%, var(--bg) 100%); border-color: transparent; }

/* Tipografía display — PRICEDOWN */

.display,
.section-title,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #FFD700;
  text-shadow: 2px 2px 0 #000, 0 0 12px #712F87;
}
.display{ font-size: clamp(36px, 7vw, 84px); line-height: .95; }
.section-title{ font-size: clamp(28px, 4.5vw, 48px); margin: 0 0 var(--s-16); }
.section-subtitle{ color: var(--text-muted); margin: 0 0 var(--s-24); font-family: var(--font-descriptions); }

/* Headings con fuente PRICEDOWN */
h1, h2, h3 {
  /* ...estilo ya incluido arriba... */
  margin: 0 0 var(--s-16);
}
h1 { font-size: clamp(32px, 6vw, 64px); line-height: 1; }
h2 { font-size: clamp(24px, 4vw, 42px); line-height: 1.1; }
h3 { font-size: clamp(20px, 3vw, 32px); line-height: 1.2; }

/* Hero */
.hero{ 
  position: relative; 
  min-height: 70vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-48) var(--s-24);
}

.hero-media{
  position: absolute; 
  inset: 0; 
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(113,47,135,.65) 0%, rgba(77,36,87,.6) 45%, rgba(26,25,25,.75) 100%),
    url("/assets/img/back/background.png");
  background-size: auto, 640px auto;
  background-repeat: no-repeat, repeat;
  background-attachment: scroll, fixed;
  filter: saturate(1.05) contrast(1.05);
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
}

.hero-content{ 
  text-align: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lead{ 
  font-size: 1.1rem; 
  color: var(--text-muted); 
  font-family: var(--font-descriptions); 
  font-style: italic; 
  font-weight: 400; 
}

.hero-actions{ 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-top: var(--s-24); 
}

/* Hero responsive */
@media (min-width: 1024px) {
  .hero-wrapper {
    flex-direction: row;
    gap: 64px;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
  }
  
  .hero-image {
    flex: 0 0 auto;
    max-width: 450px;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--s-32) var(--s-16);
  }
  
  .hero-wrapper {
    gap: 32px;
  }
  
  .hero-image {
    max-width: 100%;
  }
}

/* Secciones base */
.section{ padding-block: clamp(48px, 7.5vw, 96px); }
.section .container{ position:relative; }

/* Delivery */
.delivery-grid{ display:grid; gap:16px; grid-template-columns: 1fr; }

@media (min-width:768px){ 
  .delivery-grid{ 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
  } 
}

/* Modal delivery optimizado para móvil */
@media (max-width: 767px) {
  .delivery-grid {
    gap: 12px;
  }
  
  .delivery-grid .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 17px;
  }
  
  #deliveryModal .modal-content {
    max-width: 90%;
    width: 90%;
  }
  
  #deliveryModal .modal-info {
    padding: 20px 16px;
  }
  
  #deliveryModal .modal-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  #deliveryModal .modal-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* Carta */
.menu-root{ display:flex; flex-direction:column; gap: var(--s-48); }
.menu-category{ display:flex; flex-direction:column; gap: var(--s-24); }

/* Grid 2 columnas por defecto (móviles) */
.menu-grid{ 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 10px;
}

@media (min-width:768px){ 
  .menu-grid{ 
    grid-template-columns: repeat(2, minmax(0,1fr)); 
    gap: 16px;
  } 
}

@media (min-width:1024px){ 
  .menu-grid{ 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
    gap: 16px;
  } 
}

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Optimización móvil para cards */
@media (max-width: 767px) {
  .card {
    border-radius: 10px;
  }
  
  .card-body {
    padding: 8px;
  }
  
  .card-title {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  
  .card-desc {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .card-footer {
    padding: 0;
    gap: 6px;
  }
}

.card:hover{ border-color: color-mix(in oklab, var(--border) 70%, var(--text) 30%); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-media{ position:relative; background: var(--surface-2); }
.card-media img{ width:100%; height:auto; aspect-ratio: 4/3; object-fit: cover; display:block; }
.chips{ position:absolute; left:12px; top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.chip{ background: color-mix(in oklab, var(--surface-2) 70%, var(--bg) 30%); border:1px solid var(--border); color: var(--text); padding:4px 8px; border-radius: 999px; font-size:.8rem; letter-spacing:.3px; box-shadow: var(--shadow-sm); }
.chip--spicy{ border-color: var(--error); }
.chip--bestseller{ border-color: var(--success); }

.card-body{ padding: 16px; display:flex; flex-direction:column; gap: 12px; }
.card-title{ font-family: var(--font-display); font-weight:300; letter-spacing:.4px; font-size: clamp(18px, 2.6vw, 24px); }
.card-desc{ color: var(--text-muted); font-size:.95rem; }

.options{ display:flex; flex-direction:column; gap:10px; }
fieldset{ border:1px dashed var(--border); border-radius:12px; padding:10px; }
legend{ padding:0 6px; color: var(--text-muted); font-size:.85rem; }
.option-row{ display:flex; gap:10px; flex-wrap:wrap; }
.option{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--border); border-radius:999px; user-select:none; }
.option input{ appearance:none; width:14px; height:14px; border:2px solid var(--border); border-radius:999px; display:inline-block; }
.option input:checked{ border-color: var(--primary); outline: 3px solid color-mix(in oklab, var(--focus) 50%, transparent); }

.card-footer{ display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:auto; }
.price{ color: var(--warning); font-weight:700; font-size:1.05rem; }

/* Contacto */
.contact-grid{ display:grid; gap:24px; grid-template-columns: 1fr; }
@media (min-width:768px){ .contact-grid{ grid-template-columns: 1.2fr .8fr; } }
.contact-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.hours{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.hours-list{ list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.hours-list li{ display:flex; justify-content:space-between; border-bottom:1px dashed var(--border); padding:6px 0; }
.socials{ display:flex; gap:10px; margin-top:12px; }
.social{ display:inline-flex; padding:8px; border:1px solid var(--border); border-radius: 12px; color: var(--text); }
.social:hover{ background: var(--surface-2); }

/* About / Nosotros */
.about-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(113,47,135,0.3);
  max-width: 900px;
  margin: 0 auto 40px;
}

.about-card p {
  font-family: var(--font-descriptions);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  margin: 32px 0 16px 0;
  letter-spacing: 0;
}

.code-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.code-list li {
  font-family: var(--font-descriptions);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  padding: 12px 0;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 12px;
}

.code-list li strong {
  color: #FFD700;
  font-weight: 600;
}

.tagline {
  font-family: 'Bangers', cursive;
  font-size: 22px;
  color: #FFD700;
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: rgba(113,47,135,0.2);
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.social-section {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 10px 32px 32px;
  box-shadow: 0 4px 16px rgba(113,47,135,0.3);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(113,47,135,0.4);
}

.social-link.instagram:hover {
  border-color: #E1306C;
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
}

.social-link.tiktok:hover {
  border-color: #00f2ea;
  background: #000;
  color: #00f2ea;
}

.social-link svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-card, .social-section {
    padding: 20px;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.footer{ border-top:1px solid var(--border); padding-block: 18px; background: color-mix(in oklab, var(--surface) 80%, transparent); }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer a{ color: var(--text-muted); }
.footer a:hover{ color: var(--text); }

/* Reveal on scroll */
[data-reveal]{ opacity:0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.is-visible{ opacity:1; transform: translateY(0); }

/* Acordeón para la carta */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(113,47,135,0.3), var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background-color .2s ease;
}

/* Optimización móvil para acordeón */
@media (max-width: 767px) {
  .accordion {
    gap: 16px;
  }
  
  .accordion-header {
    padding: 16px 12px;
  }
  
  .accordion-header h2 {
    font-size: clamp(18px, 5vw, 24px);
  }
  
  .accordion-icon {
    font-size: 28px;
  }
  
  .menu-text {
    padding: 16px 8px 16px;
  }
  
  .section-note {
    font-size: 0.85rem;
    padding: 0 8px;
    margin-bottom: 16px;
  }
}

.accordion-header:hover {
  background: var(--surface-2);
}

.accordion-header h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  text-align: left;
}

/* Estilo especial para "Pa' la Dieta" */
.accordion-header.special-section h2 {
  font-family: var(--font-block); /* Display cómic/urbano */
  font-weight: 400;
  letter-spacing: .1px;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--warning), #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
  font-size: clamp(20px, 3.5vw, 28px);
}

.accordion-icon {
  font-size: 32px;
  font-weight: 300;
  transition: transform .3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-content.open {
  max-height: 10000px;
}

.menu-text {
  padding: 32px 24px 32px; /* Aumentar padding superior */
}

.section-note {
  color: var(--text);
  font-style: normal;
  font-size: 0.9rem;
  margin-bottom: 32px; /* Aumentar margen inferior */
  padding: 0 24px;
}

.menu-item {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}

.menu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Grid layout para productos con fotos */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Optimización móvil para product-card */
@media (max-width: 767px) {
  .product-card {
    border-radius: 10px;
  }
  
  .product-info {
    padding: 8px;
  }
  
  .product-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  
  .product-description {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .product-price {
    font-size: 14px;
    padding: 5px 10px;
  }
  
  .product-size-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 30px;
  }
  
  .product-price-section {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .product-image {
    aspect-ratio: 1/1;
  }
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: block;
}

.product-image:hover {
  transform: scale(1.05);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.product-description {
  font-family: var(--font-descriptions);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* Cuando hay selector de tamaño, distribuir espacio */
.product-price-section .product-size-selector {
  margin-right: auto;
}

.product-price {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  background: var(--warning);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 20px;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

.product-size-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-size-btn {
  padding: 6px 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.product-size-btn:hover {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

.product-size-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Selector de tamaño en columnas para móvil */
@media (max-width: 767px) {
  .product-size-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  
  .product-size-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 11px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .product-price-section {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px;
  }
  
  .product-price-section .product-size-selector {
    margin-right: 0;
    order: 1;
  }
  
  .product-price-section .product-price {
    order: 2;
    text-align: center;
  }
}

/* Drinks List */
.drinks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.drink-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.drink-item:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: translateX(4px);
}

.drink-name {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.drink-price {
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: var(--warning);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Modal para imagen ampliada */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.image-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 90%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal-info {
  padding: 24px;
  max-width: 100%;
}

.modal-title {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modal-description {
  font-family: var(--font-descriptions);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }
  
  .modal-image {
    height: 300px;
  }
  
  .modal-info {
    padding: 16px;
  }
  
  .modal-title {
    font-size: 20px;
  }
}

/* Títulos regulares (no pizzas) */
.menu-item:not(.pizza-item) h3 {
  margin: 0 0 8px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-titles);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: .2px;
  text-transform: none;
  line-height: 1.2;
}

.menu-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--font-descriptions); /* Sans redondeada */
  font-style: italic; /* Cursiva/oblicua */
  font-weight: 400;
}

.price {
  color: #000;
  font-family: var(--font-prices);
  font-weight: 400;
  margin-left: auto;
  background: var(--warning);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9em;
  text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ================================
   CONTACT PAGE STYLES
   ================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-section-title {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  color: #FFD700;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}

.contact-section-subtitle {
  font-family: 'Bangers', cursive;
  font-size: 20px;
  color: #FFD700;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

/* Reservation Form */
.reservation-section {
  background: var(--surface);
  padding: 28px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(113,47,135,0.3);
}

/* Call Section Card - Separada */
.call-section-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(113,47,135,0.3);
}

.call-section-card p {
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.6;
  font-size: 14px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 14px;
  padding: 10px 20px;
}

.call-note {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

/* Calendar Styles */
.calendar-container {
  position: absolute;
  z-index: 100;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 16px;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(113,47,135,0.5);
  min-width: 320px;
}

/* Optimización del calendario para móviles */
@media (max-width: 767px) {
  .calendar-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    width: 90%;
    max-width: 340px;
    min-width: auto;
    padding: 12px;
  }
  
  .calendar-grid {
    gap: 4px;
  }
  
  .calendar-day {
    font-size: 12px;
  }
  
  .calendar-day-header {
    font-size: 11px;
    padding: 6px 0;
  }
  
  .calendar-header button {
    padding: 4px 8px;
    font-size: 14px;
  }
  
  .calendar-month {
    font-size: 16px;
  }
}

.form-group {
  position: relative;
}

#date {
  cursor: pointer;
}

#date:focus {
  outline: none;
  border-color: #FFD700;
  background: rgba(0, 0, 0, 0.7);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header button {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Bangers', cursive;
  font-size: 16px;
  transition: all 0.3s ease;
}

.calendar-header button:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
}

.calendar-month {
  font-family: 'Bangers', cursive;
  color: #FFD700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  font-family: 'Bangers', cursive;
  color: #FFD700;
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
}

.calendar-day.selected {
  background: #FFD700;
  color: #1A1919;
  font-weight: bold;
  border-color: #FFD700;
}

.calendar-day.today {
  border: 1px solid #FFD700;
}

.calendar-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day.other-month {
  opacity: 0.2;
  cursor: default;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Bangers', cursive;
  font-size: 14px;
  color: #FFD700;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD700;
  background: rgba(0, 0, 0, 0.7);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 2fr 1fr;
  }
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-compact {
  width: 100%;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
}

.form-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  margin: -8px 0 0 0;
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(113,47,135,0.3);
}

/* Schedule List */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  border-left: 3px solid #FFD700;
}

.schedule-list li span:first-child {
  font-family: 'Bangers', cursive;
  color: #FFD700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.schedule-list li span:last-child {
  color: var(--text);
  font-size: 13px;
  text-align: right;
  font-weight: 600;
}

/* Location */
.location-address {
  font-style: normal;
  color: var(--text);
  margin: 0 0 20px 0;
  line-height: 1.6;
  font-size: 15px;
}

.location-address strong {
  display: block;
  margin-bottom: 8px;
}

.map-container {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* Button Secondary */
.btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 12px 24px;
  font-family: 'Bangers', cursive;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: #FFD700;
  color: #1A1919;
}

/* ================================
   OPTIMIZACIONES FINALES MÓVILES
   ================================ */

/* FORZAR 2 COLUMNAS EN MÓVILES */
@media (max-width: 767px) {
  /* Forzar 2 columnas en el grid de productos */
  .menu-grid,
  #recommended-products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  
  /* Prevenir overflow en todas las secciones */
  .section > .container,
  .hero-wrapper,
  .menu-grid,
  .delivery-grid,
  .contact-grid,
  .accordion {
    overflow-x: hidden;
  }
  
  /* Asegurar que las imágenes no desborden */
  .hero-image img,
  .product-image,
  .card-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Optimizar espaciado en cards pequeñas */
  .card-footer {
    padding: 0;
    gap: 8px;
  }
  
  /* Mejorar legibilidad de precios en móvil */
  .price {
    font-size: 13px;
    padding: 5px 8px;
  }
  
  .product-price {
    font-size: 14px !important;
    padding: 5px 10px !important;
  }
  
  /* Optimizar chips/badges */
  .chips {
    left: 8px;
    top: 8px;
  }
  
  .chip {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  /* Hero image responsiva */
  .hero-image {
    max-width: 100%;
    width: 100%;
  }
  
  /* Mejor espaciado en listas de drinks */
  .drinks-list {
    padding: 0 8px;
  }
  
  /* Optimizar menu items */
  .menu-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  
  /* Ajustar selectores de tamaño */
  .product-size-selector {
    flex-wrap: nowrap;
    gap: 4px;
  }
  
  /* Touch targets adecuados (mínimo 44x44px) */
  .nav-toggle,
  .accordion-header,
  .product-size-btn,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Prevenir zoom en inputs en iOS */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Landscape móvil */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 24px 16px;
  }
  
  .hero-wrapper {
    flex-direction: row;
    gap: 24px;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-image {
    flex: 0 0 40%;
    max-width: 300px;
  }
  
  .display {
    font-size: 32px;
  }
  
  .lead {
    font-size: 0.95rem;
  }
}
