/* ================================================= */
/* ==================== RESET ====================== */
/* ================================================= */

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

/* ================================================= */
/* ===================== BODY ====================== */
/* ================================================= */

body {
    background-color: #121212;
    color: #f5f5f5;
    padding: 20px;
}

body.modal-open {
    overflow: hidden;
    height: 100%;
}

/* ================================================= */
/* ==================== HEADER ===================== */
/* ================================================= */

header {
    text-align: center;
    margin-bottom: 40px;
}

header .logo {
    width: 120px;
    max-width: 60%;
    margin: 0 auto 14px;
    display: block;
    opacity: 0;
    transform: translateY(12px);
    animation: logoFadeIn 0.8s ease-out forwards;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

header p {
    color: #bbb;
    font-size: 1rem;
    font-weight: 300;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================= */
/* ================== SECCIONES ==================== */
/* ================================================= */

section {
    margin-bottom: 50px;
}

section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 20px;
    border-left: 5px solid #e63946;
    padding-left: 12px;
    letter-spacing: 1px;
    color: #ffffff;
}

/* ================================================= */
/* ===================== GRID ====================== */
/* ================================================= */

.productos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* ================================================= */
/* ================= CARD PRODUCTO ================= */
/* ================================================= */

.producto {
    background-color: #1e1e1e;
    border-radius: 14px;
    display: flex;
    gap: 15px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.65);
}

.producto img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.producto .info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.producto h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.producto p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.producto .precio {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #e63946;
}

/* ================================================= */
/* ============ CONTROLES DE CANTIDAD ============== */
/* ================================================= */

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.cantidad-control button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #25d366;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.cantidad-control button:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

.cantidad-control .cantidad {
    min-width: 24px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* ================================================= */
/* =================== RESPONSIVE ================== */
/* ================================================= */

@media (min-width: 600px) {
    .productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================= */
/* ========== MOBILE: IMAGEN GRANDE ARRIBA ========= */
/* ================================================= */

@media (max-width: 480px) {
    .producto {
        flex-direction: column;
        padding: 16px;
    }

    .producto img {
        width: 100%;
        height: 220px;
        border-radius: 14px;
    }

    .producto .info {
        margin-top: 14px;
    }

    .producto h3 {
        font-size: 1.4rem;
    }

    .producto p {
        font-size: 0.95rem;
    }

    .producto .precio {
        font-size: 1.35rem;
    }
}

/* ================================================= */
/* ============ MODAL FULLSCREEN IMAGEN ============ */
/* ================================================= */

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-modal .close {
    position: fixed;
    top: 16px;
    right: 18px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* ================================================= */
/* =============== WHATSAPP FLOAT ================== */
/* ================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    z-index: 10000;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* ================================================= */
/* ==================== PROMOS ===================== */
/* ================================================= */

#promos h2 {
    font-size: 2.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e63946;
}

#promos .producto {
    border: 2px solid #e63946;
    background: linear-gradient(145deg, #1f1f1f, #141414);
    position: relative;
}

#promos .producto::before {
    content: "PROMO";
    position: absolute;
    top: -12px;
    right: -12px;
    background: #e63946;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 1.2px;
}

#promos .producto h3 {
    font-size: 1.45rem;
    text-transform: uppercase;
}

#promos .producto .precio {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ================================================= */
/* ================= MODAL DELIVERY ================= */
/* ================================================= */

.delivery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10001;
}

.delivery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.delivery-box {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: popIn 0.25s ease;
    position: relative;
}

@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.delivery-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.delivery-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-delivery {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-delivery .icon {
    font-size: 1.6rem;
}

.btn-delivery .text {
    font-size: 0.85rem;
}

.btn-delivery.yes {
    background: #25d366;
    color: #000;
}

.btn-delivery.no {
    background: #2a2a2a;
    color: #ffffff;
}

.btn-delivery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.delivery-text.small {
    font-size: 0.75rem;
    color: #aaaaaa;
    line-height: 1.3;
}

.delivery-close {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 24px;
    min-height: 24px;
    padding: 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #bdbdbd;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    opacity: 0.8;
}

.delivery-close:hover {
    color: #ffffff;
    opacity: 1;
}


/* ================================================= */
/* =========== MODAL SELECCIÓN DE CARNES ============ */
/* ================================================= */

.meat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10002;
}

.meat-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.meat-box {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 26px 22px;
    width: 92%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(0,0,0,0.65);
    animation: popIn 0.25s ease;
}

.meat-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

/* ===== OPCIONES ===== */

.meat-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.meat-btn {
    background: #2a2a2a;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.meat-btn strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
}

.meat-price {
    font-size: 0.85rem;
    color: #bbbbbb;
}

.meat-btn:hover {
    transform: translateY(-2px);
    background: #333333;
    box-shadow: 0 6px 16px rgba(0,0,0,0.55);
}

/* ===== BOTÓN CANCELAR ===== */

.meat-cancel {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.meat-cancel:hover {
    background: #2a2a2a;
    color: #ffffff;
}
/* ================= PROMO BOTÓN TRIPLE ================= */

.meat-btn[data-carnes="3"] {
    border: 2px solid #e63946;
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.45);
    position: relative;
}

.meat-btn[data-carnes="3"]::after {
    content: "🔥 MÁS ELEGIDA";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.meat-btn[data-carnes="3"]:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}
