@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --clr-primary: #FFB30E;
    --clr-dark: #1E1E1E;
    --clr-text: #333;
    --clr-muted: #757575;
    --clr-light-gray: #f8f9fa;
    --clr-white: #ffffff;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    background-color: var(--clr-white);
}

/* =================================================== */
/* ============== ESTILOS DE PÁGINA DE INICIO ============== */
/* =================================================== */
body.inicio {
    background-color: var(--clr-white);
    padding-top: 80px; 
}
.header-solid {
    background-color: var(--clr-white);
    padding: 0.75rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.header-solid .navbar-brand-inicio,
.header-solid .nav-link {
    color: var(--clr-dark) !important;
}
.header-solid .nav-link:hover {
    color: var(--clr-primary) !important;
}
.navbar-brand-inicio {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    font-size: 1.8rem;
    text-decoration: none;
}
.hero-section-inicio {
    position: relative;
    padding: 4rem 0 8rem 0;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background-color: var(--clr-primary);
}
.hero-section-inicio .carousel, .hero-section-inicio .carousel-inner, .hero-section-inicio .carousel-item, .hero-section-inicio .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,179,14,0.95) 40%, rgba(255,179,14,0.7) 60%, rgba(255,179,14,0.1) 100%);
}
.hero-section-inicio .container {
    z-index: 3;
}
.hero-title-inicio {
    color: var(--clr-dark);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.hero-text-inicio {
    color: var(--clr-dark);
    margin: 1.5rem 0;
    max-width: 500px;
}
.cta-inicio {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 4;
}
.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.section-divider .shape-fill {
    fill: var(--clr-white);
}
.features-section {
    padding-top: 5rem !important;
    border-bottom: 1px solid #eee;
    background-color: var(--clr-white);
}
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clr-dark);
}
.section-title + .lead {
    margin-bottom: 3rem;
}
.feature-card {
    padding: 2rem;
    background-color: var(--clr-light-gray);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--clr-primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: var(--clr-dark);
}
.feature-card h3 {
    font-weight: 700;
}
.feature-card p {
    color: var(--clr-muted);
    flex-grow: 1;
}
.btn-primary-custom {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    margin-top: 1rem;
}
.btn-primary-custom:hover {
    background-color: #000;
    transform: translateY(-3px);
}
.populares-section {
    border-top: 1px solid #eee;
    background-color: var(--clr-light-gray);
    padding: 5rem 0;
}
.populares-swiper {
    padding-bottom: 3rem;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--clr-primary);
}
.map-section {
    padding: 5rem 0 0 0;
    background-color: var(--clr-white);
}
.map-container {
    width: 100%;
    height: 450px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.footer-main {
    background-color: var(--clr-dark);
    color: var(--clr-light-gray);
    padding: 4rem 0;
}
.footer-brand {
    color: var(--clr-primary);
    font-weight: 700;
}
.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-links li {
    margin-bottom: .5rem;
}
.footer-links a {
    color: var(--clr-muted);
    text-decoration: none;
}
.popular-card {
    background-color: var(--clr-white);
    border: 1px solid #eee;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all .3s ease;
}
.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.popular-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}
.popular-card-body {
    padding: 1rem;
}
.popular-card-title {
    font-weight: 600;
    font-size: 1rem;
}
.popular-card-price {
    font-weight: 700;
    font-size: 1.1rem;
}
.popular-card-btn {
    background-color: var(--clr-primary);
    color: var(--clr-dark);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    text-decoration: none;
}

