* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bogart Regular', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #FFFFFF;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}


#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #004098;
    z-index: 1000;
    transition: transform 0.35s ease-in-out;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mainHeader.hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FF6600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.3);
    border-color: #FF6600;
    box-shadow: 0 8px 30px rgba(255,102,0,0.3);
}

.logo-img:active {
    transform: scale(0.95);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}


/* Botón hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* Menú desktop */
.dropdown-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-left: auto;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 40px;
    font-size: 1rem;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón Donaciones - NARANJA LLAMA CON RESPLANDOR */
.dropdown-menu li:last-child a {
    background: #FF6600;
    color: white;
    padding: 8px 22px;
    font-size: 1rem;   
    box-shadow: 0 2px 8px rgba(255,102,0,0.3);
    animation: resplandor 1.5s ease-in-out infinite alternate;
}

.dropdown-menu li:last-child a:hover {
    background: #D35400;
    transform: scale(1.02);
}

@keyframes resplandor {
    0% {
        box-shadow: 0 0 5px rgba(255,102,0,0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255,102,0,0.9), 0 0 5px rgba(255,102,0,0.5);
    }
}

/* Submenú en desktop */
.menu-item {
    position: relative;
}

.submenu-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid #FF6600;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.menu-item:hover .submenu-arrow {
    transform: rotate(180deg);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background: #f0f0f0;
    color: #ff6000 !important;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    /* El menú se posiciona de forma independiente, fijo en la pantalla */
    .dropdown-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: rgba(0, 64, 152, 0.9);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 5px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        border-left: 1px solid rgba(255,255,255,0.2);
        margin: 0;
    }

    /* Menú activo (visible) */
    .dropdown-menu.active {
        right: 0;
    }

    /* Estilo de cada opción del menú */
    .dropdown-menu > li {
        width: 100%;
        list-style: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu > li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 15px;
        color: white;
        font-size: 1rem;
        text-decoration: none;
        font-weight: 500;
        border-radius: 8px;
        transition: 0.2s;
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.15);
        padding-left: 20px;
    }
    .dropdown-menu li:last-child a {
        background: #FF6600;
        margin-top: 10px;
        text-align: center;
        animation: none;
    }

    .dropdown-menu li:last-child a:hover {
        background: #D35400;
    }

    /* Submenú en móvil (Nosotros) */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 5px;
        background: rgba(0,0,0,0.2);
        border-top: none;
        width: 100%;
    }

    .submenu.expanded {
        display: block;
    }

    .submenu li a {
        color: white !important;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .submenu li a:hover {
        background: rgba(255,255,255,0.1);
    }

    .menu-enlace {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    /* Flecha del submenú */
    .submenu-arrow {
        transition: transform 0.3s ease;
    }
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('imagenes-fum/FUMH.jpeg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    min-height: calc(100vh - 65px);
    padding-bottom: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #FF6600;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s, transform 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #FF6600;
    transform: translateY(-3px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #cdbaba;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #FF6600;
    margin: 10px auto 0;
}

.nosotros-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
}

.programas-section {
    background: #004098;
    color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: rgba(0, 64, 152, 0.8);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;

}
#ayudar .section-title {
    color: #000000 !important;
}

.program-card:hover {
    transform: translateY(-10px);
    background: #004098;
}

.program-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.program-card p {
    color: white;
}

.contacto-section {
    background: #f8f9fa;
}
#contacto .section-title {
    color: #000000 !important;
}

.contacto-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-content p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

footer {
    background: #004098;
    color: white;
    text-align: center;
    padding: 2rem 0;
}
.botones-flotantes-redes {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
}

@media (min-width: 769px) {
    .botones-flotantes-redes {
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .botones-flotantes-redes {
        bottom: 20px;
        left: 0;
        right: 0;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}

.btn-red-flotante {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .btn-red-flotante {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

.btn-red-facebook { background: linear-gradient(135deg, #1877F2, #0D5FD9); }
.btn-red-tiktok { background: linear-gradient(135deg, #010101, #69C9D0, #EE1D52); }
.btn-red-whatsapp { background: linear-gradient(135deg, #25D366, #1DA851); }

.badge-whatsapp {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(0.8); }
    50% { transform: scale(0.9); }
    100% { transform: scale(0.8); }
}

/*ANIMACIONES SCROLL*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

#mainHeader {
    background: #004098 !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

nav {
    background: #004098 !important;
}

.dropdown-menu {
    background: #004098 !important;
}

.hamburger span {
    background: white !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    max-width: 100%;
}

/* Asegurar que el menú se vea en móvil */
@media (max-width: 768px) {
    .dropdown-menu {
        right: -280px;
    }
    
    .dropdown-menu.active {
        right: 0;
    }
}
/* ========== AJUSTE MENÚ PC ========== */
.dropdown-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;  /* Reduce el espacio entre opciones */
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;  /* Reduce el padding */
    border-radius: 40px;
    font-size: 0.85rem;  /* Reduce el tamaño de la letra */
    white-space: nowrap;  /* Evita que el texto se rompa */
}
.menu-enlace {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.submenu-arrow {
    font-size: 0.6rem;
    margin-left: 3px;
    display: inline-block;
}

/* Botón Donar */
.dropdown-menu li:last-child a {
    background: #FF6600;
    padding: 8px 15px;
}
/* ===== VENTANA MODAL DEL LOGO ===== */
.logo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.logo-modal.active {
    display: flex;
}

.logo-modal img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 60px rgba(255,102,0,0.4);
    animation: zoomLogo 0.3s ease;
    border: 4px solid #FF6600;
}

@keyframes zoomLogo {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.logo-modal .cerrar-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.logo-modal .cerrar-modal:hover {
    transform: rotate(90deg);
    color: #FF6600;
}