/* ==========================================================================
   ESTILOS GENERALES Y MAQUETACIÓN - CHARO
   ========================================================================== */

body {
    background-color: #cbcfd8 !important;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.main-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.18);
}

.site-header-charo {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 1020;
}

.nav-charo-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}

.img-logo-charo {
    max-height: 105px;
    width: auto;
    display: block;
}

/* Banner Naranja del Menú */
.menu-orange-banner {
    background-color: #f7945d;
    border-radius: 0 30px 0 30px;
    padding: 16px 28px;
    flex-grow: 1;
    animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-charo-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px 22px;
}

.nav-charo-links a,
.btn-flyout-trigger {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    transition: opacity 0.2s ease;
}

.nav-charo-links a:hover,
.btn-flyout-trigger:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.nav-charo-links>li {
    opacity: 0;
    animation: fadeInMenuLinks 0.4s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInMenuLinks {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ==========================================================================
   DISPARADOR Y COMPORTAMIENTO MÓVIL (ESTILO SANDWICH)
   ========================================================================== */

.menu-sandwich-trigger {
    background: #f7945d;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 46px;
    height: 42px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(247, 148, 93, 0.4);
}

.sandwich-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Adaptación responsiva para móviles y tablets (< 992px) */
@media (max-width: 991.98px) {
    .menu-orange-banner {
        display: none;
        /* Oculto por defecto en móvil */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
        z-index: 1010;
        animation: none;
    }

    .menu-orange-banner.is-active {
        display: block !important;
        animation: fadeInDown 0.3s ease forwards;
    }

    .nav-charo-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-charo-links li {
        opacity: 1 !important;
        animation: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-charo-links li:last-child {
        border-bottom: none;
    }

    .nav-charo-links a,
    .btn-flyout-trigger {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 1.05rem;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ==========================================================================
   PANTALLA OVERLAY FULLSCREEN
   ========================================================================== */

.flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flyout-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #333333;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.flyout-close-btn:hover {
    transform: scale(1.15);
}

.flyout-content {
    width: 100%;
    max-width: 950px;
    padding: 20px;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
}

.flyout-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flyout-list li {
    border-bottom: 1px solid #eeeeee;
    padding: 18px 0;
}

.flyout-list li:last-child {
    border-bottom: none;
}

.flyout-list a {
    color: #222222;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.flyout-list a:hover {
    color: #f7945d;
}