@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');
/* ==========================================================================
   DIPUTADOS MEDIOS - ESTILOS GENERALES
   Cámara de Diputados de Entre Ríos
   ========================================================================== */

/* PALETA INSTITUCIONAL */
:root {
    --verde-base: #8BA75D;
    --verde-oscuro: #7E9531;
    --verde-claro: #ABC360;
    --gris-institucional: #5D5E5D;
    --gris-oscuro: #2C2D2C;
    --negro: #1A1A1A;
    --fondo-pagina: #FAFAFA;
    --blanco: #FFFFFF;
    --borde: #E2E8F0;

    /* FUENTES TIPOGRÁFICAS */
    --fuente-base: "Open Sans", Arial, sans-serif;
    --fuente-titulos: 'PT Sans Narrow', sans-serif;
}

/* ==========================================================================
   1. REINICIO Y ESTRUCTURA GENERAL
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fuente-base);
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--fondo-pagina);
    color: var(--negro);
    overflow-wrap: break-word;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    font: 300 18px/1.4 var(--fuente-base);
}

p {
    line-height: 1.6;
}

img,
iframe,
video {
    max-width: 100%;
}

img {
    height: auto;
}

input,
textarea,
select,
button {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   2. CABECERA INSTITUCIONAL
   ========================================================================== */

.main-header {
    width: 100%;
    padding: 10px 0;
    background: var(--blanco);
    border-bottom: 1px solid #292929;
}

.header-flex {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.header-left {
    z-index: 2;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-medios {
    display: block;
    width: auto;
    height: 70px;
    object-fit: contain;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 240px);
    text-align: center;
}

.header-subtitle {
    display: block;
    margin-bottom: 6px;
    color: var(--verde-claro);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--fuente-titulos);
}

.header-title {
    color: var(--gris-oscuro);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    font-family: var(--fuente-titulos);
    text-transform: uppercase;
}

.header-right-spacer {
    width: 85px;
    flex-shrink: 0;
}

/* ==========================================================================
   3. NAVEGACIÓN
   ========================================================================== */

.main-nav {
    width: 100%;
    background: #5D5E5D;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: none;
    padding: 0 3%;
    min-height: 60px;
}

.nav-links {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex: 1;
    list-style: none;
    gap: 0;
    height: 60px;
    min-width: 0;
}

.nav-links li {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0;
}

.nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 14px;
    white-space: nowrap;
    color: #FFFFFF;
    text-decoration: none;
    background: transparent;
    font-family: var(--fuente-titulos);
    font-size: 1.2em;
    font-weight: 400;
    text-transform: uppercase;
}

.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
    color: #FFFFFF;
    text-decoration: none;
}

.nav-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ABC360;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    background: transparent;
    color: white;
}

/* ==========================================================================
   4. BUSCADOR
   ========================================================================== */

.search-form {
    display: flex;
    flex-shrink: 0;
    width: auto;
    margin-left: 8px;
}

.search-input {
    width: 190px;
    min-width: 0;
    padding: 9px 12px;
    color: #222222;
    background: #FFFFFF;
    border: 1px solid #444444;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
    font-family: var(--fuente-base);
}

.search-input:focus {
    border-color: var(--verde-claro);
}

.search-button {
    flex-shrink: 0;
    padding: 9px 14px;
    color: #FFFFFF;
    background: #7E9531;
    border: 1px solid var(--verde-oscuro);
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--fuente-titulos);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    color: #111111;
    background: var(--verde-claro);
    border-color: var(--verde-claro);
}

/* ==========================================================================
   5. CONTENIDO PRINCIPAL
   ========================================================================== */

.main-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
}

.news-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--verde-base);
}

.section-header h2 {
    color: var(--negro);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.4;
    font-family: var(--fuente-titulos);
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.news-card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid var(--borde);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 210px;
    height: 135px;
    overflow: hidden;
    background: #F8FAFC;
    border-radius: 8px;
}

