/* ==================== */
/* VARIABLES Y RESET */
/* ==================== */

:root {
    --color-primary: #D95560;
    --color-secondary: #732C32;
    --color-accent: #73736F;
    --color-text: #0D0D0D;
    --color-light: #F2F2EB;
    --color-background: #fffff5;
    --color-wpp: #1ebe5d;
    --color-wpp-hover: #1ca44e;
}

/* Reset y estilos base */
body,
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    background-color: var(--color-background);
}

/* ==================== */
/* TIPOGRAFÍA */
/* ==================== */
h2 {
    font-weight: 700;
    color: var(--color-text);
}

h5 {
    font-weight: 600;
    color: var(--color-secondary) !important;
}

a,
p,
li {
    font-weight: 400;
}

li {
    font-weight: 300;
}

.section-title {
    margin-top: 10px;
    font-size: x-large;
    font-weight: 600;
}

.text-body-emphasis {
    margin-top: 10px;
}

.card-text {
    font-size: 10pt;
}

.details {
    font-size: 11pt;
}

.details_item {
    font-size: 9pt;
}

.details_title {
    font-size: 16pt;
    margin-left: .3em;
}

.datos-transferencia{
    font-size: 11pt;
}

.datos-transferencia p, span{
    padding: 0;
    margin: 0;
}

/* ==================== */
/* LAYOUT Y CONTENEDORES */
/* ==================== */
.container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    margin: 0 auto;
}

section {
    padding: 2rem 0;
}



/* ==================== */
/* COMPONENTES */
/* ==================== */
/* Logo */
.logo {
    width: auto;
    height: 100px;
}

/* Tarjetas de menú */
.menu-card {
    transition: transform 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.items {
    padding: 5px;
    word-break: break-word;
    margin-bottom: 1rem;
}

.menu-price {
    font-weight: bold;
    color: var(--color-text)
}

.tab-content {
    margin-bottom: 0 !important;
}

#ubicacion {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Pills de navegación */
.nav-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.nav-item {
    flex: 1 0 auto;
    min-width: calc(50% - 10px);
    max-width: 100%;
    box-sizing: border-box;
}

.nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: var(--color-background);
    background-color: var(--color-text);
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
    margin: 5px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-background);
    text-decoration: none;
}

.nav-pills .nav-link.active {
    background-color: var(--color-primary);
    font-weight: 600;
    color: var(--color-background);
}

/* Botones */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary.active,
.btn-primary:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}


#btn-back-to-top {
    background-color: var(--color-text);
    border-color: var(--color-text);
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
}

.btn-outline-custom {
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-outline-custom-wpp {
    border: 2px solid var(--color-wpp);
    background-color: transparent;
    color: var(--color-wpp);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    justify-content: center;
}

.btn-outline-custom-cont {
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    justify-content: center !important;
}

.btn-outline-custom-wpp:hover,
.btn-outline-custom-wpp.active {
    background-color: var(--color-wpp-hover) !important;
    color: white !important;
}

.btn-outline-custom-cont:hover,
.btn-outline-custom-cont.active {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Iconos */
.fas,
.fab {
    color: var(--color-background) !important;
}

.icons-alert{margin-right: 0.5rem;}

/* Listas */
.list-group-item {
    background-color: var(--color-accent) !important;
}

.list-group li {
    color: white;
}

/* Footer */
footer {
    background-color: var(--color-text);
    color: white;
}


/* ==================== */
/* Offcanvas */
/* ==================== */

.carrito-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.carrito-panel.abierto {
    right: 0;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cerrar-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.carrito-lista {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    list-style: none;
    margin-bottom: 10px;
}

.carrito-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
}

.boton-carrito-flotante {
    position: fixed;
    bottom: 90%;
    right: 20px;
    background-color: var(--color-wpp);
    color: white;
    border: none;
    border-radius: 7px;
    padding: 10px 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1040;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    gap: 8px;
    text-decoration: none;
}

.boton-carrito-flotante:hover {
    transform: scale(1.05);
}

.carrito-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.carrito-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */
@media (max-width: 768px) {
    .vertical-nav {
        flex-direction: column;
        align-items: center;
        border-right: none;
        padding-right: 0;
    }

    .vertical-nav .nav-link {
        text-align: center;
        margin-bottom: 5px;
        border-radius: 4px;
        padding: 10px 15px;
    }

    .vertical-nav .nav-link.active {
        background-color: var(--color-primary);
        color: white;
    }

    .menu-container {
        flex-direction: column;
        display: flex;
        flex-wrap: wrap;
    }

    .nav-pills .nav-link {
        width: 100%;
        margin: 5px 0;
    }

    #ubicacion {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

}

@media (max-width: 576px) {
    #btn-back-to-top {
        bottom: 70px;
        right: 20px;
        font-size: 1rem;
        padding: 0.5rem;
    }

    .logo {
        height: 80px;
    }

    .custom-btn-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .btn-outline-custom-cont {
        justify-content: center !important;
    }
    
    .btn-outline-custom-wpp {
        justify-content: center !important;
    }

}

@media screen and (max-width: 480px) {
    .boton-carrito-flotante {
        position: fixed;
        bottom: 93%;
        right: 20px;
        background-color: var(--color-wpp);
        color: white;
        border: none;
        border-radius: 7px;
        padding: 10px 20px;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        cursor: pointer;
        transition: transform 0.3s ease, background-color 0.3s ease;
        gap: 8px;
        text-decoration: none;
    }
    
    .icons-alert{margin-right: 1rem;}

}