/* =========================
   BASE
========================= */

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   HERO
========================= */

.hero-banner {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    position: relative;
}

.hero-banner img {
    max-height: 100%;
    object-fit: contain;
}

.social-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 22px;
    height: 22px;
    transition: 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* =========================
   CARRUSEL
========================= */

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    background: #000; /* evita “flash blanco” */
}

.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.carousel img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* =========================
   TEAM
========================= */

.our-team {
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-member {
    flex: 1 1 150px;
    max-width: 200px;
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
   PODCASTS
========================= */

.podcasts {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast-list article {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
}

/* VIDEO RESPONSIVE */

.video-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* =========================
   RESPONSIVE (SOLO MÓVIL)
========================= */

@media (max-width: 768px) {

    .hero-banner {
      height: auto;
      min-height: 90px;
      padding: 15px 10px;
    }

    .hero-banner img {
        max-height: 80px;
        width: auto;
    }

    .social-icons {
        position: absolute;
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .social-icons img {
        width: 18px;
        height: 18px;
        opacity: 0.9;
    }

    .carousel {
        height: 250px;
    }

    .carousel img {
        height: 250px;
    }

    .team-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .team-member {
        flex: 0 0 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-member img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
    }

.team-member:nth-last-child(2):nth-child(3n+1),
.team-member:nth-last-child(1):nth-child(3n+1) {
    grid-column: span 1;
}

    .team-member h3 {
        font-size: 0.75rem;
    }

    .team-member p {
        font-size: 0.65rem;
    }
    
    .our-team {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}