/* --- ESTILOS GENERALES Y RESEOS BÁSICOS --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* --- ESTILOS PARA LA BARRA DE NAVEGACIÓN (HEADER) --- */
.main-header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
}

.nav-logo .logo-placeholder {
    font-weight: bold;
    color: #333;
}

.nav-logo img {
    height: 40px;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

    .nav-menu a {
        text-decoration: none;
        color: #000;
        font-weight: bold;
        font-size: 16px;
    }

.nav-button {
    text-decoration: none;
    background-color: #000;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .nav-button:hover {
        background-color: #333;
    }

/* --- SECCIÓN DEL CARRUSEL --- */
.carousel-container {
    max-width: 1300px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-height: 550px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
}

/* --- IMÁGENES DE FONDO PARA CADA SLIDE --- */
/* Reemplaza estas URLs con las rutas a tus imágenes */
#slide-1 {
    background-image: url('img1Carrusel.png');
}

#slide-2 {
    background-image: url('img2Carrusel.png');
}

#slide-3 {
    background-image: url('img3Carrusel.png');
}

#slide-4 {
    background-image: url('img4Carrusel.png');
}

#slide-5 {
    background-image: url('img5Carrusel.png');
}

#slide-6 {
    background-image: url('img6Carrusel.png');
}

/* --- CONTENIDO DE TEXTO DE CADA SLIDE --- */
.slide-content {
    color: white;
    max-width: 45%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

    .slide-content .pre-title {
        font-weight: bold;
        display: block;
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .slide-content h2 {
        font-size: 2.8rem;
        margin-top: 0;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

.cta-button {
    background-color: white;
    color: black;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .cta-button:hover {
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
    }

/* --- ESTILOS PARA LOS PUNTOS DE NAVEGACIÓN --- */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .dot.active {
        background-color: white;
    }

/* --- SECCIÓN "¿QUÉ HAY DE NUEVO?" --- */
.whats-new-section {
    width: 100%;
    background-color: #f7f7f7; /* Un fondo gris muy claro */
    text-align: center; /* Centra el texto */
    padding: 60px 20px; /* Espaciado interno (arriba/abajo - izquierda/derecha) */
    box-sizing: border-box;
}

.whats-new-section h2 {
    font-size: 2.5rem; /* Tamaño grande para el texto */
    color: #333; /* Color de texto gris oscuro */
    margin: 0; /* Quita cualquier margen extra */
}

/* --- ESTILOS PARA LAS TARJETAS DE NOTICIAS --- */

/* Contenedor de la rejilla de tarjetas */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Crea dos columnas de igual tamaño */
    gap: 30px; /* Espacio entre las tarjetas */
    max-width: 1300px; /* Mismo ancho que el carrusel */
    margin: 40px auto 0; /* Espacio arriba y centrado */
}

/* Estilo de cada tarjeta individual */
.news-card {
    background-color: #fff; /* Fondo blanco para el área de texto */
    text-align: left; /* Alinea el texto a la izquierda */
}

/* Contenedor de la imagen (placeholder) */
.card-image {
    height: 350px; /* Altura de la imagen */
    background-size: cover;
    background-position: center;
}

/* --- ¡AQUÍ COLOCAS TUS IMÁGENES! --- */
#news-image-1 {
    background-image: url('imgSobrevivealcalor.png');
}

#news-image-2 {
    background-image: url('imgSantaClara.png');
}


/* Área del contenido de texto */
.card-content {
    padding: 30px;
}

    .card-content h3 {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 15px;
        color: #000;
    }

    .card-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: #555; /* Un gris un poco más suave */
        margin-bottom: 25px;
    }

.card-link {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* --- DISEÑO RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr; /* Las tarjetas se apilan una sobre otra */
    }
}

/* --- SECCIÓN EXPERIENCIAS --- */
.experience-section {
    background-color: #fff; /* Fondo blanco para esta sección */
    padding: 80px 20px;
    text-align: center;
}

    .experience-section h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 40px;
    }

/* La tarjeta principal que contiene todo */
.experience-card {
    display: flex; /* Pone el texto y la imagen uno al lado del otro */
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px; /* Bordes redondeados */
    overflow: hidden; /* Oculta lo que se salga de los bordes redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Columna izquierda del texto */
.experience-content {
    background-color: #fff;
    padding: 60px;
    width: 40%; /* Ocupa el 40% del ancho de la tarjeta */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}

    .experience-content h3 {
        font-size: 2rem;
        margin: 0 0 10px 0;
    }

    .experience-content p {
        font-size: 1.1rem;
        color: #555;
        margin: 0 0 30px 0;
    }

/* Botón "Descúbrelo" */
.experience-button {
    text-decoration: none;
    color: #000;
    border: 2px solid #ccc;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    align-self: flex-start; /* Se alinea a la izquierda de su contenedor */
    transition: all 0.3s ease;
}

    .experience-button:hover {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }

/* Columna derecha de la imagen */
.experience-image {
    width: 60%; /* Ocupa el 60% restante */
    background-size: cover;
    background-position: center;
    /* --- ¡AQUÍ COLOCAS TU IMAGEN! --- */
    background-image: url('imgCokeStudio.png');
}


/* --- DISEÑO RESPONSIVO PARA MÓVILES --- */
@media (max-width: 900px) {
    .experience-card {
        flex-direction: column; /* Apila la imagen debajo del texto */
    }

    .experience-content,
    .experience-image {
        width: 100%; /* Ambas columnas ocupan el 100% del ancho */
    }

    .experience-image {
        min-height: 300px; /* Le damos una altura mínima a la imagen en móvil */
    }
}

/* --- SECCIÓN QUIENES SOMOS --- */
.who-we-are-section {
    background-color: #f7f7f7; /* Fondo gris claro */
    padding: 80px 20px;
    text-align: center;
}

    .who-we-are-section h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

/* Contenedor principal del carrusel de tarjetas */
.card-carousel-container {
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden; /* Oculta las tarjetas que se salen */
}

/* Pista que contiene y mueve todas las tarjetas */
.carousel-track {
    display: flex;
    gap: 30px; /* Espacio entre tarjetas */
    transition: transform 0.5s ease-in-out;
}

/* Estilo de cada tarjeta individual */
.topic-card {
    /* Cada tarjeta ocupa un tercio del espacio, restando el gap */
    flex: 0 0 calc(100% / 3 - 20px);
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden; /* Para que la imagen respete los bordes redondeados */
    text-align: left;
}

/* Espacio para la imagen */
.topic-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

/* --- ¡AQUÍ COLOCAS TUS IMÁGENES! --- */
#topic-image-1 {
    background-image: url('img1Carrusel2.png');
}

