/* ============================================================
   SISTEMA DE PLANTILLAS VISUALES — TAQUERÍA TRADICIONAL LAS BRASAS
   Versiones:
     1. asador: Asador Artesanal de Vanguardia (Dark Charcoal, Warm Ember, Glass)
     2. editorial: Taquería Editorial de Época (Desde 1975, Terracota, Latón, Serif)
     3. app: App Gastronómica Ultra-Rápida (OLED Dark Mode, Delivery Focus)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Outfit:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   PLANTILLA 1: ASADOR ARTESANAL DE VANGUARDIA (Por Defecto)
   ============================================================ */
html[data-plantilla="asador"], :root {
  --bg-principal: #0B0807;
  --bg-elevado: #150F0C;
  --bg-tarjeta: rgba(22, 16, 13, 0.78);
  --bg-tarjeta-hover: rgba(30, 21, 17, 0.92);
  --borde-suave: rgba(255, 143, 0, 0.16);
  --borde-fuerte: rgba(255, 143, 0, 0.42);
  --fuego: #E64A19;
  --brasa: #BF360C;
  --oro: #FF8F00;
  --dorado-texto: #FFB300;
  --texto-ppal: #FBF4F0;
  --texto-mutado: #A8958E;
  --fuente-display: 'Outfit', sans-serif;
  --fuente-lectura: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radio-sm: 12px;
  --radio-md: 18px;
  --radio-lg: 28px;
  --radio-pill: 999px;
  --sombra-glow: 0 16px 40px rgba(230, 74, 25, 0.22);
  --blur-glass: blur(24px);
  --nav-backdrop: rgba(11, 8, 7, 0.92);
}

/* ============================================================
   PLANTILLA 2: TAQUERÍA EDITORIAL DE ÉPOCA (Desde 1975)
   ============================================================ */
html[data-plantilla="editorial"] {
  --bg-principal: #130E0B;
  --bg-elevado: #1C1510;
  --bg-tarjeta: #1E1612;
  --bg-tarjeta-hover: #261D17;
  --borde-suave: #8C6D3F;
  --borde-fuerte: #D4AF37;
  --fuego: #C85A32;
  --brasa: #8A2B14;
  --oro: #D4AF37;
  --dorado-texto: #E6C875;
  --texto-ppal: #F6EDE3;
  --texto-mutado: #B5A191;
  --fuente-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --fuente-lectura: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radio-sm: 6px;
  --radio-md: 10px;
  --radio-lg: 14px;
  --radio-pill: 6px;
  --sombra-glow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.15);
  --blur-glass: blur(12px);
  --nav-backdrop: rgba(19, 14, 11, 0.96);
}

html[data-plantilla="editorial"] body {
  background-image: radial-gradient(rgba(140, 109, 63, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

html[data-plantilla="editorial"] .logo-vintage-card,
html[data-plantilla="editorial"] .card-plato,
html[data-plantilla="editorial"] .caja-tabla-horario,
html[data-plantilla="editorial"] .tarjeta-canal {
  border: 1px solid var(--borde-suave) !important;
  outline: 1px solid rgba(212, 175, 55, 0.25) !important;
  outline-offset: -5px !important;
  border-radius: var(--radio-md) !important;
}

html[data-plantilla="editorial"] .hero-titulo-marca {
  font-family: var(--fuente-display) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html[data-plantilla="editorial"] .tag,
html[data-plantilla="editorial"] .pill-marca {
  font-family: var(--fuente-display) !important;
  letter-spacing: 0.16em !important;
}

/* ============================================================
   PLANTILLA 3: APP GASTRONÓMICA ULTRA-RÁPIDA (OLED Delivery)
   ============================================================ */
html[data-plantilla="app"] {
  --bg-principal: #000000;
  --bg-elevado: #0D0D0D;
  --bg-tarjeta: #121212;
  --bg-tarjeta-hover: #181818;
  --borde-suave: #222222;
  --borde-fuerte: #333333;
  --fuego: #FF3D00;
  --brasa: #DD2C00;
  --oro: #FF9100;
  --dorado-texto: #FFAB00;
  --texto-ppal: #FFFFFF;
  --texto-mutado: #9E9E9E;
  --fuente-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fuente-lectura: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radio-sm: 8px;
  --radio-md: 14px;
  --radio-lg: 18px;
  --radio-pill: 999px;
  --sombra-glow: 0 8px 24px rgba(255, 61, 0, 0.25);
  --blur-glass: blur(16px);
  --nav-backdrop: rgba(0, 0, 0, 0.95);
}

html[data-plantilla="app"] .hero-seccion {
  padding-top: 24px !important;
  padding-bottom: 32px !important;
}

html[data-plantilla="app"] .logo-vintage-card {
  padding: 14px !important;
  background: #0D0D0D !important;
  border: 1px solid #282828 !important;
}

html[data-plantilla="app"] .card-plato {
  border: 1px solid #242424 !important;
  background: #111111 !important;
}

html[data-plantilla="app"] .btn-contacto-hero,
html[data-plantilla="app"] .btn-touch-movil {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

/* ============================================================
   WIDGET FLOTANTE INTERACTIVO: SELECTOR DE PLANTILLAS
   ============================================================ */
.widget-selector-plantilla {
  position: fixed;
  bottom: 84px;
  left: 16px;
  z-index: 999;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

@media (min-width: 901px) {
  .widget-selector-plantilla {
    bottom: 24px;
    left: 24px;
  }
}

.selector-plantilla-pill {
  background: rgba(18, 13, 10, 0.92);
  border: 1px solid rgba(255, 143, 0, 0.35);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  user-select: none;
}

.selector-plantilla-pill:hover {
  background: #241611;
  border-color: #FF8F00;
  transform: translateY(-2px);
}

.selector-plantilla-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 290px;
  background: #16100D;
  border: 1px solid rgba(255, 143, 0, 0.3);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.selector-plantilla-menu.abierto {
  display: flex;
  animation: fadeInDown 0.2s ease;
}

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

.selector-plantilla-menu h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FF8F00;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  margin: 0;
}

.item-opcion-plantilla {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.item-opcion-plantilla:hover {
  background: rgba(255, 143, 0, 0.12);
  border-color: rgba(255, 143, 0, 0.4);
}

.item-opcion-plantilla.activo {
  background: rgba(255, 143, 0, 0.18);
  border-color: #FF8F00;
}

.item-opcion-plantilla .icono {
  font-size: 1.3rem;
  line-height: 1;
}

.item-opcion-plantilla .detalles strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.item-opcion-plantilla .detalles span {
  font-size: 0.72rem;
  color: #A8958E;
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}
