/* ======================================
   LA PREVIA 506 - ESTILOS PRINCIPALES
====================================== */

:root {
    --azul: #123B70;
    --azul-oscuro: #09264B;
    --rojo: #D62835;
    --blanco: #FFFFFF;
    --gris: #F2F4F7;
    --texto: #252525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: var(--texto);
}

a {
    text-decoration: none;
}


/* HEADER */

.header {
    background: white;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1400px;
    min-height: 115px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 360px;
    max-height: 90px;
    object-fit: contain;
}

.logo span {
    font-size: 34px;
    font-weight: 900;
    color: var(--azul);
}

    .logo span strong {
        color: var(--rojo);
    }

.header-social {
    display: flex;
    gap: 12px;
}

    .header-social a {
        width: 39px;
        height: 39px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--azul);
        color: white;
        font-size: 17px;
        transition: .3s;
    }

        .header-social a:hover {
            background: var(--rojo);
            transform: translateY(-3px);
        }


/* MENU */

.navbar {
    background: var(--azul);
    border-bottom: 4px solid var(--rojo);
}

.navbar-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    padding: 17px 22px;
    font-size: 13px;
    font-weight: bold;
    transition: .3s;
}

    .navbar a:hover {
        background: var(--rojo);
    }


/* ULTIMA HORA */

.breaking {
    background: var(--rojo);
    color: white;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 25px;
    font-size: 13px;
}

    .breaking strong {
        border-right: 1px solid white;
        padding-right: 20px;
    }


/* CONTENEDOR */

.main-container {
    max-width: 1400px;
    margin: auto;
    padding: 25px;
}


/* NOTICIA PRINCIPAL */

.hero {
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient( 90deg, rgba(0,0,0,.85), rgba(0,0,0,.35), transparent ), url('/Content/imagenes/noticias/portada.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}

.hero-overlay {
    padding: 45px;
    color: white;
    max-width: 750px;
}

.tag {
    display: inline-block;
    background: var(--rojo);
    color: white;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 43px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 22px;
}

.btn-primary {
    display: inline-block;
    background: var(--rojo);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: .3s;
}

    .btn-primary:hover {
        background: white;
        color: var(--azul);
    }


/* TITULOS */

.section-news {
    padding: 45px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

    .section-title small {
        color: var(--rojo);
        font-size: 11px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .section-title h2 {
        color: var(--azul);
        font-size: 27px;
        font-weight: 900;
    }

.btn-all {
    background: var(--azul);
    color: white;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}


/* TARJETAS DE NOTICIAS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.news-card {
    background: white;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: .3s;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,.10);
    }

.news-photo {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .news-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: .4s;
    }

.news-card:hover .news-photo img {
    transform: scale(1.02);
}

.news-photo span {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--azul);
    color: white;
    padding: 8px 12px;
    font-size: 20px;
    font-weight: bold;
}

.news-content {
    padding: 20px;
}

    .news-content small {
        color: #888;
        font-size: 18px;
    }

    .news-content h3 {
        color: var(--azul-oscuro);
        font-size: 25px;
        margin: 10px 0;
    }

    .news-content p {
        color: #777;
        font-size: 18px;
        margin-bottom: 15px;
        font-weight: bold;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.5;
        /* Limitar a 4 líneas */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

.read-more {
    color: var(--rojo);
    font-weight: bold;
    font-size: 15px;
}

/* VENTANA DE DETALLE DE NOTICIA */
/* MODAL OCULTO CUANDO NO ESTÁ ACTIVO */

#modalNoticia {
    display: none;
}

    #modalNoticia.show {
        display: block;
    }
#modalNoticia .modal-dialog {
    max-height: 90vh;
}

#modalNoticia .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    font-weight: bold;
    max-height: 90vh;
}

/* ENCABEZADO */

#modalNoticia .modal-header {
    background: blue;
    color: white;
    padding: 20px;
}

#modalNoticia .modal-title {
    font-size: 30px;
}

#modalNoticia .btn-close {
    filter: invert(1);
}

/* CONTROL DEL MODAL Y SCROLL */

