body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #252850;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin: auto;
    position: relative;
    left: -20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

nav ul ul.submenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 200px;
}

nav ul li:hover > ul.submenu {
    display: block;
}

nav ul ul.submenu li {
    width: 80%;
    text-align: left;
    padding: 0.5rem 1rem;
}

nav ul ul.submenu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
}

nav ul ul.submenu a:hover {
    background-color: #aca2a22c;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}





.hero.hidden .content-wrapper {
    transform: scale(0.5);
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.additional-info {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.h2_info {
    font-size: 2.5rem;
    color: #252850;
    margin-bottom: 1.5rem;
}

.texto1, .texto2 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.texto1 strong, .texto2 strong {
    color: #252850;
}

footer {
    background-color: #252850;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FFC107;
}

@media (max-width: 768px) {
    header {
        height: auto;
    }

    header.menu-open {
        height: 100vh;
        overflow-y: auto;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }

    header.menu-open nav ul {
        display: flex;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .toggle-btn {
        display: block;
    }

    .content-wrapper {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0));
        align-items: center;
        padding-bottom: 20%;
        z-index: 300;
    }

    .content {
        padding: 1rem;
        max-width: 100%;
        text-align: center;
    }

    .h2_inicio {
        width: auto;
        white-space: normal;
        animation: typing 2s steps(20, end);
    }

    @keyframes typing {
        from {
            width: 0;
        }
        to {
            width: 100%;
        }
    }

    header.menu-open .logo {
        display: none;
    }

    header.menu-open nav ul {
        margin-top: 2rem;
    }

    .cta-button {
        background-color: #40E0D0;
        color: #000;
        display: inline-block;
        margin-top: 1rem;
    }

    .toggle-btn {
        font-size: 24px;
        display: block;
        position: fixed;
        border-radius: 10px;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: #ffffff;
        color: rgb(0, 0, 0);
        border: none;
        padding: 1.5rem 1.5rem;
        cursor: pointer;
        box-shadow: 3px 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .toggle-btn:active {
        transform: scale(0.95);
        box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
    }

    nav ul ul.submenu {
        display: none;
    }

    nav ul li:active > ul.submenu,
    nav ul li:focus > ul.submenu {
        display: block;
    }

    .h2_info {
        font-size: 19px;
    }

    .logo {
        position: relative;
        left: -50px;
    }

    .logo img {
        position: relative;
        left: 0;
    }
}

/* Estilos generales para la sección de donación */
.donation-info {
    padding: 2rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.donation-info .contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.donation-info .h2_info {
    font-size: 2.5rem;
    color: #252850;
    margin-bottom: 1.5rem;
}

.donation-info .texto1,
.donation-info .texto2 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.donation-info .texto2 strong {
    color: #252850;
}


.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
}

.whatsapp-button i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .donation-info {
        padding: 1.5rem 0;
    }

    .donation-info .h2_info {
        font-size: 2rem;
    }

    .donation-info .texto1,
    .donation-info .texto2 {
        font-size: 1rem;
    }

    .whatsapp-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .whatsapp-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .donation-info .h2_info {
        font-size: 1.8rem;
    }
    content-wrapper
    .donation-info .texto1,
    .donation-info .texto2 {
        font-size: 0.9rem;
    }

    .whatsapp-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .whatsapp-button i {
        font-size: 0.9rem;
    }
}


.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 8s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .slide {
        background-position: center center;
    }
}


.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
    z-index: 100;
}

.donation-text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.donation-subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

.donation-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FFC107;
    color: #252850;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.donation-button:hover {
    background-color: #FFA000;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.slide.active .slide-content {
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}


@media (max-width: 768px) {
    .donation-text {
        font-size: 1.8rem;
    }
    
    .donation-subtext {
        font-size: 1.2rem;
    }
    
    .donation-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .slide-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .donation-text {
        font-size: 1.5rem;
    }
    
    .donation-subtext {
        font-size: 1rem;
    }
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

/* CAPA OSCURA PARA MEJOR LEGIBILIDAD */
.image-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2; 
}

.boton-flecha::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #FFC107; 
    transition: all 0.3s ease;
}

.boton-flecha.animado::after {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%);
    }
    40% {
        transform: translate(-50%, -30%);
    }
    60% {
        transform: translate(-50%, -20%);
    }
}