/* =========================================
   VARIABLES & TEMAS
   ========================================= */
:root {
  --bg-primary: #1a0a00;
  --bg-secondary: #230d00;
  --bg-card: #2a1100;
  --text-primary: #f5e6c8;
  --text-secondary: #a08060;
  --border-color: #c8a84b33;
  --border-hover: #c8a84b88;
  --shadow-color: rgba(0,0,0,0.4);
  --input-bg: #1a0a00;
  --hero-overlay: rgba(0,0,0,0.6);
  --primary: #d35400;
  --primary-hover: #e06010;
  --secondary: #c8a84b;
  --secondary-hover: #e8c96a;
  --success: #27ae60;
  --promo: #9b59b6;
  --green-wa: #25D366;
}

body.light-mode {
  --bg-primary: #fff8f0;
  --bg-secondary: #fdf0e0;
  --bg-card: #ffffff;
  --text-primary: #2a1200;
  --text-secondary: #7a5530;
  --border-color: #c8a84b44;
  --border-hover: #c8a84b99;
  --shadow-color: rgba(0,0,0,0.1);
  --input-bg: #ffffff;
  --hero-overlay: rgba(0,0,0,0.55);
}

/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.3; color: var(--text-primary); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   NAVEGACIÓN
   ========================================= */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; background: var(--bg-primary);
  position: fixed; width: 100%; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}
.logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-weight: 500; padding: 0.4rem 1rem; border-radius: 20px;
  transition: all 0.3s; color: var(--text-secondary);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); background: rgba(211,84,0,0.12); }

/* TOGGLE TEMA */
.theme-toggle {
  background: transparent; border: 1.5px solid var(--border-color);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease; color: var(--text-secondary);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-secondary); border-color: var(--secondary); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.icon-sun { display: block; }
.icon-moon { display: none; }
body.light-mode .icon-sun { display: none; }
body.light-mode .icon-moon { display: block; }

/* =========================================
   HERO
   ========================================= */
