/* ============================================================
   PASSIONE PIZZA — styles.css v1.0
   Sistema de diseño completo · Mayo 2026
   ============================================================ */

/* Google Fonts are loaded via <link> in HTML for better performance */

/* ============================================================
   1. TOKENS / CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colores de marca */
  --color-verde:         #1a5c2a;
  --color-rojo:          #cc1a1a;
  --color-dorado:        #d4a017;
  --color-negro:         #111111;
  --color-blanco:        #ffffff;

  /* Fondos */
  --bg-primary:          #111111;
  --bg-secondary:        #1a1a1a;
  --bg-light:            #fdf6e3;
  --bg-card:             #ffffff;
  --bg-verde-deep:       #12401d;
  --bg-verde-soft:       #e8f4ec;

  /* Textos */
  --text-primary:        #111111;
  --text-secondary:      #4a4a4a;
  --text-muted:          #7a7a7a;
  --text-on-dark:        #ffffff;
  --text-on-dark-muted:  #e0d9cc;

  /* Botones */
  --btn-primary:         #25d366;
  --btn-primary-hover:   #1ebe5a;
  --btn-primary-active:  #17a34a;
  --btn-secondary:       #1a5c2a;
  --btn-secondary-hover: #12401d;
  --btn-whatsapp:        #25d366;
  --btn-whatsapp-hover:  #1ebe5a;
  --btn-delivery:        #d4a017;
  --btn-delivery-hover:  #b8891a;

  /* Bordes */
  --border-light:        #e8e0d0;
  --border-dark:         rgba(255, 255, 255, 0.12);
  --border-dorado:       #d4a017;

  /* Overlay */
  --overlay-dark:        rgba(17, 17, 17, 0.65);
  --overlay-verde:       rgba(26, 92, 42, 0.80);

  /* Tipografía */
  --font-display:        'Playfair Display', Georgia, serif;
  --font-body:           'Lato', system-ui, sans-serif;
  --font-accent:         'Dancing Script', cursive;

  /* Escala tipográfica */
  --text-display:        clamp(2.75rem, 7vw, 5rem);
  --text-h1:             clamp(2rem, 5vw, 3.5rem);
  --text-h2:             clamp(1.625rem, 3.5vw, 2.375rem);
  --text-h3:             clamp(1.2rem, 2.5vw, 1.5rem);
  --text-lead:           clamp(1rem, 2vw, 1.2rem);
  --text-body:           1rem;
  --text-body-sm:        0.9375rem;
  --text-caption:        0.8125rem;
  --text-label:          0.75rem;
  --text-tagline:        clamp(1.375rem, 3vw, 1.875rem);

  /* Espaciado */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  3rem;
  --space-6:  4rem;
  --space-7:  6rem;
  --space-8:  8rem;

  /* Layout */
  --container-max:  1200px;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-pill:    50px;

  /* Sombras */
  --shadow-card:         0 2px 12px rgba(17, 17, 17, 0.08);
  --shadow-card-hover:   0 12px 30px rgba(17, 17, 17, 0.15);
  --shadow-btn-rojo:     0 4px 15px rgba(204, 26, 26, 0.35);
  --shadow-btn-whatsapp: 0 4px 20px rgba(37, 211, 102, 0.40);
  --shadow-btn-dorado:   0 4px 20px rgba(212, 160, 23, 0.40);

  /* Transiciones */
  --transition-fast:    0.20s ease;
  --transition-base:    0.30s ease;
  --transition-slow:    0.50s ease;
  --transition-bounce:  0.40s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navbar height */
  --navbar-h: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   3. UTILIDADES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 3rem;
}

@media (max-width: 768px) {
  .container { padding-inline: 1.25rem; }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-dorado);
  border: 1px solid rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.10);
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.1;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-tagline);
  font-weight: 700;
  line-height: 1.3;
  margin-top: var(--space-1);
}

.italian-flag {
  display: block;
  width: 80px;
  height: 4px;
  margin: var(--space-2) auto 0;
  background: linear-gradient(to right,
    var(--color-verde) 33.3%,
    var(--color-blanco) 33.3% 66.6%,
    var(--color-rojo) 66.6%
  );
  border-radius: 2px;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   4. BOTONES
   ============================================================ */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* CTA Principal — verde WhatsApp */
.btn-primary {
  background: var(--btn-primary);
  color: var(--color-negro);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.30);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: var(--btn-primary-active);
  transform: translateY(0);
}

/* Secundario — verde outline */
.btn-secondary {
  background: transparent;
  color: var(--color-verde);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-verde);
}

.btn-secondary:hover {
  background: var(--color-verde);
  color: var(--color-blanco);
}

/* Ghost — sobre fondos oscuros */
.btn-ghost {
  background: transparent;
  color: var(--color-blanco);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.60);
}