#modalNoticia .modal-dialog {
    height: 90vh;
    max-height: 90vh;
}

#modalNoticia .modal-content {
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#modalNoticia .modal-header,
#modalNoticia .modal-footer {
    flex-shrink: 0;
}

#modalNoticia .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: scroll !important;
    overflow-x: hidden;
}

    /* BARRA DE SCROLL */

    #modalNoticia .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    #modalNoticia .modal-body::-webkit-scrollbar-thumb {
        background: #b5b5b5;
        border-radius: 10px;
    }
/* IMAGEN A LA IZQUIERDA */

#modalNoticia #modalImagen {
    float: left;
    width: 35%;
    max-height: 300px;
    object-fit: contain;
    margin: 0 22px 15px 0;
    border-radius: 10px;
}

/* TEXTO DE LA NOTICIA */

#modalNoticia .noticia-detalle {
    color: #444;
    font-size: 18px;
    line-height: 1.2;
    white-space: pre-line;
    overflow-wrap: break-word;
    text-align: justify;
}

/* BOTÓN CERRAR NOTICIA */

#modalNoticia .btn-cerrar-noticia {
    background: #171717;
    color: white;
    border: 2px solid #171717;
    padding: 11px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    #modalNoticia .btn-cerrar-noticia:hover {
        background: #e32636;
        border-color: #e32636;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(227, 38, 54, .25);
    }

    #modalNoticia .btn-cerrar-noticia i {
        font-size: 15px;
    }

/* CATEGORÍA */

#modalNoticia #modalCategoria {
    font-size: 20px;
    font-weight: bold;
    color: blue;
}

/* FECHA DE LA NOTICIA */

#modalNoticia #modalFecha {
    font-size: 17px;
    font-weight: 600;
    margin-left: 12px;
    color: red;
}

/* PIE DEL MODAL */

#modalNoticia .modal-footer {
    border-top: 2px solid #eee;
}

/* RESPONSIVE PARA CELULARES */

@media (max-width: 576px) {

    #modalNoticia .modal-title {
        font-size: 22px;
    }

    #modalNoticia .modal-body {
        padding: 15px;
    }

    #modalNoticia #modalImagen {
        float: none;
        width: 100%;
        max-height: 250px;
        margin: 0 0 15px 0;
    }

    #modalNoticia .noticia-detalle {
        font-size: 16px;
    }
}


/* CELULARES */

@media (max-width: 576px) {

    #modalNoticia #modalImagen {
        float: none;
        width: 100%;
        max-height: 250px;
        margin: 0 0 20px 0;
    }
}

/* BANNER DEPORTIVO */

.banner-sports {
    padding: 60px 40px;
    margin: 20px 0 45px;
    color: white;
    background: linear-gradient( 90deg, rgba(9,38,75,.95), rgba(18,59,112,.65) ), url('/Content/imagenes/noticias/deportes.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

    .banner-sports div {
        max-width: 700px;
    }

    .banner-sports span {
        color: #ff606a;
        font-weight: bold;
    }

    .banner-sports h2 {
        font-size: 32px;
        margin: 12px 0;
    }

    .banner-sports p {
        font-size: 15px;
    }


/* PATROCINADORES */

.section-sponsors {
    background: var(--gris);
    padding: 35px 0;
    margin: 0 -25px;
    overflow: hidden;
}

.centered {
    justify-content: center;
    text-align: center;
    border: none;
}

.sponsor-slider {
    overflow: hidden;
    width: 100%;
}

.sponsor-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: sponsorsMove 25s linear infinite;
}

    .sponsor-track:hover {
        animation-play-state: paused;
    }

.sponsor-card {
    width: 300px;
    height: 180px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--azul);
}

    .sponsor-card i {
        font-size: 30px;
    }

    .sponsor-card strong {
        font-size: 18px;
    }

@keyframes sponsorsMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* FOOTER */

.footer {
    background: var(--azul-oscuro);
    color: white;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 45px 25px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .8fr;
    gap: 30px;
}

.footer-column h2 {
    font-size: 25px;
    color: white;
}

    .footer-column h2 span {
        color: var(--rojo);
    }