.hero {
  height: 100vh;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
              url('img/IMG_1365.png') center/cover no-repeat fixed;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; text-shadow: 0 2px 6px rgba(0,0,0,0.6); color: #fff; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 0.85rem 2rem; border-radius: 30px;
  font-weight: 600; transition: transform 0.3s, box-shadow 0.3s;
  font-family: inherit; border: none; cursor: pointer; font-size: .95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { transform: translateY(-3px); }

/* =========================================
   SECCIONES & TEXTOS
   ========================================= */
.section { padding: 4rem 5%; background: var(--bg-secondary); transition: background 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 1rem; color: var(--text-primary); }
.section-subtitle { text-align: center; max-width: 750px; margin: 0 auto 2.5rem; color: var(--text-secondary); font-size: 1rem; }

/* =========================================
   NUESTRA ESENCIA (HORIZONTAL)
   ========================================= */
.highlights-grid-horizontal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.highlight-card {
  background: var(--bg-card); border-radius: 12px; padding: 1.2rem;
  text-align: center; border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color); transition: transform 0.3s, background 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
}
.highlight-card:hover { transform: translateY(-4px); }
.highlight-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 0.8rem; background: var(--primary); }
.promo-badge { background: var(--promo); }
.highlight-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 0.8rem; }
.highlight-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--text-primary); }
.highlight-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.8rem; }
.price { font-size: 1.5rem; color: var(--primary); font-weight: 700; margin-bottom: 0.8rem; font-family: 'Playfair Display', serif; }
.promo-validity { background: rgba(155,89,182,0.15); color: var(--promo); padding: 0.4rem; border-radius: 6px; font-size: 0.8rem; margin-bottom: 0.8rem; }
.btn-small { display: inline-block; padding: 0.5rem 1.2rem; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-small:hover { background: var(--primary-hover); transform: scale(1.05); }
.btn-promo { background: var(--promo); }

/* =========================================
   VISÍTANOS
   ========================================= */
.location-section-clean { background: var(--bg-secondary); padding: 4rem 5%; }
.location-wrapper { display: flex; gap: 2rem; align-items: stretch; flex-wrap: wrap; }
.location-info-clean { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.info-card { background: var(--bg-card); padding: 0.9rem 1.1rem; border-radius: 10px; box-shadow: 0 2px 6px var(--shadow-color); border-left: 3px solid var(--primary); }
.info-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--text-primary); }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.btn-whatsapp-clean { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.6rem 1rem; background: transparent; color: var(--green-wa); border: 1.5px solid var(--green-wa); border-radius: 8px; font-weight: 500; font-size: 0.9rem; margin-top: 0.4rem; width: fit-content; transition: all 0.3s; }
.btn-whatsapp-clean:hover { background: var(--green-wa); color: #fff; }
.map-compact { flex: 1; min-width: 280px; height: 260px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px var(--shadow-color); }
.map-compact iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================
   MENÚ PAGE — Header
   ========================================= */
.menu-header {
  padding: 7rem 5% 2.5rem;
  background: linear-gradient(135deg, #1a0900, #3d1800);
  color: #fff; text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.menu-header h1 { font-size: 2.2rem; margin-bottom: 0.4rem; color: var(--secondary); }
.menu-header p { color: var(--text-secondary); }

/* =========================================
   FILTROS DE CATEGORÍA
   ========================================= */
.category-filters {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 1rem 5%; background: var(--bg-primary);
  flex-wrap: wrap; position: sticky; top: 60px;
  z-index: 100; border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}
.filter-btn {
  padding: 0.5rem 1.1rem; border: 1.5px solid var(--border-color);
  background: transparent; color: var(--text-secondary);
  border-radius: 25px; cursor: pointer; font-weight: 500;
  font-size: 0.82rem; font-family: inherit; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================
   GRID DE TARJETAS DE MENÚ
   ========================================= */
.menu-grid-section {
  padding: 2rem 5% 4rem;
  background: var(--bg-secondary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.submenu-heading {
  grid-column: 1 / -1;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--secondary);
  margin: 1.8rem 0 .3rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border-color);
}

/* ─── TARJETA ──────────────────────────────── */
.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-color);
  border-color: var(--border-hover);
}

.card-img-wrap {
  position: relative; height: 175px;
  overflow: hidden; background: var(--bg-primary);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; cursor: zoom-in;
}
.menu-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-badge {
  position: absolute; top: 9px; left: 9px;
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.card-body {
  padding: .9rem 1rem 1rem;
  display: flex; flex-direction: column; flex: 1; gap: .4rem;
}
.card-nombre { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-primary); margin: 0; line-height: 1.3; }
.card-personas { font-size: .75rem; color: var(--primary); font-weight: 600; }
.card-desc { color: var(--text-secondary); font-size: .8rem; line-height: 1.5; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: auto; padding-top: .7rem;
  border-top: 1px solid var(--border-color);
}
.card-precio { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.card-actions { display: flex; gap: .4rem; }

.btn-detail {
  background: transparent; border: 1.5px solid var(--border-hover);
  color: var(--text-secondary); padding: 5px 11px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.btn-detail:hover { border-color: var(--primary); color: var(--primary); background: rgba(211,84,0,.08); }

.btn-add {
  background: var(--primary); border: none; color: #fff;
  padding: 5px 13px; border-radius: 20px; font-size: .75rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  font-family: inherit; transition: background .2s, transform .15s; white-space: nowrap;
}
.btn-add:hover { background: var(--primary-hover); transform: scale(1.04); }

/* =========================================
   MODAL DETALLE
   ========================================= */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(5px);
}
.modal.active { display: flex; }

.modal-content {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; max-width: 520px; width: 100%; overflow: hidden;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: modalIn .26s ease;
}
@keyframes modalIn {
  from { transform: translateY(28px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.close-modal {
  position: absolute; top: 10px; right: 14px; font-size: 1.5rem;
  color: var(--text-secondary); cursor: pointer; z-index: 1;
  background: none; border: none; line-height: 1; transition: color .2s;
}
.close-modal:hover { color: var(--primary); }

.modal-img-wrap { position: relative; height: 210px; overflow: hidden; background: var(--bg-primary); }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.modal-badge {
  position: absolute; top: 12px; left: 12px; background: var(--primary);
  color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px;
}
.modal-info { padding: 1.3rem 1.5rem 1.5rem; }
.modal-info h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--text-primary); margin: 0 0 .3rem; }
.modal-personas { color: var(--primary); font-size: .82rem; font-weight: 600; margin: 0 0 .5rem; }
.modal-desc { color: var(--text-secondary); font-size: .87rem; line-height: 1.6; margin: 0 0 1rem; }
.modal-precio { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }

.btn-add-modal {
  width: 100%; background: var(--primary); border: none; color: #fff;
  padding: 12px 20px; border-radius: 8px; font-size: .98rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .2s, transform .15s;
}
.btn-add-modal:hover { background: var(--primary-hover); transform: scale(1.02); }

/* =========================================
   FAB CARRITO
   ========================================= */
.fab-cart {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--primary); color: #fff; padding: 11px 20px;
  border-radius: 50px; font-weight: 700; font-size: .95rem;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(211,84,0,.5); z-index: 999;
  transition: transform .2s, background .2s;
}
.fab-cart:hover { background: var(--primary-hover); transform: scale(1.05); }
#cart-count {
  background: #fff; color: var(--primary); border-radius: 50%;
  min-width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 800;
}

/* =========================================
   TOAST
   ========================================= */
#mp-toast {
  position: fixed; bottom: 85px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--primary); color: #fff; padding: 9px 22px;
  border-radius: 50px; font-weight: 600; font-size: .87rem;
  opacity: 0; transition: all .3s; z-index: 9999;
  pointer-events: none; white-space: nowrap;
}

