/* ========================================== */
/* NAVBAR - VERSIÓN CON LOGO VISIBLE         */
/* ========================================== */

header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    gap: 15px;
}

/* ========================================== */
/* LOGO - TAMAÑO VISIBLE (70px)              */
/* ========================================== */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo-container .logo {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-container .logo:hover {
    transform: scale(1.08);
}

/* ========================================== */
/* TEXTO DEL LOGO - DOS LÍNEAS               */
/* ========================================== */

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.logo-text h1 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    max-width: 380px;
    white-space: normal;
    word-wrap: break-word;
}

.logo-text p {
    color: #f39c12 !important;
    font-size: 0.8rem;
    margin: 2px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ========================================== */
/* NAVEGACIÓN - COLOR NARANJA                */
/* ========================================== */

#main-nav {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5px 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 1;
    min-width: 0;
}

#main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

#main-nav ul li {
    margin: 0;
    list-style: none;
}

#main-nav ul li a {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
}

#main-nav ul li a:hover,
#main-nav ul li a:focus {
    color: #f37021 !important;
    background: rgba(243, 156, 18, 0.2);
    text-decoration: none;
}

/* ========================================== */
/* BOTÓN DONAR                               */
/* ========================================== */

.nav-donate-btn {
    margin-left: 0px;
    list-style: none;
}

.nav-donate-btn a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-donate-btn a:hover {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 8px 35px rgba(231, 76, 60, 0.45) !important;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c) !important;
    color: white !important;
}

.nav-donate-btn a i {
    font-size: 0.78rem;
    animation: pulseHeart 1.2s ease infinite;
    color: white !important;
}

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

/* ========================================== */
/* SELECTOR DE IDIOMA                        */
/* ========================================== */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    flex-shrink: 0;
}

#lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

#lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#lang-label {
    font-weight: bold;
    margin-left: 3px;
    color: #f39c12;
    font-size: 0.65rem;
}

#lang-btn svg {
    width: 18px;
    height: 18px;
    stroke: #f39c12;
}

#lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 130px;
    z-index: 1000;
}

#lang-dropdown.active {
    display: block;
}

.lang-option {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    color: #2c3e50;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================== */
/* MENÚ MÓVIL                                */
/* ========================================== */

.mobile-menu {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #f37021;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.mobile-menu:hover {
    color: white;
}

/* ========================================== */
/* RESPONSIVE                                */
/* ========================================== */

@media (max-width: 1200px) {
    .header-container {
        gap: 12px;
        padding: 0 10px;
    }

    .logo-container .logo {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }

    .logo-text h1 {
        font-size: 0.78rem;
        max-width: 320px;
    }

    .logo-text p {
        font-size: 0.55rem;
    }

    #main-nav ul li a {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .nav-donate-btn a {
        padding: 4px 12px !important;
        font-size: 0.65rem !important;
    }
}

@media (max-width: 1024px) {
    .header-container {
        gap: 10px;
        width: 97%;
    }

    .logo-container .logo {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }

    .logo-text h1 {
        font-size: 0.68rem;
        max-width: 280px;
    }

    .logo-text p {
        font-size: 0.5rem;
    }

    #main-nav {
        padding: 4px 10px;
    }

    #main-nav ul {
        gap: 2px;
    }

    #main-nav ul li a {
        padding: 4px 8px;
        font-size: 0.62rem;
    }

    .nav-donate-btn a {
        padding: 3px 10px !important;
        font-size: 0.6rem !important;
        gap: 3px !important;
    }

    .nav-donate-btn a i {
        font-size: 0.65rem;
    }

    #lang-btn {
        padding: 3px 8px;
    }

    #lang-label {
        font-size: 0.55rem;
    }

    #lang-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 850px) {
    .header-container {
        justify-content: space-between;
        padding: 0 10px;
        gap: 8px;
        width: 100%;
    }

    .logo-container {
        gap: 8px;
    }

    .logo-container .logo {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }

    .logo-text h1 {
        font-size: 0.6rem;
        max-width: 180px;
    }

    .logo-text p {
        font-size: 0.45rem;
    }

    .mobile-menu {
        display: flex;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 58px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 58px);
        transition: left 0.3s ease;
        z-index: 999;
        border-radius: 0 20px 20px 0;
        margin-left: 0;
        padding: 20px 0;
        border: none;
    }

    #main-nav.active {
        display: block;
        left: 0;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 0 15px;
    }

    #main-nav ul li {
        width: 100%;
    }

    #main-nav ul li a {
        color: #2c3e50 !important;
        font-size: 0.9rem;
        padding: 10px 16px;
        border-radius: 10px;
        text-align: left;
        width: 100%;
        white-space: normal;
    }

    #main-nav ul li a:hover {
        background: rgba(243, 156, 18, 0.15);
        color: #f39c12 !important;
    }

    .nav-donate-btn {
        margin-left: 0;
        width: 100%;
        margin-top: 6px;
        padding: 0 15px;
    }

    .nav-donate-btn a {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    .lang-switcher {
        margin-left: auto;
    }

    #lang-btn svg {
        width: 18px;
        height: 18px;
    }

    #lang-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 6px;
    }

    .logo-container .logo {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    .logo-text h1 {
        font-size: 0.5rem;
        max-width: 120px;
    }

    .logo-text p {
        font-size: 0.38rem;
    }

    .logo-container {
        gap: 6px;
    }

    .mobile-menu {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    #lang-btn {
        padding: 3px 6px;
    }

    #lang-btn svg {
        width: 14px;
        height: 14px;
    }

    #lang-label {
        font-size: 0.45rem;
    }

    #main-nav {
        top: 50px;
        height: calc(100vh - 50px);
        width: 85%;
    }

    #main-nav ul li a {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .nav-donate-btn a {
        font-size: 0.75rem !important;
        padding: 8px 14px !important;
    }
}