.news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #1C1C1C;
    font-size: 13px;
    line-height: 1.5;
}

.icon-calendar-img {
    width: 14px;
    height: auto;
    flex-shrink: 0;
}

.icon-yt-img,
.icon-spt-img {
    width: 20px;
    height: auto;
    flex-shrink: 0;
}

.news-title {
    margin-bottom: 6px;
    color: var(--negro);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    font-family: var(--fuente-titulos);
    text-transform: uppercase;
}

.news-excerpt {
    margin-bottom: 12px;
    color: #1C1C1C;
    font-size: 14px;
    line-height: 1.6;
}

.news-footer {
    padding-top: 8px;
    border-top: 1px solid #F1F5F9;
    text-align: right;
}

.btn-read-more {
    color: var(--verde-oscuro);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   6. COLUMNA LATERAL Y TARJETAS MULTIMEDIA
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.media-card {
    min-width: 0;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid var(--borde);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.media-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.media-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.media-card-header h3 {
    color: var(--negro);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
}

.icon-radio-card {
    display: block;
    width: auto;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* ==========================================================================
   INDICADOR EN VIVO (LIVE DOT ANIMADO - VERDE INSTITUCIONAL)
   ========================================================================== */

.live-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    background-color: #8BA75D; /* Verde base institucional */
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    /* Animación de parpadeo suave */
    animation: pulse-live 1.8s infinite ease-in-out;
}

/* Efecto de resplandor / onda expansiva en tonos verdes */
.live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 167, 93, 0.5); /* Verde institucional translúcido */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-expand 1.8s infinite ease-out;
}

/* Keyframes para la luz que titila */
@keyframes pulse-live {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Keyframes para el aro de resplandor que se expande */
@keyframes ring-expand {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 280%;
        height: 280%;
        opacity: 0;
    }
}

.radio-card-body {
    padding: 4px 0;
}

.radio-player-card {
    display: block;
    width: 100%;
    height: 32px;
}

.icon-media {
    width: 20px;
    height: 20px;
    fill: var(--gris-institucional);
    flex-shrink: 0;
}

.media-link {
    flex-shrink: 0;
    color: var(--gris-institucional);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.media-link:hover {
    text-decoration: underline;
}

.spotify-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 152px;
    border: 0;
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000000;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   7. PÁGINA DE CONTACTO
   ========================================================================== */

.contact-page {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    background: var(--fondo-pagina);
    color: var(--gris-oscuro);
}

.contact-page .contact-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 16px 48px;
    flex: 1;
}

