/* =====================================================
   ESTILOS GENERALES
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fff;
}

/* =====================================================
   BANNER / HEADER
===================================================== */
/* -------------------- HEADER (banner igual que los demás) -------------------- */
.header {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('../img/banner-videos.jpg') no-repeat center calc(50% - 270px);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Capa verde transparente encima del fondo */
.header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 160, 122, 0.5);
}

/* Contenedor centrado */
.title-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rectángulo que resalta el título */
.rect-box {
  background-color: rgba(90, 160, 122, 0.75); /* Verde más transparente */
  padding: 10px 40px; /* Más bajo (menos altura) */
  border-radius: 40px;
}


/* Texto del título */
.title-text-1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}




/* =====================================================
   SECCIÓN PRINCIPAL DE PODCASTS
===================================================== */
.general-content {
    width: 100%;
    padding: 50px 8%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #fff;
}

/* Tarjetas individuales */
.podcast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #1DD3B0;
    border-radius: 10px;
    width: 400px;
    padding: 25px 15px 20px;
    margin: 20px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Ícono de micrófono */
.mic-icon {
    position: absolute;
    top: -20px;
    right: 20px;
    background-color: #fff;
    border: 2px solid #1DD3B0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mic-icon i {
    font-size: 20px;
    color: #000;
}

/* Texto del podcast */
.podcast-item h3 {
    color: #E63E3E;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Reproductor de audio */
audio {
    width: 100%;
    outline: none;
    accent-color: #1DD3B0;
}
/* -------------------- MODAL DE AUDIO -------------------- */
.audio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.audio-modal audio {
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.audio-modal .close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.audio-modal .close-btn:hover {
    transform: scale(1.1);
    color: #ff5757;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media only screen and (max-width: 900px) {
    .general-content {
        flex-direction: column;
        align-items: center;
        padding: 40px 5%;
    }

    .podcast-item {
        width: 90%;
        margin: 15px 0;
    }
}

@media only screen and (max-width: 640px) {
    .header {
        background: url('../img/banner-videos.jpg');
        background-size: cover;
    }

    .title-text-1 {
        font-size: 40px;
    }
}