#topic-image-2 {
    background-image: url('img2Carrusel2.png');
}

#topic-image-3 {
    background-image: url('img3Carrusel2.png');
}

#topic-image-4 {
    background-image: url('img4Carrusel2.png');
}

#topic-image-5 {
    background-image: url('img5Carrusel2.png');
}


/* Contenido de texto de la tarjeta */
.topic-card-content {
    padding: 25px;
}

    .topic-card-content h3 {
        font-size: 1.5rem;
        margin: 0 0 15px 0;
    }

/* Puntos de navegación (usamos una clase nueva para no interferir con el otro carrusel) */
.carousel-dots-alt {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot-alt {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #aaa;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot-alt.active {
        background-color: #333;
        border-color: #333;
    }

/* Responsividad para móviles */
@media (max-width: 900px) {
    .topic-card {
        /* En pantallas más pequeñas, cada tarjeta ocupa más espacio */
        flex: 0 0 calc(100% / 2 - 15px);
    }
}

@media (max-width: 600px) {
    .topic-card {
        /* En móviles, cada tarjeta ocupa casi todo el ancho */
        flex: 0 0 80%;
    }
}

/* --- SECCIÓN IMPACTO --- */
.impact-section {
    background-color: #f7f7f7; /* Fondo gris claro */
    padding: 80px 20px;
    text-align: center;
}

    .impact-section h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 40px;
    }

/* La tarjeta principal que contiene todo */
.impact-card {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Columna izquierda del texto */
.impact-content {
    background-color: #fff;
    padding: 60px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}

    .impact-content h3 {
        font-size: 2rem;
        margin: 0 0 10px 0;
    }

    .impact-content p {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.6;
        margin: 0 0 30px 0;
    }

/* Botón "Ver más" */
.impact-button {
    text-decoration: none;
    color: #000;
    border: 2px solid #ccc;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    align-self: flex-start;
    transition: all 0.3s ease;
}

    .impact-button:hover {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }

/* Columna derecha de la imagen */
.impact-image {
    width: 60%;
    background-size: cover;
    background-position: center;
    /* --- ¡AQUÍ COLOCAS TU IMAGEN! --- */
    background-image: url('imgFundacion.png');
}


/* --- DISEÑO RESPONSIVO PARA MÓVILES --- */
@media (max-width: 900px) {
    .impact-card {
        flex-direction: column;
    }

    .impact-content,
    .impact-image {
        width: 100%;
    }

    .impact-image {
        min-height: 300px;
    }
}

/* --- SECCIÓN MARCAS --- */
.brands-section {
    background-color: #f7f7f7; /* Fondo gris claro */
    padding: 80px 20px;
    text-align: center;
}

    .brands-section h2 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 40px;
    }

/* Contenedor de las tarjetas de logos */
.brands-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre tarjetas */
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten en pantallas pequeñas */
    margin-bottom: 50px;
}

/* Estilo de cada tarjeta */
.brand-card {
    background-color: #fff;
    width: 300px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Sombra muy sutil */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

    .brand-card img {
        max-width: 100%;
        max-height: 100px;
    }

/* Botón "Ver más" */
.brands-button {
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border: 2px solid #ccc;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .brands-button:hover {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }

/* --- ESTILOS DEL FOOTER --- */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Fila superior */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
}

.location-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fff;
    border-radius: 50px;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

    .location-button:hover {
        background-color: #fff;
        color: #000;
    }

.footer-divider {
    border: 0;
    height: 1px;
    background-color: #444;
    margin: 20px 0;
}

/* Fila media */
.footer-main {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-column ul li {
        margin-bottom: 15px;
    }

.footer-column a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

    .footer-column a:hover {
        text-decoration: underline;
    }

/* Íconos de redes sociales */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: #fff;
        color: #000;
    }

/* Fila inferior */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

    .footer-bottom p {
        font-size: 0.9rem;
        color: #aaa;
        margin: 0;
    }

/* --- RESPONSIVIDAD DEL FOOTER --- */
@media (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

.my-element {
    display: inline-block;
    margin: 0 0.5rem;
    animation: bounce; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 2s; /* don't forget to set a duration! */
}
