/* =================================================================
    HOJA DE ESTILOS PERSONALIZADA PARA TODOS LOS DOCUMENTOS HTML
   ================================================================= */

/* =================================================================
    1. VARIABLES DE COLOR Y ESTILOS GLOBALES
   ================================================================= */
:root {
    --color-primary-red: #8C0000;
    --color-primary-select: #9e0000;
    --color-accent-gold: #FEB62B;
    --color-background-cream: #FFF8F0;
    --color-background-light-gray: #F2F2F2;
    --color-button-background: #FFE9E0;
    --color-image-placeholder: #757474;
    --color-text-dark: #333333;
    --color-text-orange: #F37A20;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: var(--color-text-dark);
}

/* =================================================================
    2. HEADER Y LOGO 
   ================================================================= */
.header-section {
    position: relative;
    background-color: var(--color-background-light-gray); 
}

.main-banner {
    height: 250px;
    background-image: url('../assets/background/background-top.webp');
    background-size: cover;
    background-position: 50% 10%;
}

.banner-space {
    height: 15px;
    background-color: var(--color-primary-red);
}

.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -80px;
    z-index: 2;
}

.logo-container {
    width: 160px;
    height: 160px;
    background-color: var(--color-primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 90%;
    height: auto;
}

/* =================================================================
    3. SECCIÓN DE TÍTULO 
   ================================================================= */
.title-section {
    background-color: #FAF6E9;
    padding: 90px 20px 30px 20px;
    position: relative;
    z-index: 1;
}

/* =================================================================
    4. BOTONES DE INFORMACIÓN
   ================================================================= */
.info-card {
    background-color: var(--color-button-background);
    border-radius: 20px;
    width: 100%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.delivery-subtitle-final {
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 2px;
    margin-bottom: 0 !important;
    text-align: center;
}

.delivery-maintext-final {
    display: inline-block;
    background-color: var(--color-text-orange);
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 0.1rem 1rem;
    border-radius: 50px;
    line-height: 1.2;
}

.social-icons-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-text-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.social-icon {
    font-size: 1.8rem;
    color: white;
}

/* Media Query para botones de información en móviles */
@media (max-width: 400px) {
    .info-card {
        padding: 0.4rem;
        min-height: 70px;
    }
    .delivery-subtitle-final {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .delivery-maintext-final {
        font-size: 1rem;
        padding: 0.1rem 1rem;
    }
    .social-icons-wrapper {
        gap: 1rem;
        padding: 0.4rem 1.2rem;
    }
    .social-icon {
        font-size: 1.5rem;
    }
}

/* =================================================================
    5. SLIDER DE IMÁGENES
   ================================================================= */
.carousel {
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    aspect-ratio: 8 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-bg-1 { background-image: url('../assets/images/banner-01.webp'); }
.slider-bg-2 { background-image: url('../assets/images/banner-02.webp'); }
.slider-bg-3 { background-image: url('../assets/images/banner-03.webp'); }

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-button-background);
}

.carousel-indicators .active {
    background-color: var(--color-text-dark);
}

/* =================================================================
    6. CARDS DE CATEGORÍAS
   ================================================================= */
.category-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    background-color: var(--color-image-placeholder); 
}

.category-card:hover {
    transform: scale(1.03);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-grow: 1;
}

.category-card-title {
    background-color: var(--color-primary-red);
    color: white;
    padding: 5px 10px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* =================================================================
    7. FOOTER
   ================================================================= */
.footer-section {
    background-color: #FAF6E9;
    padding: 20px;
    margin-top: 2rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.credit-text {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    opacity: 0.7;
}

.credit-link {
    color: rgb(74, 74, 255);
    text-decoration: none;
    transition: color 0.2s ease;
}

.credit-link:hover {
    color: var(--color-primary-red);
    text-decoration: underline;
}

/* =================================================================
    8. AJUSTES RESPONSIVOS GENERALES
   ================================================================= */
@media (min-width: 768px) {
    .main-banner {
        height: 140px;
    }
    .main-title {
        font-size: 2rem;
    }
    .main-tagline {
        font-size: .9rem;
    }
    .category-card-title {
        font-size: 1rem;
        padding: 15px;
    }
}

/* =================================================================
    9. AJUSTES FINOS PARA MÓVILES
   ================================================================= */
@media (max-width: 576px) {
    .main-title {
        font-weight: 900;
        font-size: 2.3rem;
        color: var(--color-text-dark);
    }
    .main-tagline {
        font-weight: 400;
        font-size: 1rem;
        color: var(--color-text-dark);
    }
    .main-banner {
        height: 140px;
    }
    .carousel-item {
        width: 100%;
        height: 150px;
    }
    .info-card {
        padding: 0.75rem 0.5rem;
    }
    .delivery-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 0.25rem;
    }
    .delivery-maintext {
        font-size: 1.4rem;
        padding: 0.1rem 1rem;
    }
    .discount-wrapper {
        gap: 0.2rem;
        padding: 0 10px; 
    }
    .discount-day {
        font-size: 0.9rem;
    }
    .discount-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .discount-percentage {
        font-size: 2.8rem;
    }
    .discount-product {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .delivery-card, .discount-card {
        min-height: 70px;
    }
}

/* Ocultar botones de información en páginas de menú específicas */
.menu-buffet .info-buttons-section,
.menu-lomiteria .info-buttons-section {
    display: none;
}

/* =================================================================
    10. CARDS DE MENÚ
   ================================================================= */
.mb-4 {
    font-weight: 700;
}

.menu-item-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    object-position: center 80%;
}

.menu-item-card.square-card .menu-item-img {
    aspect-ratio: 1 / 1;
}

.menu-item-img.large-img {
    aspect-ratio: 16 / 7;
}

.menu-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary-red);
    color: white;
    text-align: center;
    padding: clamp(0.5rem, 2.5vw, 1rem);
}