/* =========================================
   CHECKOUT / PEDIDOS
   ========================================= */
.pedido-hero {
  padding: 7rem 5% 2rem;
  background: linear-gradient(135deg, #1a0900, #3d1800);
  color: #fff; text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.pedido-hero h1 { font-size: clamp(1.6rem,4vw,2.4rem); color: var(--secondary); margin: 0 0 .4rem; }
.pedido-hero p { color: var(--text-secondary); margin: 0; font-size: .95rem; }

.tipo-selector {
  display: flex; gap: .8rem; justify-content: center;
  padding: 1.5rem 1rem 0; flex-wrap: wrap;
}
.tipo-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: var(--bg-card); border: 2px solid var(--border-color);
  border-radius: 12px; padding: 1rem 1.8rem; cursor: pointer;
  transition: all .25s; color: var(--text-secondary); font-family: inherit; min-width: 130px;
}
.tipo-btn .icon { font-size: 1.8rem; }
.tipo-btn .label { font-weight: 700; font-size: .95rem; color: var(--text-primary); }
.tipo-btn small { font-size: .72rem; }
.tipo-btn.active { border-color: var(--primary); background: rgba(211,84,0,.1); }
.tipo-btn.active .label { color: var(--primary); }

.pedido-layout {
  max-width: 960px; margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; align-items: start;
}

.panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.panel-head {
  background: rgba(200,168,75,.06); border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between;
}
.panel-head h2 { font-family:'Playfair Display',serif; color: var(--secondary); font-size: 1.1rem; margin: 0; }
.panel-body { padding: 1rem 1.2rem; }

#cart-items { display: flex; flex-direction: column; gap: .6rem; }
.cart-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: .6rem; padding: .6rem .5rem;
  border-bottom: 1px solid var(--border-color); font-size: .88rem;
}
.cart-row:last-child { border-bottom: none; }
.cart-row-name { color: var(--text-primary); font-weight: 600; font-size: .85rem; }
.qty-ctrl {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(200,168,75,.08); border-radius: 8px; padding: 2px 6px;
}
.qty-ctrl button {
  background: none; border: none; color: var(--secondary);
  font-size: 1.1rem; cursor: pointer; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background .15s; font-weight: 700;
}
.qty-ctrl button:hover { background: rgba(200,168,75,.2); }
.qty-ctrl span { color: var(--text-primary); font-weight: 700; min-width: 18px; text-align: center; }
.cart-row-price { color: var(--secondary); font-weight: 700; white-space: nowrap; font-size: .88rem; }
.cart-row-del { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: .9rem; padding: 4px; border-radius: 4px; transition: color .15s; }
.cart-row-del:hover { color: var(--primary); }