/* =================================================== */
/* ============== ESTILOS DE PÁGINA DE MENÚ ============== */
/* =================================================== */
.page-wrapper {
    display: flex;
}
.menu-panel {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    background-color: #F7F7F7;
}
.cart-panel {
    width: 380px;
    flex-shrink: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,.05);
}
.menu-header {
    background-color: #F7F7F7;
    z-index: 12;
    border-bottom: 1px solid #eee;
}
.navbar-brand-menu {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--clr-dark);
    text-decoration: none;
    flex-shrink: 0;
}
#input-busqueda {
    border-radius: var(--border-radius-md);
    height: 48px;
    border: 1px solid #dee2e6;
    box-shadow: none;
}
.input-group-text {
    border-radius: var(--border-radius-md);
    border: 1px solid #dee2e6;
}
#input-busqueda:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(255, 179, 14, .25);
}
.categorias-container {
    top: 81px;
    z-index: 11;
    background-color: #F7F7F7;
    border-bottom: 1px solid #eee;
}
.categorias-title {
    font-weight: 600;
    font-size: 1.2rem;
}
.categorias-swiper .swiper-slide {
    width: auto;
}
.categoria-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background-color: var(--clr-white);
    border: 1px solid #eee;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--clr-text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.categoria-btn.active, .categoria-btn:hover {
    background-color: var(--clr-primary);
    color: var(--clr-dark);
}
.categoria-btn i {
    font-size: 1.2rem;
}
#lista-productos {
    padding-top: 1.5rem;
}
.categoria-titulo-seccion {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.producto-card-vertical {
    background-color: var(--clr-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all .3s ease;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.producto-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}
.producto-imagen-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
}
.producto-imagen-menu {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.producto-card-vertical:hover .producto-imagen-menu {
    transform: scale(1.05);
}
.producto-info-vertical {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.producto-titulo-menu {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.producto-descripcion {
    font-size: 0.85rem;
    color: var(--clr-muted);
    flex-grow: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.producto-precio-menu {
    font-weight: 700;
    font-size: 1.2rem;
}
.btn-agregar-menu {
    background-color: var(--clr-primary);
    color: var(--clr-dark);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-agregar-menu:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.cart-panel {
    background-color: var(--clr-white);
}
.cart-header, .cart-footer {
    padding: 1.5rem;
    border-color: #f1f1f1;
}
.cart-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
}
.cart-footer {
    border-top: 1px solid #f1f1f1;
}
.cart-title {
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
}
.btn-back-cart {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--clr-dark);
}
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    transition: opacity 0.3s ease;
}
#cart-checkout-form {
    overflow-y: auto;
}
.cart-checkout-form .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--clr-muted);
}
.cart-checkout-form .form-control {
    border-radius: var(--border-radius-md);
    border: 1px solid #dee2e6;
    background-color: var(--clr-light-gray);
}
.cart-checkout-form .form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(255, 179, 14, .25);
    background-color: var(--clr-white);
}
.cart-empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
}
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.cart-item-info {
    display: flex;
    flex-direction: column;
}
.cart-item-title {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.2;
}
.cart-item-price {
    font-size: .8rem;
    color: var(--clr-muted);
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
}
.cart-item-subtotal {
    font-weight: 600;
    text-align: right;
    min-width: 60px;
}
.btn-qty {
    border: none;
    background: none;
    font-size: 1.2rem;
    color: var(--clr-dark);
    cursor: pointer;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.cart-total strong {
    font-size: 1.5rem;
    font-weight: 700;
}
.btn-comprar {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-vaciar {
    border: none;
    background: none;
    color: var(--clr-muted);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}
.swiper-navigation-wrapper {
    display: flex;
    gap: 0.5rem;
}
.categorias-button-prev,
.categorias-button-next {
    position: static;
    width: 36px;
    height: 36px;
    margin-top: 0;
    background-color: var(--clr-white);
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--clr-dark);
    transition: all 0.2s ease;
}
.categorias-button-prev.swiper-button-disabled,
.categorias-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.categorias-button-prev::after,
.categorias-button-next::after {
    font-size: 1rem;
    font-weight: 800;
}
.categorias-button-prev:hover,
.categorias-button-next:hover {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}
.disabled {
    display: none !important;
}

@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }
    .cart-panel {
        width: 100%;
        height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    .cart-panel.open {
        transform: translateY(0);
    }
    .menu-panel {
        height: auto;
        padding-bottom: 100px;
    }
    .cart-fab {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        background-color: var(--clr-dark);
        color: var(--clr-white);
        border-radius: 50px;
        padding: .75rem 1.5rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,.2);
        font-weight: 600;
        border: none;
        cursor: pointer;
    }
    .numerito-fab {
        background-color: var(--clr-primary);
        color: var(--clr-dark);
        border-radius: 50%;
        padding: .2rem .5rem;
        font-size: .8rem;
    }

    .cart-item {
        grid-template-columns: auto 1fr auto; /* Imagen | Info+Controles | Subtotal */
        grid-template-rows: auto auto;
        column-gap: 0.75rem;
    }
    .cart-item-img {
        grid-row: 1 / span 2;
    }
    .cart-item-info {
        grid-column: 2;
        grid-row: 1;
    }
    .cart-item-actions {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
    .cart-item-subtotal {
        grid-column: 3;
        grid-row: 1 / span 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}