.menu-item-label.small-label {
    padding: clamp(0.4rem, 2vw, 0.75rem);
}

.menu-item-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(0.8rem, 3vw, 1.5rem);
}

.menu-item-title-small {
    margin: 0;
    font-weight: 700;
    font-size: clamp(0.65rem, 2.5vw, 1.1rem);
    white-space: nowrap; 
}

/* =================================================================
    11. ESTILOS PARA MENÚ MIXTO (TERRA BRASIL)
   ================================================================= */
.nav-wrapper-scrollable {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-wrapper-scrollable::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-link {
    color: var(--color-text-dark);
    border: 1px solid #dee2e6;
    border-bottom-width: 3px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary-red);
    border-color: #dee2e6 #dee2e6 var(--color-primary-red);
}

/* Desplazamiento suave */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

/* =================================================================
    12. TARJETAS DE PRODUCTO 
   ================================================================= */
.card-product-bs5 {
    background-color: white;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.product-title-bs5 {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--color-primary-red);
    text-transform: uppercase;
}

.product-description-bs5 {
    color: #6c757d;
    text-align: left;
}

.product-price-bs5 {
    color: var(--color-accent-gold);
}

/* =================================================================
    13. BOTÓN FIJO PARA VOLVER AL INICIO
   ================================================================= */
.fixed-home-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-red);
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fixed-home-btn:hover {
    transform: scale(1.1);
    background-color: #A10000;
}

.fixed-home-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* =================================================================
    14. MENÚ UNIFICADO (TABS)
   ================================================================= */
.nav-cards {
    list-style: none;
    padding-left: 0;
}

.nav-cards .nav-link {
    padding: 0;
    border: none;
    border-radius: 12px;
}

.nav-cards .nav-link:hover,
.nav-cards .nav-link:focus {
    background-color: transparent;
    border-color: transparent;
}

.nav-cards .nav-link.active {
    background-color: transparent;
    border: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =================================================================
    15. DISEÑO VERTICAL PARA TARJETAS DE PRODUCTO
   ================================================================= */
.card-product-bs5 .row {
    flex-direction: column-reverse;
    margin-left: 0;
    margin-right: 0;
}

.card-product-bs5 .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex: 1 1 100%;
}

.card-product-bs5 img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px 16px 0 0; 
}

.card-product-bs5 .card-body {
    padding: 1rem 1.25rem;
}

/* =================================================================
    16. LAYOUT MULTI-CARD (ESCRITORIO)
   ================================================================= */