.btn-ghost:hover {
  border-color: var(--color-dorado);
  color: var(--color-dorado);
}

/* WhatsApp — pill verde */
.btn-whatsapp {
  background: var(--btn-whatsapp);
  color: var(--color-negro);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: var(--btn-whatsapp-hover);
  transform: translateY(-2px);
}

/* Delivery — pill dorado */
.btn-delivery {
  background: var(--btn-delivery);
  color: var(--color-negro);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  box-shadow: var(--shadow-btn-dorado);
}

.btn-delivery:hover {
  background: var(--btn-delivery-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.55);
}

/* Botón de plataforma delivery individual */
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid var(--border-light);
  transition: all var(--transition-base);
}

.btn-platform:hover {
  border-color: var(--color-dorado);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.btn-platform img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.30);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}

.navbar-brand-name {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.navbar-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.navbar-brand-passione {
  color: #4db870;
  margin-right: 0.3em;
}

.navbar-brand-pizza {
  color: #ffffff;
}

.navbar-brand-pizzeria {
  color: var(--color-rojo);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-blanco);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-dorado);
  transition: width var(--transition-fast);
}

.navbar-links a:hover::after { width: 100%; }
.navbar-links a:hover { color: var(--color-dorado); }

.navbar-cta {
  margin-left: var(--space-3);
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-blanco);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.navbar-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.navbar-mobile.open { display: flex; }

.navbar-mobile a {
  display: block;
  padding: 16px var(--space-4);
  color: var(--color-blanco);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-mobile a:hover { color: var(--color-dorado); background: rgba(255,255,255,0.04); }

.navbar-mobile-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.navbar-mobile-btns .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .navbar-links, .navbar-cta { display: none; }
  .navbar-toggle { display: flex; }
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
  filter: brightness(0.85) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.45) 0%,
    rgba(17, 17, 17, 0.65) 50%,
    rgba(17, 17, 17, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--navbar-h) + var(--space-7));
  padding-bottom: var(--space-7);
}

.hero-inner {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-dorado);
  border: 1px solid rgba(212, 160, 23, 0.40);
  background: rgba(212, 160, 23, 0.10);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}


.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 900;
  color: var(--color-blanco);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.hero-title em {
  font-style: italic;
  color: var(--color-dorado);
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: var(--text-tagline);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.hero-ctas .btn-whatsapp,
.hero-ctas .btn-delivery {
  font-size: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-dorado);
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .hero-inner { max-width: 100%; }
  .hero-title { letter-spacing: -0.01em; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   7. SECCIÓN PEDIDOS
   ============================================================ */
.pedidos {
  background: var(--color-verde);
  padding: var(--space-7) 0;
}

.pedidos .section-title { color: var(--color-blanco); }
.pedidos .section-subtitle { color: rgba(255,255,255,0.75); }
.pedidos .italian-flag { margin-bottom: var(--space-6); }

.pedidos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.pedido-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.30);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
  min-width: 0;
}

@media (max-width: 600px) {
  .pedido-card { padding-inline: var(--space-4); }
}

.pedido-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(212,160,23,0.55);
  transform: translateY(-4px);
}

.pedido-icon {
  font-size: 3rem;
  color: var(--color-dorado);
  margin-bottom: var(--space-3);
  display: block;
}

.pedido-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-blanco);
  margin-bottom: var(--space-2);
}

.pedido-desc {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.pedido-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.pedido-platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border: none;
  transition: all var(--transition-base);
}

.pedido-platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.pedido-platform-btn.justeat { background: #FF8000; color: #fff; }
.pedido-platform-btn.glovo   { background: #FFC244; color: #111; }
.pedido-platform-btn.uber    { background: #000;    color: #fff; }

.pedido-note {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-1);
}

.pedidos-phone {
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: var(--text-body-sm);
}

.pedidos-phone a {
  color: var(--color-dorado);
  font-weight: 700;
  font-size: 1.125rem;
  transition: color var(--transition-fast);
}

.pedidos-phone a:hover { color: var(--color-blanco); }

@media (max-width: 768px) {
  .pedidos-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   8. SECCIÓN CARTA
   ============================================================ */
.carta {
  background: var(--bg-light);
  padding: var(--space-4) 0 var(--space-7);
}

.carta .section-title { color: var(--text-primary); }
.carta .section-subtitle { color: var(--color-verde); }

/* Tabs */
.carta-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: var(--space-5);
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carta-tabs::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .carta-tabs::after {
    content: '';
    position: sticky;
    right: 0;
    flex-shrink: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-light));
    pointer-events: none;
    align-self: stretch;
  }
}