.cart-summary { border-top: 1px solid var(--border-color); margin-top: .5rem; padding-top: .8rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-secondary); padding: .25rem 0; }
.summary-row.total { font-family: 'Playfair Display',serif; font-size: 1.3rem; color: var(--secondary); padding-top: .5rem; border-top: 1px solid var(--border-color); margin-top: .3rem; font-weight: 700; }

.cart-empty { text-align: center; padding: 2rem 1rem; color: var(--text-secondary); }
.cart-empty .icon { font-size: 2.5rem; margin-bottom: .5rem; }
.cart-empty p { font-size: .9rem; margin: 0 0 1rem; }
.btn-ir-menu { display: inline-block; background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .88rem; transition: background .2s; }
.btn-ir-menu:hover { background: var(--primary-hover); }

.btn-limpiar-mini { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: .72rem; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-limpiar-mini:hover { border-color: var(--primary); color: var(--primary); }

.tiempo-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(211,84,0,.12); border: 1px solid rgba(211,84,0,.3); color: var(--primary); border-radius: 50px; padding: 5px 14px; font-size: .78rem; font-weight: 600; }

/* Formulario pedidos */
.form-section { display: flex; flex-direction: column; gap: 1rem; }
.form-section h3 { font-family: 'Playfair Display',serif; color: var(--secondary); font-size: 1rem; margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--border-color); }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.form-group label span.req { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

input, textarea, select {
  background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-primary); font-family: inherit;
  font-size: .88rem; padding: 10px 13px; width: 100%; box-sizing: border-box;
  transition: border-color .2s; outline: none; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
input::placeholder, textarea::placeholder { color: var(--text-secondary); }
select option { background: var(--bg-card); color: var(--text-primary); }
textarea { resize: vertical; min-height: 70px; }

.field-error { font-size: .73rem; color: var(--primary); display: none; }
.field-error.visible { display: block; }
input.invalid, textarea.invalid { border-color: var(--primary); }

.form-bloque { display: none; }
.form-bloque.visible { display: contents; }

.divider { border: none; border-top: 1px solid var(--border-color); margin: .2rem 0; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-wa); color: #fff; border: none; border-radius: 12px;
  padding: 14px 20px; font-size: 1rem; font-weight: 700; cursor: pointer;
  width: 100%; transition: background .2s, transform .15s; font-family: inherit;
}
.btn-wa:hover { background: #1ebe5d; transform: scale(1.02); }
.btn-seguir { display: block; text-align: center; color: var(--text-secondary); font-size: .82rem; text-decoration: none; margin-top: .5rem; transition: color .2s; }
.btn-seguir:hover { color: var(--primary); }

/* =========================================
   ADMIN PANEL
   ========================================= */
.checkout-header { padding: 7rem 5% 2rem; background: linear-gradient(135deg, #1a0900, #3d1800); color: #fff; text-align: center; }

/* =========================================
   CONFIRMACIÓN
   ========================================= */
.confirm-box { max-width: 500px; margin: 6rem auto 2rem; padding: 2rem; text-align: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 4px 20px var(--shadow-color); }
.order-id { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 1rem 0; font-family: monospace; }
.next-steps { text-align: left; margin: 1.5rem 0; background: var(--bg-secondary); padding: 1rem; border-radius: 8px; }
.next-steps li { margin: 0.5rem 0; color: var(--text-secondary); font-size: .9rem; }

/* =========================================
   FOOTER
   ========================================= */
footer { background: var(--bg-card); color: var(--text-secondary); padding: 2.5rem 5%; text-align: center; border-top: 1px solid var(--border-color); }
.footer-logo { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.social-links { margin-bottom: 1rem; }
.social-links a { color: var(--text-secondary); margin: 0 0.8rem; transition: color 0.3s; }
.social-links a:hover { color: var(--primary); }

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox-overlay {
  display: none; position: fixed; z-index: 3000; inset: 0;
  background: rgba(0,0,0,.85); backdrop-filter: blur(16px) saturate(1.4);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; animation: lightboxIn 0.35s ease; }
@keyframes lightboxIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: contain; }
.lightbox-caption { text-align: center; color: #fff; margin-top: 1rem; font-size: 1rem; }
.lightbox-close { position: absolute; top: -40px; right: 0; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* =========================================
   SCROLL REVEAL
   ========================================= */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; will-change: opacity, transform; }
.scroll-reveal.active,
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* =========================================
   ESTADO VACÍO
   ========================================= */
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); padding: 3rem; font-size: 1rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .highlights-grid-horizontal { grid-template-columns: 1fr; }
  .location-wrapper { flex-direction: column; }
  .map-compact { height: 220px; }
  .hero-content h1 { font-size: 2rem; }
  .pedido-layout { grid-template-columns: 1fr; }
  .tipo-selector { flex-direction: row; }
  .tipo-btn { flex: 1; padding: .8rem 1rem; min-width: 100px; }
  .form-row { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .card-img-wrap { height: 195px; }
}

/* =========================================
   PANEL DUEÑO — oculto, protegido por PIN
   ========================================= */
.owner-trigger {
  position: fixed; bottom: 10px; left: 10px; width: 26px; height: 26px;
  z-index: 50; cursor: default; opacity: 0; /* invisible pero clickeable */
}

.owner-overlay {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.owner-overlay.active { display: flex; }

.pin-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 2rem 1.8rem; width: 100%; max-width: 320px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); position: relative;
  animation: lightboxIn 0.25s ease;
}
.pin-box h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pin-box p { color: var(--text-secondary); font-size: .82rem; margin-bottom: 1.2rem; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 1.4rem; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-hover); transition: all .15s; }
.pin-dot.filled { background: var(--primary); border-color: var(--primary); }
.pin-dot.error { border-color: #e74c3c; background: #e74c3c; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-key {
  padding: .9rem 0; border-radius: 10px; border: 1px solid var(--border-color);
  background: var(--bg-secondary); color: var(--text-primary); font-size: 1.1rem;
  font-family: inherit; cursor: pointer; transition: all .15s;
}
.pin-key:hover { border-color: var(--primary); color: var(--primary); }
.pin-key.wide { grid-column: span 1; font-size: .85rem; color: var(--text-secondary); }
.pin-close-x {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--text-secondary); font-size: 1.3rem; cursor: pointer;
}

