/* Variables de Diseño y Paleta de Colores */
:root {
    --primary-color: #E67E22;
    --price-color: #E67E22;
    --secondary-color: #333;
    --accent-color: #4CAF50;
    --whatsapp-color: #25D366;
    --light-bg: #f8f8f8;
    --dark-bg: #1a1a1a;
    --text-light: #eee;
    --text-dark: #333;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    
    --color-fondo-tarjeta: rgba(44, 44, 44, 0.25);
    --color-fondo-modal: rgba(44, 44, 44, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Reset Básico y Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg); /* Color de respaldo */
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1; 
  background-image: var(--fondo-pagina-url, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  transform: translateZ(0);
  will-change: transform;
}

html, body {
  height: 100%;
}


main {
    flex-grow: 1;
}

.external-link span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Header */
header {
    background-color: var(--secondary-color);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    box-shadow: var(--shadow-dark);
    z-index: 1000;
    position: sticky;
    top: 0;
}

.header-cart-btn { right: 15px; }
.header-logo {
    height: 60px;
    max-width: 50%;
    object-fit: contain;
}
.cart-badge {
    background-color: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
    display: none; /* Se activa con JS */
}
.cart-icon-img {
    height: 35px;
    width: auto;
}

/* --- NUEVO: Sección de Búsqueda --- */
.search-section {
    padding: 15px 20px 5px 20px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    background-color: var(--color-fondo-tarjeta);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-speed);
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.4);
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.clear-search-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* Se activa con JS */
}


/* Carrusel de Promociones */
.carousel-section {
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}
.carousel-container {
    display: flex;
    padding: 0 20px;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding: 0 20px;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item {
    flex: 0 0 90%;
    max-width: 90%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    scroll-snap-align: center;
}
.carousel-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-speed) ease;
}
.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Secciones de Menú */
.menu-section {
    padding: 20px 0;
    margin-bottom: 20px;
}
.section-title {
    font-size: 1.6rem; 
    color: var(--text-light);
    text-align: left; 
    margin: 0 0 20px 20px;
}
/* Categorías */
.categories {
    padding: 0 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.categories-container {
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 5px 0;
}
.category-btn {
    background: var(--color-fondo-tarjeta);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 10px 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(230, 126, 34, 0.4);
}
.category-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-bottom: 10px;
}
.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.indicator-dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary-color);
}


/* Cuadrícula de Platos */
.dishes-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 15px;
    scrollbar-width: none;
}
.dishes-grid::-webkit-scrollbar { display: none; }
.empty-category-message {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}
.dish-card {
    background: var(--color-fondo-tarjeta);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 160px; 
    flex-shrink: 0;
}

/* --- NUEVO: Contenedor y estilos para Tags --- */
.dish-img-container {
    width: 100%;
    height: 140px; /* Reducido para dar espacio */
    position: relative;
}
.dish-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: var(--border-radius-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.tag-vegano { background-color: #2ECC71; }
.tag-picante { background-color: #E74C3C; }
.tag-nuevo { background-color: #3498DB; }


.dish-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}
.dish-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dish-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
}
.dish-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    max-height: 2.24rem;
}
.dish-price {
    font-weight: bold;
    color: var(--price-color);
    font-size: 1.1rem;
    text-align: right;
    margin-top: auto;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    background: var(--color-fondo-modal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 450px;
    border-radius: var(--border-radius-md);
    margin: 30px auto;
    position: relative;
    animation: slideInFromTop 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInFromTop { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
}
.modal-body { padding: 25px; }
.modal-logo {
    height: 70px;
    margin-bottom: 20px;
}

/* Modal de Plato Individual */
#dishModal .modal-img {
    width: 100%;
    padding-top: 75%; /* Ajustado para pantallas de móvil */
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}
#dishModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
#dishModal .modal-name {
    font-size: 1.8rem;
    font-weight: bold;
}
#dishModal .modal-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--price-color);
}
#dishModal .modal-desc {
    line-height: 1.6;
    margin-bottom: 15px;
}
#allergensInfo {
    display: none; /* Se activa con JS */
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #FFC107;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
#allergensInfo i { margin-right: 8px; }

/* Controles de Pedido en Modal de Plato */
.order-controls {
    margin-top: 20px;
}
.order-controls .form-group {
    margin-bottom: 15px;
}
.order-controls .dish-notes-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--text-light);
}
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}
.qty-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}
.qty-display {
    font-size: 1.8rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}
.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%;
    cursor: pointer;
}
.add-to-cart-btn:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* --- REVISIÓN: Modal del Carrito con Checkout Integrado --- */
#cartModal .modal-content {
    max-width: 800px; /* Más ancho para el nuevo layout */
}
#cartModalTitle {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
}
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.cart-items-section {
    flex: 1;
}
.cart-items {
    max-height: 300px; /* Altura controlada */
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}
.cart-items::-webkit-scrollbar { width: 5px; }
.cart-items::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}
.empty-message {
    text-align: center;
    padding: 30px 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: bold; }
