:root {
    /* Paleta MD DOGS */
    --md-yellow: #ffc000;
    --md-red: #e3000f;
    --md-blue: #004b87;

    /* Tema Claro */
    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --text-dark: #000000;
    --brand-color: var(--md-red);
    --brand-hover: #b3000a;
    --brand-glow: rgba(227, 0, 15, 0.3);
    --border-dark: #e0e0e0;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);

    /* Variables de transición */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4, .cat-btn, .btn-whatsapp, .radio-custom {
    font-family: "Bungee", cursive;
    letter-spacing: 1px;
}

/* Contenedor del logo */
.logo { display: flex; align-items: center; }
.logo-img { max-height: 45px; width: auto; object-fit: contain; transition: all var(--transition-smooth); }
.logo-img:hover { transform: scale(1.05); }
@media (min-width: 768px) { .logo-img { max-height: 65px; } }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-top: 90px;
    padding-bottom: 120px;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-neon { color: var(--brand-color); }
.text-center { text-align: center; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--md-yellow);
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo-group { display: flex; align-items: center; gap: 20px; }

.status {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
}
.dot-pulse {
    width: 8px; height: 8px; background: var(--success); border-radius: 50%;
    box-shadow: 0 0 8px var(--success); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

.btn-header {
    background: green;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast);
}
.btn-header:hover { background: rgb(0, 66, 0); }

/* --- MARQUEE --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--md-yellow);
    color: var(--md-blue);
    padding: 8px 0;
    position: absolute;
    top: 75px;
    left: 0;
    border-bottom: 2px solid var(--md-red);
}
.marquee-track {
    display: flex; white-space: nowrap; animation: scrollMarquee 25s linear infinite;
    font-family: "Bungee", cursive; font-size: 1rem; letter-spacing: 2px;
}
.marquee-track span { padding-right: 20px; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- HERO & PROMO DEL DIA --- */
.hero { padding: 80px 0 40px; margin-top: 30px; display: flex; justify-content: center; }
.promo-card {
    background: white; border: 5px solid var(--md-blue); border-radius: 20px;
    padding: 40px; max-width: 600px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative; width: 100%;
}
.promo-badge {
    background: var(--md-red); color: white; font-family: "Bungee", cursive;
    padding: 10px 20px; border-radius: 50px; position: absolute; top: -20px; left: 50%;
    transform: translateX(-50%); font-size: 1.2rem;
}
#promo-titulo { font-size: 2rem; color: var(--md-blue); margin-top: 10px; margin-bottom: 5px; }
.price-tag { font-size: 3rem; font-family: "Bungee", cursive; color: var(--md-red); text-shadow: 2px 2px 0px var(--md-yellow); margin-bottom: 20px; }

/* Imagen de la promo del día */
.promo-img-container {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 20px;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
}
.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.promo-card:hover .promo-img { transform: scale(1.05); }

.delivery-notes {
    background: var(--bg-main); padding: 15px; border-radius: 10px; text-align: left;
    font-size: 0.85rem; border-left: 4px solid var(--md-yellow); margin-bottom: 20px;
    color: var(--text-muted); font-weight: 600;
}
.delivery-notes ul { list-style: none; margin-top: 10px; }
.delivery-notes li { margin-bottom: 5px; }

/* --- SEARCH & CATEGORÍAS --- */
.search-container { margin-bottom: 30px; }
.search-box { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.search-box i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.3rem; }
.search-input {
    width: 100%; padding: 16px 20px 16px 55px; border-radius: 30px; border: 2px solid var(--border-dark);
    font-size: 1rem; color: var(--text-main); outline: none; background: var(--bg-card); transition: all var(--transition-fast);
}
.search-input:focus { border-color: var(--md-blue); box-shadow: 0 0 15px rgba(0, 75, 135, 0.2); }

.categories { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.cat-btn {
    padding: 10px 24px; border: 2px solid var(--border-dark); background: white; border-radius: 30px;
    font-size: 1.1rem; cursor: pointer; transition: all var(--transition-fast); color: var(--text-muted);
}
.cat-btn.active, .cat-btn:hover { background: var(--md-blue); color: white; border-color: var(--md-blue); }

/* --- CATÁLOGO --- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
    background: var(--bg-card); border-radius: 20px; padding: 20px; border: 1px solid var(--border-dark);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--md-yellow); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }

.img-container {
    width: 100%; aspect-ratio: 5 / 4; background: var(--bg-main); border-radius: 12px;
    margin-bottom: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px;
}
.producto-imagen-real { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform var(--transition-smooth); background-color: transparent; }
.product-card:hover .producto-imagen-real { transform: scale(1.05); }

.img-placeholder { font-size: 5rem; transition: transform var(--transition-smooth); filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1)); }
.product-card:hover .img-placeholder { transform: scale(1.1) rotate(5deg); }

.product-info { display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--md-blue); font-family: "Bungee", cursive; }
.product-info .desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex: 1; font-weight: 600; }

.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; }
.price-col { display: flex; flex-direction: column; }
.precio { font-size: 1.8rem; font-family: "Bungee", cursive; color: var(--brand-color); }
.precio-bs { font-size: 0.95rem; color: var(--text-muted); font-weight: 700; }

.btn-comprar {
    width: 100%; padding: 14px; background: white; color: var(--md-red); border: 2px solid var(--md-red);
    border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; display: flex; justify-content: center;
    align-items: center; gap: 8px; transition: all var(--transition-fast);
}
.btn-comprar:hover { background: var(--md-red); color: white; }
.btn-promo-add { background: var(--md-red); color: white; font-size: 1.2rem; font-family: "Bungee", cursive; }
.btn-promo-add:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.qty-control {
    display: flex; align-items: stretch; justify-content: space-between; width: 100%;
    background: white; border: 2px solid var(--md-red); border-radius: 12px; overflow: hidden;
}
.qty-btn { background: var(--md-red); color: white; border: none; padding: 0 20px; font-size: 1.2rem; cursor: pointer; transition: background var(--transition-fast); }
.qty-btn:hover { background: var(--brand-hover); }
.qty-text { font-weight: 700; font-size: 1.2rem; color: var(--md-red); font-family: "Bungee", cursive; display: flex; align-items: center; justify-content: center; padding: 12px 0; flex: 1; }

/* --- BARRA FLOTANTE --- */
.barra-flotante {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px;
    background: var(--md-blue); border: 2px solid var(--md-yellow); color: white; padding: 15px 24px;
    border-radius: 40px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 75, 135, 0.4); transition: bottom var(--transition-smooth), opacity var(--transition-fast); z-index: 90;
}
.barra-flotante:hover { background: #00335c; }
.barra-flotante.oculto { opacity: 0; pointer-events: none; bottom: -80px; }
.carrito-info { display: flex; align-items: center; gap: 15px; font-weight: 800; font-family: "Montserrat", sans-serif; }
.badge { position: absolute; top: -8px; right: -10px; background: var(--md-red); color: white; font-size: 0.75rem; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.monto-en-vivo { font-family: "Bungee", cursive; font-size: 1.8rem; color: var(--md-yellow); }

/* --- MODALES --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity var(--transition-fast);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.glass-panel {
    background: white; border: 4px solid var(--md-blue); width: 90%; max-width: 450px; padding: 30px;
    border-radius: 24px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); position: relative;
    transform: translateY(30px); transition: transform var(--transition-smooth); max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .glass-panel { transform: translateY(0); }
.close-modal {
    position: absolute; top: 20px; right: 20px; background: var(--bg-main); border: none; font-size: 1.5rem;
    color: var(--md-red); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: all var(--transition-fast);
}
.close-modal:hover { background: var(--md-red); color: white; }
.modal-titulo { font-size: 2.5rem; margin-bottom: 20px; color: var(--md-blue); text-align: center; }

.input-dark, #notas-pedido, .select-dark {
    width: 100%; padding: 15px; border-radius: 12px; border: 2px solid var(--border-dark); font-size: 0.95rem;
    color: var(--text-main); background: var(--bg-main); outline: none; transition: border-color var(--transition-fast);
    margin-bottom: 10px; font-weight: 600;
}
.input-dark:focus, #notas-pedido:focus, .select-dark:focus { border-color: var(--md-blue); }

.radio-custom {
    padding: 12px; border: 2px solid var(--border-dark); border-radius: 12px; font-size: 1.2rem; cursor: pointer;
    transition: all var(--transition-fast); color: var(--text-muted); background: var(--bg-main); display: flex;
    justify-content: center; align-items: center; gap: 5px; font-family: "Bungee", cursive;
}
.radio-label input { display: none; }
.radio-label input:checked + .radio-custom { background: var(--md-blue); color: white; border-color: var(--md-blue); box-shadow: 0 4px 10px rgba(0, 75, 135, 0.2); }

.pago-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.pago-grid .radio-custom { flex-direction: column; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 0.9rem; padding: 15px 10px; }
.pago-grid .radio-custom i { font-size: 1.8rem; margin-bottom: 5px; }

.btn-whatsapp {
    width: 100%; background: var(--success); color: white; border: none; padding: 16px; border-radius: 15px;
    font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all var(--transition-fast);
}
.btn-whatsapp:hover { background: #0e9f6e; }

.ticket-fiscal { background: #fff; color: #000; padding: 25px 20px; font-family: monospace; border: 1px solid #ccc; margin-bottom: 20px; }
.ticket-header h3 { font-family: "Bungee", cursive; font-size: 2.2rem; color: #000; }

.gps-input-group { display: flex; gap: 8px; margin-bottom: 5px; }
.gps-input-group .input-dark { margin-bottom: 0; flex: 1; }
.btn-gps {
    background: rgba(0, 75, 135, 0.1); border: 2px solid var(--md-blue); color: var(--md-blue); border-radius: 12px;
    padding: 0 15px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: 800; transition: all var(--transition-fast);
}
.btn-gps:hover { background: var(--md-blue); color: white; }
.gps-status { display: block; font-size: 0.8rem; margin-bottom: 10px; font-weight: 600; }
.text-success-gps { color: var(--success); }
.text-error-gps { color: var(--md-red); }
.ph-spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.radios-grupo { display: flex; gap: 10px; margin-bottom: 15px; }
.radio-label { flex: 1; }

.lista-carrito { max-height: 250px; overflow-y: auto; padding-right: 5px; margin-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--md-yellow) transparent; }
.lista-carrito::-webkit-scrollbar { width: 6px; }
.lista-carrito::-webkit-scrollbar-thumb { background: var(--md-yellow); border-radius: 10px; }

.item-carrito {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; margin-bottom: 10px;
    background: var(--bg-main); border: 2px solid var(--border-dark); border-radius: 12px; transition: all var(--transition-fast);
}
.item-carrito:hover { border-color: var(--md-blue); background: white; }
.item-info { flex: 1; }
.item-titulo { font-weight: 800; font-size: 0.95rem; color: var(--md-blue); line-height: 1.2; }
.item-precio { font-family: "Bungee", cursive; font-size: 1.2rem; color: var(--md-red); margin: 0 15px; }

.btn-eliminar {
    background: rgba(227, 0, 15, 0.1); border: none; color: var(--md-red); width: 36px; height: 36px; border-radius: 8px;
    font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all var(--transition-fast);
}
.btn-eliminar:hover { background: var(--md-red); color: white; transform: scale(1.1); }

.custom-alert {
    position: fixed; top: 20px; left: 50%; transform: translate(-50%, -20px); background: var(--md-red);
    color: white; padding: 16px 24px; border-radius: 16px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 25px rgba(227, 0, 15, 0.3); z-index: 9999; opacity: 0; visibility: hidden; transition: all var(--transition-smooth); width: 90%; max-width: 400px;
}
.custom-alert.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.alert-icon { font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.alert-message { font-weight: 700; font-size: 0.95rem; line-height: 1.4; }
.input-error { border-color: var(--md-red) !important; background-color: rgba(227, 0, 15, 0.05) !important; }

/* --- DISEÑO DEL GRID DE TOPPINGS --- */
.toppings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.topping-item {
    background: var(--bg-main); border: 2px solid var(--border-dark); padding: 12px; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: all var(--transition-fast);
}
.topping-item span { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); }
.topping-check { width: 18px; height: 18px; border: 2px solid var(--border-dark); border-radius: 4px; background: white; }
.topping-item.selected { border-color: var(--md-blue); background: rgba(0, 75, 135, 0.05); }
.topping-item.selected .topping-check { background: var(--md-blue); border-color: var(--md-blue); }
.topping-item.selected span { color: var(--md-blue); }
.topping-footer { display: flex; flex-direction: column; gap: 10px; }
.btn-confirmar-toppings:disabled { filter: grayscale(1); opacity: 0.5; cursor: not-allowed; }
.btn-cancelar-topping { background: none; border: none; color: var(--text-muted); font-weight: 700; cursor: pointer; padding: 5px; }

/* --- FOOTER & REDES SOCIALES --- */
.footer-divider { height: 2px; background: var(--border-dark); margin: 40px auto 30px; width: 60%; max-width: 300px; border-radius: 2px; }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-icon {
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: white;
    color: var(--md-blue); border: 2px solid var(--border-dark); border-radius: 50%; font-size: 1.8rem;
    text-decoration: none; transition: all var(--transition-smooth); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.social-icon:hover {
    background: var(--md-red); color: white; border-color: var(--md-red);
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(227, 0, 15, 0.2);
}

/* --- POLÍTICAS DE ENVÍO --- */
.btn-politicas {
    background: transparent;
    border: none;
    color: var(--md-blue);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color var(--transition-fast);
}
.btn-politicas:hover { color: var(--md-red); text-decoration: underline; }
.politicas-texto { max-height: 60vh; overflow-y: auto; padding-right: 15px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; font-family: "Montserrat", sans-serif; }
.politicas-texto h4 { color: var(--md-blue); margin-top: 20px; margin-bottom: 8px; font-size: 1.1rem; border-bottom: 1px solid var(--border-dark); padding-bottom: 5px; }
.politicas-texto p { margin-bottom: 10px; }
.politicas-texto strong { color: var(--text-main); }
.politicas-texto::-webkit-scrollbar { width: 6px; }
.politicas-texto::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 10px; }

/* --- ESTILOS DE PERSONALIZACIÓN EXTRA (PAN Y SALSAS) --- */
.custom-section { margin-bottom: 25px; text-align: left; }
.custom-section h4 { font-size: 1.05rem; color: var(--md-blue); margin-bottom: 12px; border-bottom: 2px solid var(--border-dark); padding-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
.custom-section h4 .text-neon { font-size: 1.2rem; }
.opciones-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.opciones-radios .radio-label { flex: 1 1 calc(50% - 10px); min-width: 120px; }
.opciones-radios .radio-custom { padding: 10px; font-size: 0.85rem; height: 100%; }

/* --- ESTILOS DE EXTRAS PAGOS --- */
.extras-grid { display: flex; flex-direction: column; gap: 8px; }
.extra-item { cursor: pointer; }
.extra-item input { display: none; }
.extra-custom { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border: 2px solid var(--border-dark); border-radius: 12px; background: var(--bg-main); transition: all var(--transition-fast); }
.extra-item input:checked + .extra-custom { border-color: var(--md-blue); background: rgba(0, 75, 135, 0.05); }
.extra-name { font-weight: 700; font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition-fast); }
.extra-item input:checked + .extra-custom .extra-name { color: var(--md-blue); }
.extra-price { font-weight: 800; font-size: 1rem; color: var(--brand-color); font-family: "Bungee", cursive; }

/* --- AJUSTES RESPONSIVE PARA EL HEADER --- */
@media (max-width: 768px) {
    .btn-header { padding: 6px 10px; font-size: 0.8rem; gap: 4px; }
    .logo-group { gap: 8px; }
    .status { padding: 4px 8px; font-size: 0.65rem; }
}
@media (max-width: 400px) {
    .btn-header { font-size: 0; padding: 8px 12px; }
    .btn-header i { font-size: 1.2rem; margin: 0; }
}