/* Estilos generales */

:root {
    --yellow: #f7b835;
    --yellowHover:#FFD700;
    --brown: #473108;
    --brownLight: #4A4A4A;
    --brownPatel:#e8e0d4;
    --red:#E91E63;
    --redHover:#C2185B;
    --white:#ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.eapps-instagram-feed-posts-item-overlay{
    width: 250px;
    height: auto;
}


body {
    color: var(--brown);
    line-height: 1.6;
}

/* Estilos del encabezado */
/* Estilos del header */
/* Estilos del Header (Fijo con efecto de opacidad) */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(247, 184, 53, 1); /* Transparente al inicio */
    padding: 1rem;
    transition: background 0.3s ease-in-out, opacity 0.3s;
    z-index: 1000;
}


/* Ajuste en la sección Hero para que no tape el menú */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* background: url('../img/home.png'); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    z-index: 10; /* Menor que el header */
}

/* Capa de opacidad */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.2); /* Oscurece la imagen */
}

/* Texto en el centro */
.hero-text {
    position: relative;
    z-index: 1;
    max-width: 80%;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color:var(--white);
}

/* Sobre nosotros */
/* Sobre nosotros */
.sobre-nosotros {
    text-align: center;
    padding: 2rem;
}

/* Contenedor principal */
.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Carrusel Swiper */
.swiper-container {
    width: 100%;
    max-width: 450px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Texto */
.sobre-nosotros-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--brown);
}

.sobre-nosotros-text p {
    font-size: 16px;
    margin: 1rem 0;
    color: var(--brownLight);
}

/* Botón CTA */
.ctas {
    display: inline-block;
    background: var(--yellow); /* Rosado vibrante */
    color: var(--brown);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

.ctas:hover {
    background-color: var(--redHover);
}
/* Secciones generales */
section {
    padding: 2rem;
    text-align: center;
}


/* Aliados */
/* Estilos base (Mobile First) */
.aliados {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.aliados h2 {
    font-size: 24px;
    color: var(--brown);
    margin-bottom: 10px;
}

.aliados p {
    font-size: 16px;
    color: var(--brownLight);
    margin-bottom: 20px;
}

.logos-aliados {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.logos-aliados img {
    width: 80px; /* Tamaño base para móviles */
    height: 80px; /* Altura fija para mantener consistencia */
    object-fit: contain; /* Asegura que la imagen no se estire */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logos-aliados img:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Noticias */
/* Sección Noticias */
.news {
    padding: 50px 20px;

    text-align: center;
}

.news h2 {
    /* font-size: 2rem; */
    color: var(--brown); /* Color principal */
    margin-bottom: 20px;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjetas de Noticias */
.news-card {
    background: #F8F9FA;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    text-align: left;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--brown);
    margin-bottom: 10px;
}

.news-content p {
    font-size: 1rem;
    color: #4A4A4A;
    margin-bottom: 15px;
}

.btn-news {
    display: inline-block;
    background: var(--yellow);
    color: var(--brown);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-news:hover {
    background: #FFD700;
}

/* ctas */
.cta {
    width: 100vw; /* Ocupa todo el ancho de la pantalla */
    min-height: 300px; /* Altura mínima para móviles */
    background: var(--brownPatel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--brown);
    padding: 20px;
}

/* .cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.5); /* Capa para mejorar visibilidad del texto */
/* }  */

.cta h2, .cta p, .cta a {
    position: relative;
    z-index: 2; /* Para que el contenido esté sobre la capa oscura */
}

.cta h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color:var(--brown);
}

.cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 90%;
    color:var(--brownLight);
}

.cta .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color:var(--yellow);; /* Color amarillo mostaza */
    color: var(--brown);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta .cta-btn:hover {
    background-color: #FFC107;
}

.cta .cta-btn i {
    font-size: 1.2rem;
}


/* Responsive Design */
@media (min-width: 768px) {
 
    .sobre-nosotros {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .contenido {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 3rem;
        max-width: 1100px;
        margin: auto;
    }

    .swiper-container {
        width: 50%;
        max-width: 500px;
        height: 300px;
    }

    .sobre-nosotros-text {
        width: 45%;
        text-align: left;
    }

   

    .hero{
        height: 700px;
        background-position-y:10%;
        /* object-fit: cover; */
    }

    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    /* Aliados */
    .aliados h2 {
        font-size: 28px;
    }

    .aliados p {
        font-size: 18px;
    }

    .logos-aliados img {
        width: 100px; /* Tamaño más grande para tablets */
    }

    .news-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-container .news-card{
        flex: 1 1 calc(30% - 10px); /* 33.33% del ancho del contenedor menos el espacio entre cajas */
        max-width: calc(30% - 10px); /* Asegura que no crezcan más de 1/3 del contenedor */
    }
    /* cta */
    /* cta */
    /* cta */
    .cta {
        min-height: 300px; /* Mayor altura en pantallas más grandes */
    }
    .cta h2 {
        font-size: 2rem;
    }
    .cta p {
        font-size: 1.2rem;
        max-width: 80%;
    }
    .cta .cta-btn {
        font-size: 1.2rem;
        padding: 12px 24px;
    }


}

/* Estilos para desktop */
@media (min-width: 1024px) {
    .aliados {
        padding: 40px;
    }

    .aliados h2 {
        font-size: 32px;
    }

    .aliados p {
        font-size: 20px;
    }

    .logos-aliados img {
        width: 120px; /* Tamaño más grande para desktop */
    }

    
}