@media (min-width: 768px) {
    .tab-pane .row.g-4 {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-pane .row.g-4 > .col-12 {
        width: auto; 
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: 350px;
        max-width: 350px;
    }
    .nav-wrapper-scrollable {
        display: flex;
        justify-content: center;
    }
}

/* =================================================================
    17. ESTILOS PARA EL ACORDEÓN
   ================================================================= */
.accordion {
    --bs-accordion-border-radius: 16px;
    --bs-accordion-border-color: #EAEAEA;
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border-radius: var(--bs-accordion-border-radius);
    overflow: hidden;
    border: 1px solid #EAEAEA;
}

.accordion-item:not(:first-of-type) {
    border: 1px solid #EAEAEA;
}

.accordion-button {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white; 
    background-color: var(--color-primary-red);
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--color-primary-red);
    box-shadow: none;
}

.accordion-button:focus {
    z-index: 3;
    border-color: transparent;
    box-shadow: none;
}

.accordion-body {
    padding: 1rem 0.5rem 0.5rem;
    background-color: #FFFFFF;
}

/* =================================================================
    18. ESTILOS PARA EL SEPARADOR DE MENÚ
   ================================================================= */
.line {
    text-align: center;
    color: var(--color-primary-red);
    font-weight: bold;
    font-size: 16px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* =================================================================
    19. SECCIÓN DE INFORMACIÓN DEL TENEDOR LIBRE
   ================================================================= */
.buffet-info-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.buffet-info-card {
    background-color: var(--color-primary-red);
    color: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.buffet-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.buffet-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.buffet-day-time, .buffet-day, .buffet-price p, .buffet-kilo-option p {
    margin: 0;
}

.buffet-day {
    font-weight: 700;
    font-size: 1.1rem;
}

.buffet-time {
    font-size: 0.8rem;
    opacity: 0.9;
}

.buffet-price {
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 2rem);
    text-align: right;
    white-space: nowrap;
}

.buffet-divider {
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    margin: 1.5rem auto;
}

.buffet-kilo-option {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.buffet-kilo-option strong {
    font-size: 1rem;
}

/* =================================================================
    20. ESTILO PARA CARD CON LISTA DE PRECIOS
   ================================================================= */
.card-price-list .price-list-items {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.card-price-list .price-list-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-price-list .price-list-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-price-list .item-name {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-price-list .item-price {
    color: var(--color-accent-gold);
    font-weight: bolder;
    font-size: 1.1rem;
    white-space: nowrap;
    padding-left: 1rem;
}

/* =================================================================
    21. PÁGINA DE REDES SOCIALES (SOCIAL.HTML)
   ================================================================= */
.social-page {
    background-image: url('../assets/background/background-social.webp');
    background-size: cover;
    background-position: center center;
    height: 100vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.social-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-title {
    font-weight: 700;
    margin-bottom: 3.5rem; 
}

.social-links-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.social-link i.social-icon-large {
    font-size: 70px;
    color: white;
    transition: transform 0.2s ease-in-out;
}

.social-link:hover svg.social-icon-large {
    transform: scale(1.1);
}

.social-tagline {
    margin-top: 2.5rem; 
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.social-modal-content {
    background-color: rgba(18, 18, 18, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    color: white;
}

.social-modal-content .modal-header {
    border-bottom: none;
    padding: 0.8rem;
}

.social-modal-content .btn-close {
    background-color: white;
    border-radius: 50%;
}

.social-modal-content .modal-body {
    padding: 1rem 1.5rem 2rem;
}

.modal-option a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.modal-option a:hover {
    opacity: 0.8;
}

.modal-option i {
    font-size: 50px;
}

/* =================================================================
    22. ESTILOS PARA EL BOTÓN DE IDIOMA
   ================================================================= */
#languageDropdown {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: var(--color-primary-red);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
}

#languageDropdown::after {
    display: none;
}

/* =================================================================
    23. AJUSTES PARA EL MENÚ DE IDIOMA
   ================================================================= */
.language-selector-wrapper {
    z-index: 1050; 
}

.language-selector-wrapper .dropdown-menu {
    min-width: auto; 
    width: fit-content; 
}

.language-selector-wrapper .dropdown-item {
    text-align: center;
}