.footer-column h3 {
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--rojo);
    display: inline-block;
    padding-bottom: 7px;
}

.footer-column p {
    font-size: 20px;
    color: #dce4ef;
    margin-bottom: 10px;
}

    .footer-column p i {
        color: #ff606a;
        margin-right: 7px;
    }

.footer-icons {
    display: flex;
    gap: 10px;
}

    .footer-icons a {
        width: 75px;
        height: 75px;
        border-radius: 50%;
        background: white;
        color: var(--azul);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
    }

        .footer-icons a:hover {
            background: var(--rojo);
            color: white;
        }

.copyright {
    background: var(--rojo);
    padding: 16px;
    text-align: center;
    font-size: 13px;
}


/* WHATSAPP FLOTANTE */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 90px;
    height: 90px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    z-index: 9999;
    transition: .3s;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        background: #1da851;
        color: white;
    }
/* RESPONSIVE */

@media(max-width: 900px) {

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {

    .logo img {
        max-width: 280px;
    }

    .navbar-container {
        flex-direction: column;
    }

    .navbar a {
        text-align: center;
        padding: 12px;
    }

    .breaking {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .main-container {
        padding: 15px;
    }

    .hero {
        min-height: 350px;
    }

    .hero-overlay {
        padding: 22px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 21px;
    }

    .banner-sports {
        padding: 35px 20px;
    }

        .banner-sports h2 {
            font-size: 24px;
        }

    .section-sponsors {
        margin: 0 -15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-icons {
        justify-content: center;
    }
}

.logo img {
    height: 100px;
    width: auto;
    max-width: none;
    object-fit: contain;
}
/* REPRESENTANTES */
.representantes-section {
    padding: 30px 20px;
    background: #f5f5f5;
    text-align: center;
}

    .representantes-section h2 {
        font-size: 26px;
        font-weight: 800;
        color: #222;
        margin-bottom: 25px;
        text-transform: uppercase;
    }

        .representantes-section h2 span {
            color: #e32636;
        }

.representantes-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.representante-card {
    width: 250px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.10);
    transition: transform .3s ease;
}

    .representante-card:hover {
        transform: translateY(-5px);
    }

    .representante-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

.representante-info {
    padding: 15px;
}

    .representante-info h3 {
        color: #222;
        font-size: 20px;
        margin: 0 0 8px;
    }

    .representante-info p {
        color: #666;
        font-size: 15px;
        margin: 0;
        line-height: 1.5;
        font-weight: bold;
    }

@media (max-width: 600px) {
    .representantes-section {
        padding: 25px 10px;
    }

    .representante-card {
        width: calc(50% - 15px);
        min-width: 145px;
    }

        .representante-card img {
            height: 150px;
        }

    .representante-info h3 {
        font-size: 16px;
    }
}

/* ULTIMA HORA */
.breaking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    padding: 12px 25px;
    background: #172B46;
    color: #fff;
}

/* CONTENIDO IZQUIERDO */
.breaking-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 0;
}

/* LOGO */
.breaking .logo img {
    height: 150px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.breaking .logo img {
    max-height: 100px;
    max-width: 100px;
    object-fit: contain;
}

/* TITULO */
.breaking-title {
    font-size: 23px;
    font-weight: 900;
    white-space: nowrap;
    color: #fff;
}

    .breaking-title i {
        color: #ffc107;
        margin-right: 7px;
    }

/* MENSAJE */
.breaking-message {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* BOTON INICIO */
.breaking .navbar {
    margin-left: auto;
    flex-shrink: 0;
}

.breaking .navbar-container a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 800;
    border-radius: 6px;
    transition: background 0.2s;
}

    .breaking .navbar-container a:hover {
        background: #b02a37;
    }

/* RESPONSIVE */
@media (max-width: 768px) {

    .breaking {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .breaking-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .breaking-title {
        font-size: 19px;
    }

    .breaking-message {
        font-size: 15px;
        width: 100%;
    }

    .breaking .navbar {
        margin-left: auto;
    }
}
