:root {
    --primary-blue: #3E5690;    /* Color azul principal */
    --secondary-blue: #6F95CE;  /* Color azul secundario */
    --light-blue: #BBD7EB;      /* Color azul claro */
    --primary-green: #AABE7B;   /* Color verde principal */
    --secondary-green: #93B487;  /* Color verde secundario */
    --light-gray: #FDFDF6;      /* Color gris claro/blanco */
    --primary-color: var(--primary-blue);
    --primary-color-dark: #2D4070;
}

@font-face {
    font-family: 'Baron Neue';
    src: url('../assets/font/Baron Neue.otf') format('opentype'),
         url('../assets/font/Baron Neue Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baron Neue';
    src: url('../assets/font/Baron Neue Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Baron Neue';
    src: url('../assets/font/Baron Neue Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baron Neue';
    src: url('../assets/font/Baron Neue Bold Italic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GALISCKA';
    src: url('../assets/font/GALISCKA-Regular-BF65ce4e25cffd9.otf') format('opentype'),
         url('../assets/font/GALISCKA-Regular-BF65ce4e261cfed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paloseco';
    src: url('../assets/font/Paloseco-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paloseco';
    src: url('../assets/font/Paloseco-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Paloseco';
    src: url('../assets/font/Paloseco-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paloseco';
    src: url('../assets/font/Paloseco-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'UNDERRATED';
    src: url('../assets/font/UNDERRATED-UltraBold Personal Use.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent;
    z-index: 5000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: #3E5690;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar .logo img {
    width: 300px;
    height: auto;
    margin-left: 16%;
}

.donate-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-transform: capitalize;
    text-decoration: none;
}

.donate-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    opacity: 0.8;
}

.nav-button svg {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero img{
    width: 100vw;
}
@media screen and (max-width: 768px) {
    .hero img{
        height: 100vh;
        object-fit: cover;
    }
}
#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/video-dotted-background.png');
    background-repeat: repeat;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    max-width: 80%;
    color: var(--white);
    z-index: 2;
    letter-spacing: 0.3rem;
    word-spacing: 0.5rem;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        color: white;

}

.hero-content p {
    font-size: 2.2rem;
    line-height: 1.5;
    color: white;
}



/* About Section */
.about-section {
    padding: 6rem 0;
    background-color:transparent;
    position: relative;
    overflow: hidden;
}

.about-container {
    text-align: start;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    width: 85%;
}

.about-content h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text.highlight {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 500;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary-blue);
    margin-top: 2rem;
}

/* Media queries */
@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1.1rem;
    }

    .about-text.highlight {
        font-size: 1.2rem;
    }
}

/* Actualizar la sección de impacto */
.impact-section {
    background-color: #BBD7EB;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 15c-1.5 0-2.7 1.2-2.7 2.7 0 1.2.8 2.2 1.9 2.5v3.3c-4.3.7-7.7 4.4-7.7 8.9 0 .6.5 1.1 1.1 1.1s1.1-.5 1.1-1.1c0-3.7 3-6.7 6.7-6.7s6.7 3 6.7 6.7c0 .6.5 1.1 1.1 1.1s1.1-.5 1.1-1.1c0-4.5-3.4-8.2-7.7-8.9v-3.3c1.1-.3 1.9-1.3 1.9-2.5-.4-1.5-1.6-2.7-3.1-2.7z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
}

.impact-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column-reverse;
}

.impact-circle {
    height: 70%;
    position: relative;

}

.circle-graphic {
    height: 100%;
    width: 100%;
}

.circle-content {
    text-align: center;
    height: 100%;
    width: 100%;
}
.circle-content img{
    width: 130%;

    height: 100%;
    object-fit: contain;
}
.impact-stats {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 85%;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.stat-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: #4B6EB9;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: black;
    font-family: 'GALISCKA', Arial, sans-serif;
    margin-top: 0.3rem;
}

/* Para los items que tienen flecha */
.stat-item.with-link {
    position: relative;
    padding-right: 2rem;
}

.stat-item.with-link::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #4B6EB9;
}

@media (max-width: 768px) {
    .impact-stats {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
}

/* Projects Section */
.projects-section {
    position: relative;
    min-height: 100vh;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #000;
}

.projects-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: brightness(0.8);
}

.projects-container {
    position: relative;
    z-index: 2;
    padding: 4rem;
    width: 100%;
    margin-bottom: 2rem;
}

.projects-container .section-title2 {
    font-size: 6rem;
    color: white;

    font-weight: 600;
    margin-left: 36px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#projects > div.projects-container > div > div:nth-child(4) > a > h3{
    border: none;
    padding-top: 0;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 3;
}

.project-item {
    flex: 1;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100px;
}

.project-item h3 {
    padding-top: 10px;
    border-top: 3px solid white;
}

.project-item.more-projects-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    width: 100%;
    height: 150px;
    padding: 20px;
}

.project-item.more-projects-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.project-item.more-projects-item h3 {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.project-location {
    display: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.more-projects {
    position: absolute;
    right: 4rem;
    top: 4rem;
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.more-projects:hover {
    background: white;
    color: black;
}

@media (max-width: 1200px) {
    .projects-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr;
    }
}

/* Donation Section */
.donation {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.donation-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.donation-tabs button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.donation-tabs button.active {
    border-bottom: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Estilos del Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--light-gray);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-blue);
}

.footer-logo {
    max-width: 600px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    color: var(--light-blue);
}

.footer-info {
    font-size: 0.9rem;
    color: var(--light-blue);
}

.footer-info p {
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--light-blue);
    font-size: 1.2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    color: var(--secondary-blue);
}

.footer-links {
    padding: 2rem 0;
    border-bottom: 1px solid var(--secondary-blue);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.footer-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--secondary-blue);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-certifications {
    display: flex;
    gap: 2rem;
}

.footer-certifications img {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-legal {
    font-size: 0.8rem;
    color: var(--light-blue);
    opacity: 0.8;
    text-align: right;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-legal {
        text-align: center;
    }
}

/* Estilos del buscador */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 90%;
    max-width: 600px;
    position: relative;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transform: translateY(-30px);
    transition: all 0.3s ease;
}

.search-container.active .search-box {
    transform: translateY(0);
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.search-close svg {
    width: 20px;
    height: 20px;
}

.search-close svg path {
    stroke: #666;
}

/* Ajuste para el botón de búsqueda */
.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.search-button:hover {
    opacity: 0.8;
}

.search-button svg {
    width: 24px;
    height: 24px;
}

.search-button svg path {
    stroke: white;
}

/* Estilos del menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min-content;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 6000;
}

.container-menu{
    display: flex;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    padding: 2rem;
    display: flex;
    justify-content: flex-end;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-nav {
    flex: 1;
    padding: 2rem;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-items li {
    margin-bottom: 0.5rem;
    width: max-content;
}

.menu-items a {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.menu-items a:hover {
    color: var(--primary-blue);
}

.menu-footer {
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.language-selector {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.language-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}

.language-group span {
    color: #666;
    font-size: 0.8rem;
    min-width: 60px;
}

.language-group a {
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
}

.newsletter {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.newsletter span {
    color: #666;
    font-size: 0.8rem;
}

.subscribe-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(62, 86, 144, 0.2);
}

.subscribe-button:hover {
    background: #6F95CE; /* secondary-blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(62, 86, 144, 0.3);
}

.subscribe-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(62, 86, 144, 0.2);
}

.social-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    gap: .8rem;
}

.social-links a {
    color: #000;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.social-links a:active {
    transform: translateY(0);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .side-menu {
        width: 100%;
    }
    
    .menu-footer {
        flex-direction: column;
    }
    
    .language-selector {
        margin-bottom: 1.5rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(62, 86, 144, 0.05), rgba(170, 190, 123, 0.05));
    z-index: 0;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.testimonials-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card {
    width: calc(25% - 0.5rem);
    flex: 0 0 auto;
    padding: 1.5rem;
    opacity: 1;
    text-decoration: none;
    transition: all 0.5s ease;
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(62, 86, 144, 0.05);
    margin: 0;
}

.testimonial-image {
    flex: 0 0 180px;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.testimonial-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 400;
}

.testimonial-author {
    margin-top: auto;
    position: relative;
    padding-left: 1rem;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 80%;
    transform: translateY(-50%);
    background: var(--primary-green);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.author-location {
    font-size: 0.9rem;
    color: #666;
}

.testimonials-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-button {
    background: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.nav-button:hover {
    background: var(--primary-blue);
    color: white;
}

.nav-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #DDD;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.5);
}

@media (max-width: 1024px) {
    .testimonials-slider {
        width: 400%;
        gap: 0;
    }
    
    .testimonial-card {
        width: 25%;
        padding: 1rem;
    }

    .testimonial-image {
        flex: 0 0 150px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column;
        padding: 1rem;
    }

    .testimonial-image {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 200%;
    gap: 1rem;

}

.testimonial-card.active {
    opacity: 1;
}

/* Impact Gallery Section */
.impact-gallery {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-container .before {
    opacity: 1;
}

.image-container .after {
    opacity: 0;
}

.image-container:hover .before {
    opacity: 0;
}

.image-container:hover .after {
    opacity: 1;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 1.5rem;
    color: white;
    z-index: 2;
}

.overlay span {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Etiquetas antes/después */
.image-container::before,
.image-container::after {
    content: 'ANTES';
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.image-container::after {
    content: 'DESPUÉS';
    opacity: 0;
}

.image-container:hover::before {
    opacity: 0;
}

.image-container:hover::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Sección Cómo Ayudar - Nuevo diseño */
.help-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path/to/pattern.svg');
    opacity: 0.03;
    pointer-events: none;
}

.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

 .section-title {
    font-size: 3.5rem;
    color: var(--light-gray);
    margin-bottom: 5rem;
    text-align: center;
    font-weight: 300;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    perspective: 1000px;
}

.help-card {
    height: 450px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.help-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-front {
    background: white;
    box-shadow: 0 15px 35px rgba(62, 86, 144, 0.1);
}

.card-back {
    background: var(--primary-blue);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(62, 86, 144, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.help-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 400;
}

.help-card .card-front p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Estilos específicos para el reverso de cada tarjeta */
.donation-types, .volunteer-list, .partnership-options {
    width: 100%;
    margin-bottom: 2rem;
}

.type-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.type-item:last-child {
    border-bottom: none;
}

.type-item span {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.volunteer-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.volunteer-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.partnership-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.partnership-options span {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.action-button {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    text-decoration: none;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .help-section {
        padding: 4rem 0;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .help-card {
        height: 450px;
    }

    .help-section .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

/* Estilos para la sección de Noticias */
.news-section {
    padding: 6rem 0;
    background-color: var(--light-blue);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.news-card h3 {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.news-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.view-all-news {
    display: block;
    text-align: center;
    margin-top: 3rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Estilos para la sección de Contacto */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    stroke: var(--primary-green);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    opacity: 0.9;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #2a3d6d;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Mantener solo estos estilos básicos */
html {
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
}

/* Estilos para el botón de historia */
.history-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    margin-top: 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.history-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.history-button:hover {
    color: white;
}

.history-button:hover::before {
    width: 100%;
}

.history-button svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-button:hover svg {
    transform: translateX(5px);
}

.history-button svg path {
    stroke: currentColor;
    transition: stroke 0.4s ease;
}


/* Ajustes para 1366px */
@media (max-width: 1366px) {
    .navbar .logo img {
        width: 180px;
    }

    .hero-content {
        bottom: 18%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Ajustar el padding del navbar */
    .navbar {
        padding: 1rem 3rem;
    }

    /* Ajustar el botón de donación */
    .donate-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .more-projects {
        top: 7rem;
    }
}


@media (max-width: 1200px) {
    .navbar .logo img {
        width: 250px;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .navbar .logo img {
        width: 220px;
        margin-left: 20px;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar .logo img {
        width: 180px;
        margin-left: 10px;
    }

    .nav-controls {
        gap: 1rem;
    }

    .donate-button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .hero-content {
        bottom: 15%;
        left: 5%;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.4rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .navbar .logo img {
        width: 150px;
        margin-left: 5px;
    }

    .nav-button svg {
        width: 20px;
        height: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 0.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        letter-spacing: 0.1rem;
    }
}

@media (max-width: 375px) {
    .navbar .logo img {
        width: 130px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .donate-button {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}





h1 {
    font-family: 'GALISCKA', Arial, sans-serif;
    font-size: 2.8rem!important;
}

/* Mejora de responsividad para dispositivos móviles */
@media (max-width: 480px) {
    /* Ajustes del Hero */
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.1rem;
        word-spacing: 0.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }
    
    /* Ajustes de la sección About */
    .about-container {
        flex-direction: column;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-text.highlight {
        font-size: 1.1rem;
    }
    
    .history-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Ajustes sección Impact */
    .impact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Ajustes sección Projects */
    .projects-container .section-title2 {
        font-size: 3rem;
        margin-left: 0;
        font-weight: 600;
        text-align: center;
    }
    
    /* Ajustes sección Help */
    .help-section .section-title {
        font-size: 2.2rem;
    }
    
    .help-card {
        height: 450px;
        min-height: 350px;
    }
    
    /* Ajustes Testimonials/Blogs */
    .testimonial-card {
        flex-direction: column;
    }
    
    .testimonial-image {
        width: 100%;
        height: 180px;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    /* Ajustes Gallery */
    .gallery-container h2 {
        font-size: 1.5rem;
    }
    
    /* Ajustes Footer */
    .footer-logo img {
        height: 30px;
    }
    
    .footer-nav {
        gap: 1rem;
    }
    
    .footer-certifications img {
        height: 40px;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 320px) {
    .navbar .logo img {
        width: 120px;
    }
    
    .donate-button {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .nav-button svg {
        width: 18px;
        height: 18px;
    }
    
    .help-card {
        height: 450px;

        min-height: 300px;
    }
}

/* Solución al problema del menú lateral en móviles */
@media (max-width: 480px) {
    .side-menu {
        width: 100%;
    }
    
    .container-menu {
        flex-direction: column;
    }
    
    .menu-nav {
        padding: 1rem;
    }
    
    .menu-items a {
        font-size: 1rem;
    }
    
    .menu-footer {
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mejora del navbar scrolled en móviles */
@media (max-width: 480px) {
    .navbar.scrolled {
        padding: 0.5rem 1rem;
    }
    
    .navbar.scrolled .logo img {
        width: 120px;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
}

/* Mejora de las tarjetas flip en móviles */
@media (max-width: 480px) {
    .card-front, .card-back {
        padding: 2rem 1rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .help-card h3 {
        font-size: 1.5rem;
    }
    
    .action-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .type-item span, 
    .volunteer-list li,
    .partnership-options span {
        font-size: 0.9rem;
    }
}

/* Mejoras específicas para la sección About en móviles */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .about-container img {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text.highlight {
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--secondary-blue);
        border-bottom: 4px solid var(--secondary-blue);
        padding: 1.5rem 0;
        margin: 2rem 0;
    }
    
    .history-button {
        margin: 2rem auto;
        display: block;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-container {
        padding: 0 1rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-text.highlight {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .history-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
}

/* Modal Informativo */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    color: white;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-header {
    background: var(--primary-blue);
    padding: 2rem;
    color: white;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.modal-button svg {
    transition: transform 0.3s ease;
}

.modal-button:hover svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.2rem;
    }
    
    .modal-body img {
        height: 160px;
    }
}

/* Estilos para la sección de contenido dinámico */
.dynamic-content-section {
    padding: 4rem 2rem;
    background-color: var(--light-gray);
    position: relative;
}

.dynamic-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.dynamic-btn {
    padding: 0.8rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.dynamic-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.dynamic-btn.active {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.dynamic-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}
.container-cta{
    width: 100%;
    display: flex;
    justify-content: center;

}
.content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
    pointer-events: none;
}

.content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    pointer-events: all;
}

.content-item h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenges-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.challenge-item {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.challenge-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.challenge-item h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.challenge-description {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.challenge-item:hover .challenge-description {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-120%);
}

.challenge-item:hover img {
    transform: scale(1.05);
}

/* Estilo para el botón CTA */
.discover-more {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.discover-more:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 1rem;
    }

    .challenge-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .challenge-description {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 1rem;
        background: var(--secondary-blue);
    }

    .challenge-item:hover .challenge-description {
        transform: none;
    }

    .challenge-item:hover img {
        transform: none;
    }

    .content-item h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .challenges-description {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .container-cta {
        padding: 0 1rem;
        margin-top: 3rem;
    }

    .discover-more {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}
@media screen and (max-width: 500px) {
    .info-modal{
        display: none;
    }
}

@media (max-width: 480px) {
    .content-item h2 {
        font-size: 1.8rem;
    }

    .challenge-item img {
        width: 180px;
        height: 180px;
    }

    .challenge-item h3 {
        font-size: 1.2rem;
    }

    .challenge-description {
        font-size: 0.9rem;
        padding: 1.2rem;
    }

    .challenges-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .discover-more {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .content-item h2 {
        font-size: 1.6rem;
    }

    .challenge-item img {
        width: 150px;
        height: 150px;
    }

    .challenge-description {
        padding: 1rem;
    }
}

/* Estilos para la sección de Visión Transformadora */
.vision-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.vision-content h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.vision-section {
    margin-bottom: 3rem;
}

.vision-section h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.vision-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.valores-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.valores-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.valores-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.ods-images {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.ods-images img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .vision-content h2 {
        font-size: 2rem;
    }

    .vision-section h3 {
        font-size: 1.5rem;
    }

    .vision-section p,
    .valores-list li {
        font-size: 1rem;
    }

    .ods-images {
        justify-content: center;
    }

    .ods-images img {
        width: 60px;
        height: 60px;
    }

    .impact-stats{
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .vision-content h2 {
        font-size: 1.8rem;
    }

    .vision-section h3 {
        font-size: 1.3rem;
    }

    .ods-images img {
        width: 50px;
        height: 50px;
    }
}

/* Estilos para la sección de Aliados */
.aliados-content {

    margin: 0 auto;
    padding: 2rem;
}

.aliados-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.aliado-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aliado-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.aliado-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.aliado-item:hover img {
    filter: grayscale(0%);
}

.aliados-descripcion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 1200px) {
    .aliados-content {
        min-width: 100%;
        padding: 1rem;
        overflow-x: auto;
    }
    
    .aliados-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .aliados-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .aliados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .aliados-descripcion {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Ajustes para el contenido dinámico de ayuda */
.content-item[data-content="4"] .help-grid {
    margin-top: 3rem;
}

.content-item[data-content="4"] .help-card {

    width: 100%;
    height: 400px;

}

@media (max-width: 768px) {
    .content-item[data-content="4"] .help-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .content-item[data-content="4"] .help-card {
        height: 450px;

        max-width: 400px;
        margin: 0 auto;
    }
}

/* Nueva sección de noticias modernas */
.modern-news-section {
    background-color: var(--light-blue);
    padding: 4rem 0;
}

.modern-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modern-news-container h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

.modern-news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Estilos para la noticia principal */
.modern-news-featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-news-featured:hover {
    transform: translateY(-5px);
}

.modern-news-featured .modern-news-image {
    width: 100%;
    height: 500px;
}

.modern-news-featured .modern-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-news-featured .modern-news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-news-featured h3 {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--primary-blue);
    line-height: 1.3;
}

.modern-news-featured p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 1rem 0;
    flex-grow: 1;
}

.modern-news-featured .modern-read-more {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Estilos para las noticias secundarias */
.modern-news-secondary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modern-news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.modern-news-card:hover {
    transform: translateY(-5px);
}

.modern-news-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
}

.modern-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-news-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.modern-news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modern-news-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--primary-blue);
}

.modern-news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modern-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

.modern-read-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.modern-news-card:hover .modern-read-more svg {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .modern-news-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-news-featured .modern-news-image {
        height: 400px;
    }

    .modern-news-featured h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .modern-news-card {
        flex-direction: column;
    }
    
    .modern-news-image {
        width: 100%;
        height: 200px;
    }
    
    .modern-news-content {
        padding: 1.5rem;
    }
    
    .modern-news-featured .modern-news-image {
        height: 300px;
    }

    .modern-news-featured h3 {
        font-size: 1.6rem;
    }

    .modern-news-featured p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dynamic-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    
    .dynamic-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .dynamic-content-section {
        padding: 2.5rem 1rem;
    }
    
    .dynamic-buttons {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .dynamic-btn {
        max-width: 250px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
} 


@media screen and (max-width: 400px) {
    .donate-button{
        font-size: 0.5rem;
    }
}