/* --- ESTILOS ESPECÍFICOS PARA EL MÓDULO DE MEDIOS --- */
.main-content {
    padding: 24px 5% 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    width: 100%;
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 0px;
}

.search-input {
    width: 280px;
    padding: 11px 16px;
    background: #161616;
    border: 1px solid #262626;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Tarjetas de Medios */
.medios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.medio-card {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.medio-card:hover {
    border-color: #059669;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #262626;
    background: #0f0f11;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.medio-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.medio-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.desc-extracto {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.medio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 15px;
    margin-bottom: 12px;
}

.btn-read {
    background-color: rgba(5, 150, 105, 0.15);
    color: #34d399;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-read:hover {
    background-color: #059669;
    color: #ffffff;
}

/* Modal Estilos */
.comunidad-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.comunidad-modal-container {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 20px;
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    padding: 30px;
    color: #e4e4e7;
}

.btn-close-red-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 30;
}

.btn-close-red-modal:hover {
    background-color: #dc2626;
    color: #ffffff;
}

audio {
    width: 100%;
    height: 36px;
    margin-top: 6px;
    border-radius: 8px;
    outline: none;
}
audio::-webkit-media-controls-panel {
    background-color: #1f1f23;
}