.carta-tab {
  flex-shrink: 0;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.carta-tab:hover { color: var(--color-rojo); }

.carta-tab.active {
  color: var(--color-rojo);
  border-bottom-color: var(--color-rojo);
}

/* Panels */
.carta-panel { display: none; }
.carta-panel.active {
  display: block;
  animation: fadeIn 0.12s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Tabla de lista (entrantes, pasta, postres, bebidas) */
.carta-list {
  display: grid;
  gap: 12px;
}

.carta-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.carta-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.carta-list-info { flex: 1; min-width: 0; }

.carta-list-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.carta-list-desc {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.5;
}

.carta-list-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-rojo);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Nota fuera de carta */
.fuera-carta {
  margin-top: var(--space-5);
  text-align: center;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-verde) 0%, var(--bg-verde-deep) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-blanco);
}
@media (max-width: 480px) {
  .fuera-carta {
    padding: var(--space-4) var(--space-3);
  }
}

.fuera-carta-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.fuera-carta p {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-3);
}

/* Sección Crear tu pizza */
.crea-pizza {
  margin-top: var(--space-5);
}

.crea-pizza-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.crea-pizza-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .crea-pizza-grid { grid-template-columns: 1fr; }
}

.crea-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-dorado);
}

.crea-box-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crea-tag {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Galería de imágenes (antes de la carta) */
.carta-gallery-strip {
  background: var(--bg-light);
  padding: var(--space-4) 0 var(--space-2);
}

.carta-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.carta-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  filter: saturate(1.15);
  transition: transform var(--transition-base);
  cursor: pointer;
}

.carta-gallery img:hover {
  will-change: transform;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .carta-gallery { grid-template-columns: repeat(2, 1fr); }
}


/* Nota al pie de carta */
.carta-footnote {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
  padding: var(--space-3);
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   9. SECCIÓN COMBOS
   ============================================================ */

.combos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .combos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .combos-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

.combo-card {
  background: linear-gradient(135deg, var(--color-verde) 0%, var(--bg-verde-deep) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 160, 23, 0.30);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: 0 8px 32px rgba(26, 92, 42, 0.35);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.combo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(212, 160, 23, 0.06);
  border-radius: 50%;
}

.combo-card:hover {
  will-change: transform;
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(26, 92, 42, 0.50);
}

.combo-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  border: 2px solid var(--color-dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 1.875rem;
  color: var(--color-dorado);
}

.combo-name {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-blanco);
  margin-bottom: var(--space-2);
}

.combo-includes {
  font-size: var(--text-body-sm);
  color: var(--text-on-dark-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.combo-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.combo-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-dorado);
  line-height: 1;
}

.combo-price-before {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-weight: 400;
}

.combo-badge-save {
  display: inline-block;
  background: var(--color-rojo);
  color: var(--color-blanco);
  font-weight: 700;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}


/* ============================================================
   10. SECCIÓN RESEÑAS
   ============================================================ */
.resenas {
  background: var(--color-verde);
  padding: var(--space-7) 0;
  text-align: center;
}

.resenas-rating {
  margin-bottom: var(--space-5);
}

.resenas-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 900;
  color: var(--color-dorado);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.resenas-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.625rem;
  color: var(--color-dorado);
  margin-bottom: var(--space-2);
}

.resenas-count {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.70);
  font-weight: 300;
}

.resenas-quote {
  position: relative;
  max-width: 680px;
  margin: 0 auto var(--space-5);
  padding: var(--space-4) var(--space-5);
}

.resenas-quote-icon {
  position: absolute;
  top: 0;
  left: var(--space-3);
  font-size: 3rem;
  color: rgba(212, 160, 23, 0.25);
  line-height: 1;
}

.resenas-quote-text {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-style: italic;
  font-weight: 700;
  color: var(--color-blanco);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.resenas-quote-author {
  font-size: var(--text-caption);
  color: var(--text-on-dark-muted);
}

.resenas-cta-wrap {
  margin-bottom: var(--space-3);
}

.resenas-motivacion {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-2);
}

/* ============================================================
   11. SECCIÓN CONTACTO
   ============================================================ */
.contacto {
  background: var(--bg-light);
  padding: var(--space-7) 0;
}

.contacto .section-title { color: var(--text-primary); }

/* Foto del local */
.contacto-photo {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.contacto-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.contacto-photo:hover img {
  will-change: transform;
  transform: scale(1.02);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; }
}


.contacto-info-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.contacto-data {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contacto-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.contacto-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(204, 26, 26, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--color-rojo);
}