.contact-page .contact-section,
.contact-page .contact-content {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.contact-page .contact-title,
.contact-page .contact-content > h1 {
    margin: 0 0 24px;
    padding: 0;
    color: var(--gris-oscuro);
    font-family: var(--fuente-titulos);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
}

.contact-page .contact-title span,
.contact-page .contact-content .color {
    color: var(--verde-oscuro);
}

.contact-page .contact-form-card,
.contact-page .bg-form {
    width: 100%;
    min-width: 0;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-page #formulario,
.contact-page .contact-form-card #formulario {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.contact-page .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.contact-page .control-label {
    display: block;
    margin-bottom: 7px;
    padding: 0;
    color: var(--gris-oscuro);
    font-family: var(--fuente-base);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.contact-page .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 11px 13px;
    color: var(--gris-oscuro);
    background: #FFFFFF;
    border: 1px solid #D5D8D1;
    border-radius: 5px;
    font-family: var(--fuente-base);
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .form-control:focus {
    outline: none;
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(126, 149, 49, 0.14);
}

.contact-page textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-page .btn-group {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
}

.contact-page .btn {
    min-height: 42px;
    padding: 10px 22px;
    border: 1px solid var(--verde-oscuro);
    border-radius: 5px;
    font-family: var(--fuente-titulos);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-page .btn-send {
    color: #FFFFFF;
    background: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
}

.contact-page .btn-send:hover {
    color: #FFFFFF;
    background: #687D27;
    border-color: #687D27;
}

.contact-page .btn-clean {
    color: var(--gris-institucional);
    background: #FFFFFF;
    border-color: #D5D8D1;
}

.contact-page .btn-clean:hover {
    color: var(--gris-oscuro);
    background: #F0F1ED;
}

.contact-page .contact-response,
.contact-page #respuesta {
    margin-top: 20px;
    padding: 14px 16px;
    color: var(--gris-oscuro);
    background: #F7F9F3;
    border: 1px solid #D5D8D1;
    border-left: 4px solid var(--verde-oscuro);
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-page .contact-response p,
.contact-page #respuesta p {
    margin: 0;
    line-height: 1.6;
}

.contact-page .contact-radio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 28px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-page .contact-radio .radio__logo {
    display: block;
    width: 100%;
    max-width: 190px;
    max-height: 180px;
    margin: 0;
    object-fit: contain;
}

.contact-page .contact-radio .radio__audio {
    display: block;
    width: 100%;
    max-width: 300px;
}

.contact-page .tv-list {
    width: 100%;
    min-width: 0;
}

.contact-page .main-footer {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   8. PIE DE PÁGINA
   ========================================================================== */

.main-footer {
    width: 100%;
    margin-top: 40px;
    padding: 24px 0;
    color: #AAAAAA;
    background: var(--negro);
    border-top: 1px solid #333333;
    font-size: 13px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.footer-logo {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-content {
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .nav-links a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 1.1em;
    }

    .search-input {
        width: 150px;
    }

    .main-content {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
        gap: 24px;
    }

    .news-card {
        gap: 16px;
    }

    .news-image-container {
        width: 180px;
        height: 120px;
    }

    .contact-page .contact-main {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 0;
    }

    .header-flex {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-height: auto;
        padding: 0 12px;
    }

    .header-left {
        justify-content: center;
        width: 100%;
    }

    .logo-medios {
        height: 58px;
        max-width: 90%;
    }

    .header-center {
        position: static;
        width: 100%;
        transform: none;
        text-align: center;
    }

    .header-subtitle {
        margin-bottom: 4px;
        font-size: 12px;
        letter-spacing: 0.7px;
    }

    .header-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .header-right-spacer {
        display: none;
    }

    .main-nav {
        position: relative;
        top: auto;
    }

    .nav-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 10px 12px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        height: auto;
        gap: 0;
    }

    .nav-links li {
        flex: 1 1 25%;
        min-width: 0;
    }

    .nav-links a {
        min-height: 46px;
        padding: 8px 5px;
        white-space: normal;
        font-size: 1em;
        line-height: 1.3;
    }

    .search-form {
        width: 100%;
        margin: 8px 0 0;
    }

    .search-input {
        flex: 1;
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }

    .search-button {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-top: 22px;
        margin-bottom: 28px;
        padding: 0 14px;
    }

    .news-section,
    .sidebar {
        width: 100%;
        min-width: 0;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .news-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .news-image-container {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .news-title {
        font-size: 20px;
    }

    .news-excerpt {
        font-size: 15px;
    }

    .media-card-header h3 {
        font-size: 15px;
    }

    .contact-page .contact-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 28px 16px 36px;
    }

    .contact-page .contact-radio {
        padding: 24px;
    }

    .main-footer {
        margin-top: 24px;
        padding: 22px 0;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }

    .footer-left {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .logo-medios {
        height: 52px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .header-title {
        font-size: 16px;
    }

    .nav-links a {
        font-size: 0.9em;
    }

    .main-content {
        gap: 22px;
        margin-top: 18px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-excerpt {
        font-size: 14px;
    }

    .contact-page .contact-main {
        gap: 20px;
        padding: 22px 12px 28px;
    }

    .contact-page .contact-title,
    .contact-page .contact-content > h1 {
        font-size: 26px;
    }

    .contact-page .btn-group {
        flex-direction: column;
    }

    .contact-page .btn-group .btn {
        width: 100%;
    }
}