@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;800&display=swap');

:root {
    --negro: #0a0a0a;
    --negro-claro: #141414;
    --rojo: #e63946;
    --rojo-hover: #c1121f;
    --naranja: #f4a261;
    --amarillo: #e9c46a;
    --blanco: #ffffff;
    --gris: #a0a0a0;
    --verde: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--negro);
    color: var(--blanco);
    min-height: 100vh;
}

/* HEADER */
.header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 100%);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--rojo) 0%, var(--naranja) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.header-info {
    text-align: right;
}

.estado {
    color: var(--verde);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.estado::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--estado-color, var(--verde));  /* ← usa variable */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.horario {
    font-size: 0.75rem;
    color: var(--gris);
    margin-top: 2px;
}

/* HERO */
.hero {
    margin-top: 80px;
    padding: 20px;
    background: var(--negro);
    margin-bottom: 0;
}

.hero-inner {
    position: relative;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1568901346375-23c9450c58cd?w=1400&q=80');
    background-size: cover;
    background-position: center center;
    filter: brightness(0.45) saturate(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.2) 0%,
        rgba(10,10,10,0.5) 60%,
        rgba(20,20,20,0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-content p {
    color: var(--gris);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-inner { height: 260px; border-radius: 14px; }
    .hero-content h1 { font-size: 2.4rem; }
}

/* CATEGORIAS */
.categorias {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    position: sticky;
    top: 80px;
    background: var(--negro);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.categorias::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: var(--negro-claro);
    border: 2px solid transparent;
    color: var(--gris);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.cat-btn.active {
    background: var(--rojo);
    color: var(--blanco);
    border-color: var(--rojo);
}

.cat-btn:hover:not(.active) {
    border-color: var(--gris);
    color: var(--blanco);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 60px;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emoji-title {
    font-size: 1.5rem;
}

/* PRODUCTOS GRID */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* CARD PRODUCTO */
.producto-card {
    background: var(--negro-claro);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-5px);
    border-color: var(--rojo);
    box-shadow: 0 10px 40px rgba(230,57,70,0.2);
}

.producto-card.agotado {
    opacity: 0.85;
}

.producto-card.agotado .producto-imagen::after {
    content: 'AGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--rojo);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.2rem;
}

.producto-imagen {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.producto-imagen::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--negro-claro), transparent);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-popular { background: var(--rojo); color: white; }
.badge-nuevo { background: var(--naranja); color: var(--negro); }

.producto-info {
    padding: 20px;
}

.producto-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.producto-nombre {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 1;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--naranja);
}

.producto-desc {
    color: var(--gris);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

/* BOTON EN STOCK */
.btn-stock {
    width: 100%;
    background: var(--verde);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-stock:hover {
    background: #27ae60;
    transform: scale(1.02);
}

.btn-stock::before {
    content: '✓';
    font-size: 1.2rem;
}

.btn-stock.agotado {
    background: #1a1a1a;
    color: #ef4444;
    border: 1px solid #ef4444;
    cursor: not-allowed;
}

.btn-stock.agotado::before {
    content: '✕';
    color: #ef4444;
}



/* SECCIÓN UBICACIÓN */
.ubicacion-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.ubicacion-banner {
    background: linear-gradient(135deg, var(--negro-claro) 0%, rgba(230,57,70,0.12) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ubicacion-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ubicacion-icon { font-size: 1.8rem; line-height: 1; }

.ubicacion-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--blanco);
    margin: 0;
    text-transform: uppercase;
}

.ubicacion-subtitulo {
    color: var(--gris);
    font-size: 0.85rem;
    margin: 2px 0 0;
}

.ubicacion-llama {
    font-size: 2rem;
    animation: flicker 1.8s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .7; transform: scale(1.15) rotate(-5deg); }
}

.ubicacion-body {
    background: var(--negro-claro);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 20px 20px;
    display: flex;
    overflow: hidden;
}

.ubicacion-info {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 230px;
    flex: 0 0 auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.ubicacion-dato {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dato-icon { font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }

.ubicacion-dato strong {
    display: block;
    color: var(--naranja);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-weight: 600;
}

.ubicacion-dato p {
    color: var(--gris);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.btn-como-llegar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--rojo);
    color: var(--blanco);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.btn-como-llegar:hover {
    background: var(--rojo-hover);
    transform: scale(1.02);
}

.mapa-wrapper {
    flex: 1;
    min-height: 320px;
}

.mapa-iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    display: block;
    filter: grayscale(25%) contrast(1.05) brightness(0.9);
}

/* CARRITO FLOTANTE */
.carrito-flotante {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rojo);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(230,57,70,0.4);
    cursor: pointer;
    z-index: 1000;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.carrito-flotante.visible {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.carrito-icono {
    font-size: 1.5rem;
}

.carrito-info {
    display: flex;
    flex-direction: column;
}

.carrito-total {
    font-size: 1.3rem;
}

.carrito-items {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* MODAL CARRITO */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-carrito {
    background: var(--negro-claro);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 30px 30px 0 0;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.modal-overlay.active .modal-carrito {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 1px;
}

.btn-cerrar {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-carrito {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.item-imagen {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.item-info {
    flex: 1;
}

.item-nombre {
    font-weight: 700;
    margin-bottom: 3px;
}

.item-detalles {
    font-size: 0.85rem;
    color: var(--gris);
}

.item-precio {
    font-weight: 700;
    color: var(--naranja);
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 20px;
}

.btn-mini {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: var(--rojo);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resumen-pedido {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.linea-resumen {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gris);
}

.linea-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.02);
}

.notas-pedido {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    color: white;
    margin-top: 15px;
    font-family: inherit;
    resize: none;
}

.notas-pedido::placeholder {
    color: var(--gris);
}

/* LOADING */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--gris);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gris);
    border-top-color: var(--rojo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .ubicacion-body {
        flex-direction: column;
    }

    .ubicacion-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mapa-wrapper,
    .mapa-iframe {
        min-height: 240px;
    }
    /* MENSAJES DE PEDIDO */
    .mensaje {
        margin-top: 15px;
        font-weight: bold;
        text-align: center;
        font-size: 0.95rem;
    }

    .mensaje.error {
        color: var(--rojo);
    }

    .mensaje.exito {
        color: var(--verde);
    }

}