/*
 Theme Name:   Divi RMH Child
 Theme URI:    https://radiomunicipalhumahuaca.net.ar
 Description:  Child theme de Divi para Radio Municipal Humahuaca
 Author:        Radio Municipal Humahuaca
 Author URI:   https://radiomunicipalhumahuaca.net.ar
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-rmh-child
*/

/* =========================================================
   ESTILOS GENERALES DEL SITIO
   ========================================================= */

body {
    font-family: 'Andika', Helvetica, Arial, Lucida, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Belgrano', Georgia, "Times New Roman", serif;
}

/* =========================================================
   ESPACIOS PUBLICITARIOS
   ========================================================= */

.rmh-ad-slot {
    display: block;
    width: 100%;
    margin: 10px auto;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.rmh-ad-slot img,
.rmh-ad-slot video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.rmh-ad-slot video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

/* Etiqueta "Publicidad" */
.rmh-ad-slot::before {
    content: "Publicidad";
    display: block;
    font-size: 10px;
    color: #999;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Tamaños predefinidos */
.rmh-ad-slot.rmh-ad-banner   { max-width: 728px; }
.rmh-ad-slot.rmh-ad-medium   { max-width: 300px; }
.rmh-ad-slot.rmh-ad-large    { max-width: 970px; }
.rmh-ad-slot.rmh-ad-fullwidth { max-width: 100%; }
.rmh-ad-slot.rmh-ad-square   { max-width: 320px; max-height: 320px; }

/* Fila de publicidades en grilla */
.rmh-ad-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
}

.rmh-ad-row .rmh-ad-slot {
    flex: 1 1 280px;
}

/* =========================================================
   REPRODUCTOR DE AUDIO
   ========================================================= */

#stream {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    display: block;
}

/* =========================================================
   TABLA DE PROGRAMACIÓN
   ========================================================= */

.rmh-programacion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.rmh-programacion-table th {
    background-color: #2ea3f2;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}

.rmh-programacion-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #e5e5e5;
}

.rmh-programacion-table tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.rmh-programacion-table a {
    color: #2ea3f2;
    text-decoration: none;
}

.rmh-programacion-table a:hover {
    text-decoration: underline;
}

/* =========================================================
   PANEL DE ADMINISTRACIÓN - ESPACIOS PUBLICITARIOS
   ========================================================= */

.rmh-ads-admin-wrap .ad-slot-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.rmh-ads-admin-wrap .ad-slot-card h3 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 14px;
    color: #1d2327;
}

.rmh-ads-admin-wrap .ad-slot-card .ad-preview {
    max-width: 320px;
    max-height: 200px;
    overflow: hidden;
    border: 1px dashed #ccc;
    padding: 4px;
    margin-top: 8px;
}

.rmh-ads-admin-wrap .ad-slot-card .ad-preview img,
.rmh-ads-admin-wrap .ad-slot-card .ad-preview video {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.qlwapp-toggle {
    background-color: #25D366 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .rmh-ad-row {
        flex-direction: column;
        align-items: center;
    }

    .rmh-ad-row .rmh-ad-slot {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #stream {
        width: 95%;
    }
}