.cart-item-notes, .cart-item-addons {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 4px;
}
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
}
.cart-remove-btn {
    background: none;
    border: none;
    color: #FF6347;
    cursor: pointer;
    font-size: 1.2rem;
}
.cart-item-price {
    min-width: 60px;
    text-align: right;
    font-weight: bold;
    color: var(--price-color);
}
.cart-delivery-form {
    flex: 1;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}
.cart-summary {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin-top: 20px;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--price-color);
    margin-bottom: 20px;
}
.cart-actions {
    display: flex;
    gap: 15px;
}
.clear-cart-btn, .checkout-btn {
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
}
.clear-cart-btn { background-color: #E74C3C; flex: 1; }
.checkout-btn { background-color: var(--accent-color); flex: 2; }
.clear-cart-btn:disabled, .checkout-btn:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Formularios Generales */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--text-light);
}
.form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3);
    outline: none;
}
.form-input option {
    background-color: var(--dark-bg);
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.8);
    cursor: pointer;
}
.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius-md);
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Galería, Horarios y otros Modales */
.hours-modal-body, .gallery-modal-body { text-align: center; }
.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    background: rgba(0,0,0,0.2);
    scroll-snap-type: x mandatory;
}
.gallery-img {
    flex: 0 0 80%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    scroll-snap-align: center;
}
.gallery-description {
    line-height: 1.6;
    margin-top: 15px;
}
.hours-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pie de Página */
.site-footer {
    background: var(--color-fondo-modal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    padding: 15px;
    margin-top: auto;
    text-align: center;
}
.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.powered-by {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.gastroredes-link {
    color: #07eb85;
    font-weight: bold;
    text-decoration: none;
}

/* Notificación Toast */
.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: var(--border-radius-md);
    padding: 16px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: var(--shadow-dark);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Modos de Operación */
.modo-informativo .header-cart-btn,
.modo-informativo .order-controls,
.modo-informativo .cart-delivery-form,
.modo-informativo .cart-summary {
    display: none !important;
}


/* Media Queries para Responsividad */
@media (min-width: 768px) {
    .cart-container {
        flex-direction: row; /* Layout de 2 columnas en escritorio */
    }
    .cart-delivery-form {
        border-top: none;
        border-left: 1px solid var(--glass-border);
        padding-top: 0;
        padding-left: 30px;
    }
    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
    }
    .copyright-text { margin-bottom: 0; }
}

/* --- ESTILOS MEJORADOS PARA ADICIONES TIPO "PILL" --- */

#addonsContainer .form-label {
    margin-bottom: 15px; /* Más espacio para la etiqueta */
}

/* El contenedor de los botones (elimina la "caja") */
#addonsList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: none; /* <-- ESTO QUITA LA "CAJA" */
    padding: 0;
}

/* El botón individual (pill) */
.addon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: var(--border-radius-lg); /* <-- ESTO REDONDEA LAS ESQUINAS */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    font-family: inherit;
}

.addon-pill:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.addon-pill .addon-price {
    font-weight: bold;
    color: var(--price-color);
}

.addon-pill .check-icon {
    display: none; /* Oculto por defecto */
    font-size: 0.8rem;
}

/* Estado seleccionado del botón */
.addon-pill.selected {
    background-color: var(--primary-color); /* <-- ESTO "ILUMINA" EL BOTÓN EN NARANJA */
    border-color: var(--primary-color);
    color: white;
}

.addon-pill.selected .check-icon {
    display: inline-block; /* Muestra el ícono de check */
}

.addon-pill.selected .addon-price {
    color: white;
}

/* --- ESTILOS PARA PRECIOS CON DESCUENTO --- */

.dish-price.has-discount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.original-price {
    font-size: 0.9rem;
    color: #ededed;
    text-decoration: line-through var(--primary-color) 2px;
}

.promo-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color); /* Usamos el color de acento (verde) para resaltar */
}

/* --- ESTILOS PARA INTERRUPTOR DE NOTIFICACIONES (TOGGLE) --- */
.form-group-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}
.toggle-label {
    flex-basis: calc(100% - 70px); /* Ocupa todo el espacio menos el del interruptor */
}
.toggle-main-text {
    font-weight: bold;
    display: block;
}
.toggle-sub-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}
.toggle-reassurance {
    flex-basis: 100%;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-style: italic;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4d4d4d;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

/* --- ESTILOS PARA SECCIÓN DE CUPONES --- */
.coupon-section {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}
.coupon-section .form-input {
    flex-grow: 1;
    min-width: 150px
}
.apply-coupon-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}
.apply-coupon-btn.remove {
    background-color: #E74C3C; /* Rojo para el botón de remover */
}
#couponMessage {
    width: 100%; 
    font-size: 0.9rem;
    padding-top: 5px; 
    min-height: 20px;
    text-align: center;
}
#couponMessage.success {
    color: var(--accent-color);
}
#couponMessage.error {
    color: #FF6347; /* Tomato Red */
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--accent-color);
}

