﻿/* =========================================
   VARIABLES
========================================= */
:root {
    --primary: #06304a;
    --primary-dark: #031a29;
    --bg: #ffffff;
    --text: #32363B;
    --hover: #F7F9FA;
    --border: #E6E9ED;
    --success: #25D366;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* =========================================
   ESTRUCTURA BASE ANTI-ESPACIOS BLANCOS
========================================= */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forzamos un contenedor flex en el body para encajonar el footer abajo */
.wrapper-principal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f6fa;
    color: var(--text);
}

/* El main empuja al footer ocupando todo el espacio restante */
.contenido-principal {
    flex: 1 0 auto;
}

/* =========================================
   NAVBAR
========================================= */
.navbar-corporativa {
    background: #19314f;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.whatsapp-contact {
    background: var(--success);
    color: white;
}

.delivery-contact {
    background: var(--warning);
    color: #1b1b1b;
}

.address-contact {
    background: var(--danger);
    color: white;
}

.btn-danger {
    background: var(--danger);
    border: none;
}

    .btn-danger:hover {
        background: #bb2d3b;
    }

/* =========================================
   CARDS PRODUCTOS (IMAGEN GRANDE OPTIMIZADA)
========================================= */
.card-producto {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 18px;
    overflow: hidden;
    transition: .25s ease;
    height: 100%;
}

    .card-producto:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
    }

.contenedor-img-producto {
    background: white;
    overflow: hidden;
    padding: 8px 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
}

.img-producto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .25s ease;
    display: block;
    margin: 0 auto;
}

.card-producto:hover .img-producto {
    transform: scale(1.04);
}

.card-producto .card-body {
    padding: 1.25rem;
}

.titulo-producto {
    font-size: .92rem;
    line-height: 1.3;
    min-height: 42px;
}

.precio-producto {
    color: #198754;
    font-weight: 800;
}

.badge-stock {
    font-size: .72rem;
    padding: .45rem .7rem;
    border-radius: 50rem;
}

/* =========================================
   MODAL & CARRUSEL
========================================= */
.modal-content {
    border-radius: 20px;
}

.modal-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

#carruselPromociones {
    border-radius: 18px;
    overflow: hidden;
    margin-top: 10px;
}

.img-carousel-custom, .img-carousel-mobile {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-btn-modern {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(25,49,79,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* =========================================
   FOOTER CORPORATIVO (SELLA ABAJO SIN BLANCOS)
========================================= */
.footer-isibyte {
    flex-shrink: 0;
    background-color: #19314f !important;
    color: white !important;
    padding: 1.5rem 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */
@media (max-width: 768px) {
    .brand-name {
        font-size: 1.3rem;
    }

    .carousel-control-prev, .carousel-control-next {
        display: none;
    }

    .row.row-cols-2 {
        --bs-gutter-x: 0.65rem !important;
        --bs-gutter-y: 0.65rem !important;
    }

    .contenedor-img-producto {
        height: 125px;
        padding: 4px 4px 0 4px;
    }

    .card-producto h6 {
        font-size: 0.82rem !important;
        line-height: 1.2;
        margin-bottom: 0.4rem !important;
    }

    .titulo-producto {
        font-size: .78rem;
        min-height: 36px;
    }

    .precio-producto {
        font-size: .95rem;
    }

    .card-producto .card-body {
        padding: 0.7rem;
    }

    .card-producto .btn-sm {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }

    .badge-stock {
        font-size: .62rem;
    }
}