.contacto-item-label {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contacto-item-value {
  font-size: var(--text-body);
  color: var(--text-primary);
  font-weight: 400;
}

.contacto-item-value a {
  color: var(--color-verde);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.contacto-item-value a:hover { color: var(--color-rojo); }

/* Redes sociales */
.social-title {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.social-links {
  display: flex;
  gap: var(--space-2);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0ece0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.social-link:hover { transform: scale(1.15); }
.social-link.facebook:hover { background: #1877f2; color: var(--color-blanco); }
.social-link.instagram:hover { background: #e1306c; color: var(--color-blanco); }
.social-link.tiktok:hover { background: var(--color-negro); color: var(--color-blanco); }

/* Mapa */
.contacto-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  border: 3px solid var(--color-dorado);
}

.contacto-map iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}

@media (max-width: 768px) {
  .contacto-map iframe { height: 280px; }
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  padding: var(--space-6) 0 var(--space-5);
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right,
    var(--color-verde) 33.3%,
    var(--color-blanco) 33.3% 66.6%,
    var(--color-rojo) 66.6%
  ) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }
  .footer-social { justify-content: center; }
}


.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-2);
}

.footer-brand-logo .navbar-brand-name {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}

.footer-logo {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-dorado);
  margin-bottom: var(--space-1);
}

.footer-brand-desc {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer-col-title {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dorado);
  margin-bottom: var(--space-3);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-dorado); }

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.60);
  transition: all var(--transition-base);
}

.footer-social-link:hover { background: var(--color-dorado); color: var(--color-negro); transform: scale(1.1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-copy {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-3);
}

.footer-legal-links a {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.40);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover { color: var(--color-dorado); }

/* ============================================================
   13. PÁGINAS INTERNAS (carta.html, aviso-legal.html)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-verde) 0%, var(--bg-verde-deep) 100%);
  padding: calc(var(--navbar-h) + var(--space-6)) 0 var(--space-6);
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--color-blanco);
  margin-bottom: var(--space-2);
}

.page-hero-sub {
  font-family: var(--font-accent);
  font-size: var(--text-tagline);
  color: var(--color-dorado);
}

.page-content {
  background: var(--bg-light);
  padding: var(--space-7) 0;
}

.prose {
  max-width: 800px;
  margin-inline: auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--border-light);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.prose ul li {
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
  line-height: 1.65;
}

.prose strong { color: var(--text-primary); font-weight: 700; }

.prose a { color: var(--color-verde); font-weight: 700; }
.prose a:hover { color: var(--color-rojo); }

/* ============================================================
   14. MISCELÁNEA
   ============================================================ */

/* Wave divisor */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* Divider decorativo */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  opacity: 0.5;
}

.divider-icon {
  color: var(--color-dorado);
  font-size: 1.125rem;
  padding: 0 var(--space-2);
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-dorado);
  outline-offset: 3px;
  border-radius: 3px;
}

.btn-whatsapp:focus-visible,
.btn-delivery:focus-visible {
  outline: 2px solid var(--color-negro);
  outline-offset: 3px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--color-dorado); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--btn-delivery-hover); }

/* Selección de texto */
::selection { background: rgba(212,160,23,0.25); color: var(--text-primary); }

/* ============================================================
   15. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-blanco);
  font-size: 1.375rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-blanco);
  font-size: 1.375rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

/* ============================================================
   MOBILE OVERRIDES — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {

  /* CAMBIO 1 — Nombre header más grande */
  .navbar-brand-name {
    font-size: 1.4rem;
  }

  /* CAMBIO 2 — Nombre footer centrado */
  .footer-brand-logo {
    justify-content: center;
  }

  /* CAMBIO 3 — Espacios entre secciones más compactos */
  .hero-content {
    padding-bottom: var(--space-3);
  }
  .pedidos {
    padding: var(--space-4) 0;
  }
  .carta {
    padding: var(--space-3) 0 var(--space-4);
  }
  .resenas {
    padding: var(--space-4) 0;
  }
  .contacto {
    padding: var(--space-4) 0;
  }
  .footer {
    padding: var(--space-3) 0 var(--space-2);
  }

  /* CAMBIO 4 — Menú tabs en cuadrícula 2 columnas */
  .carta-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
    overflow-x: visible;
    overflow-y: visible;
  }
  .carta-tabs::after {
    display: none;
  }
  /* Fila completa: Combos / Clásicas / Gourmet / Crea tu Pizza / Campero */
  .carta-tab:nth-child(1),
  .carta-tab:nth-child(4),
  .carta-tab:nth-child(5),
  .carta-tab:nth-child(6),
  .carta-tab:nth-child(7) {
    grid-column: span 2;
  }
  .carta-tab {
    width: 100%;
    text-align: center;
    padding: 13px var(--space-2);
    border-bottom: 2px solid var(--border-light);
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }
  .carta-tab.active {
    color: var(--color-rojo);
    border-bottom-color: var(--border-light);
    border-left-color: var(--color-rojo);
    background: rgba(220, 38, 38, 0.05);
  }
  .carta-tab:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}