/* Estado restaurante */
.info-btn.open { background: #2ecc71; color:#111; }
.info-btn.closed { background: #e74c3c; color:#fff; }

/* ===== Acciones: Panel lateral compacto ===== */
.actions-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 900;
}
.actions-panel{
  position: fixed; top: 0; left: 0;
  width: 280px; max-width: 86vw; height: 100%;
  background: #171717; color: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.4);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 1000;
  display: flex; flex-direction: column;
}
.actions-panel__header{
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-weight: 600; letter-spacing: .3px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
}
.actions-panel__close{
  background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer;
}
.actions-panel__list{
  padding: 10px 8px; display: grid; gap: 6px;
}
.actions-panel__item{
  display: grid; grid-template-columns: 28px 1fr; align-items: center;
  gap: 10px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); color: #fff; text-align: left;
  border: 1px solid transparent; cursor: pointer;
}
.actions-panel__item i{ font-size: 18px; opacity: .9; }
.actions-panel__item:hover{ background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.08); }

/* Estado abierto */
.actions-open .actions-panel{ transform: translateX(0); }
.actions-open .actions-backdrop{ opacity: 1; pointer-events: auto; }

/* Botón de abrir acciones en cabecera */
.actions-toggle-btn{
  background: var(--color-primario, #ff6b35);
  color: #111; border: none; border-radius: 12px;
  padding: 10px 12px; margin-left: 8px;
  display: grid; place-items: center; font-size: 16px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.actions-toggle-btn i{ font-size: 16px; }

/* Layout del header: 3 columnas (izq = acciones, centro = logo, der = carrito) */
#mainHeader{
  display: grid;
  grid-template-columns: 48px 1fr 48px; /* botones fijos, logo centrado */
  align-items: center;
  height: 64px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 50; /* por debajo del panel (ver abajo) */
  background: var(--header-bg, #222); /* usa tu color actual */
}

/* Logo centrado de verdad */
#logoHeader{
  justify-self: center;
  height: 36px;            /* ajusta si hace falta */
  width: auto;
  display: block;
}

/* Botones “fantasma”: sin cuadrados ni fondos raros */
.actions-toggle-btn,
.header-cart-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  border-radius: 999px;     /* para hit-area redonda, pero sin fondo */
  padding: 0;
  cursor: pointer;
}

/* Iconografía: tamaño y color consistentes */
.actions-toggle-btn i,
.header-cart-btn i{
  font-size: 22px;
  line-height: 1;
  color: #fff;              /* o tu color de iconos en header */
}

/* Evitar cuadrados grises en el carrito */
.header-cart-btn{
  position: relative;
}

/* Badge del carrito (si lo usas) */
#cartBadge{
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 18px;
}

.actions-panel__header{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  color: #f0f0f0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.actions-panel__close{
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.actions-panel__list{
  padding: 12px 8px 24px;
}
.actions-panel__item{
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  color: #eaeaea;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
}
.actions-panel__item i{
  font-size: 20px;
  opacity: .9;
}
.actions-panel__item:hover{
  background: rgba(255,255,255,.04);
}

/* Oculta la X nativa del input type="search" (WebKit) */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* === CINTA DEMO / MENÚ (configurable) === */
body[data-demo="true"]::after{
  content: attr(data-demo-label);
  position: fixed;
  top: var(--ribbon-top, 40px);
  right: var(--ribbon-right, -60px);
  transform: rotate(var(--ribbon-rotate, 45deg));
  z-index: 1200;
  background: linear-gradient(90deg, #ff6b35, #ff8a5a);
  color: #111;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: var(--ribbon-font-size, 16px);
  line-height: 1;                 /* evita que “crezca” en alto */
  padding: var(--ribbon-pad-y, 10px) var(--ribbon-pad-x, 90px);
  white-space: nowrap;            /* no partir el texto */
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.35);
  pointer-events: none;           /* no tapa los botones del header */
}

/* Presets por plan (ajústalos si hace falta) */
body[data-demo="true"][data-plan="basic"]{
  --ribbon-font-size: 15px;
  --ribbon-pad-x: 110px;  /* más ancho porque “MENÚ BÁSICO” es más largo */
  --ribbon-pad-y: 10px;
  --ribbon-right: -78px;  /* empuja un poco más hacia afuera */
}
body[data-demo="true"][data-plan="pro"]{
  --ribbon-font-size: 16px;
  --ribbon-pad-x: 85px;
  --ribbon-pad-y: 8px;
  --ribbon-right: -60px;
}

/* Responsive (móviles muy angostos) */
@media (max-width: 360px){
  body[data-demo="true"]{
    --ribbon-font-size: 14px;
    --ribbon-pad-x: 95px;
    --ribbon-right: -70px;
  }
}


/* Footer CTAs */
.site-footer {
  display: flex; flex-direction: column; gap: 8px;
}
.powered-by { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.footer-cta-link { color: #fff; opacity: .9; text-decoration: none; }
.footer-cta-link:hover { text-decoration: underline; }
.footer-cta-btn {
  display: inline-block; padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(90deg,#ff6b35,#ff8a5a); color:#111; font-weight: 800;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.dot { opacity: .5; }
@media (min-width: 768px){
  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; }
}