.owner-panel {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; width: 100%; max-width: 720px; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lightboxIn 0.25s ease;
}
.owner-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.owner-panel-head h2 { font-size: 1.15rem; margin: 0; }
.owner-panel-body { padding: 1.5rem; }
.owner-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.owner-stat-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 1rem; text-align: center;
}
.owner-stat-card .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.owner-stat-card .lbl { font-size: .72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin-top: .2rem; }
.owner-section-title { font-size: .95rem; font-weight: 600; margin: 1.4rem 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.owner-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.owner-table th { text-align: left; color: var(--text-secondary); font-weight: 600; padding: .5rem .4rem; border-bottom: 1px solid var(--border-color); font-size: .72rem; text-transform: uppercase; }
.owner-table td { padding: .55rem .4rem; border-bottom: 1px solid var(--border-color); }
.owner-table tr:last-child td { border-bottom: none; }
.owner-tag { display: inline-block; padding: .15rem .5rem; border-radius: 8px; font-size: .68rem; font-weight: 600; }
.owner-tag.domicilio { background: rgba(211,84,0,.15); color: var(--primary); }
.owner-tag.recoger { background: rgba(39,174,96,.15); color: var(--success); }
.owner-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.owner-actions button {
  flex: 1; min-width: 150px; padding: .8rem 1rem; border-radius: 10px; border: none;
  font-family: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s;
}
.btn-owner-pdf { background: var(--primary); color: #fff; }
.btn-owner-pdf:hover { background: var(--primary-hover); }
.btn-owner-logout { background: transparent; border: 1px solid var(--border-color) !important; color: var(--text-secondary); }
.btn-owner-clear { background: transparent; border: 1px solid #e74c3c !important; color: #e74c3c; }
.owner-empty { text-align: center; color: var(--text-secondary); padding: 2rem 0; font-size: .85rem; }
.owner-note { background: rgba(200,168,75,.1); border: 1px solid var(--border-color); border-radius: 10px; padding: .8rem 1rem; font-size: .75rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.5; }
