@import url('https://fonts.googleapis.com/css2?family=Arial:wght@700&display=swap');

/* ===== ESTILOS NOTICIAS MODERNAS ===== */
:root {
    --primary-color: #0b5891;
    --primary-light: rgba(11, 88, 145, 0.1);
    --primary-dark: #084b7a;
    --secondary-color: #6c757d;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --ad-bg: #f0f5f9;
    --ad-label: #999999;
    --ad-border: #d6e9f8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --grid-gap: 20px;
    --card-padding: 16px;
    --section-spacing: 50px;
}

/* Contenedor principal de noticias */
.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Sección de noticias */
.news-section {
    margin-bottom: var(--section-spacing);
}

.section-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 40px;
    overflow: hidden;
}

/* Encabezado de sección */
.section-header {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    padding-right: 15px;
    color: var(--primary-color);
    position: relative;
}

.section-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.right-aligned {
    flex-direction: row-reverse;
}

.right-aligned .section-title {
    padding-right: 0;
    padding-left: 15px;
}

.right-aligned .section-divider {
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

/* Contenedor para diseños duales (contenido principal + lateral) */
.dual-layout {
    display: flex;
    gap: var(--grid-gap);
    margin-bottom: 20px;
}

.main-content {
    flex: 1;
}

.sidebar-content {
    width: 300px;
    flex-shrink: 0;
}

/* Noticia destacada */
.featured-news-container {
    margin-bottom: 30px;
}

.featured-news {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.featured-news-content {
    position: relative;
}

.featured-news-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
}

.featured-news-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-link:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-text {
    padding: 25px;
    background-color: var(--bg-white);
    position: relative;
    z-index: 2;
    margin-top: -60px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.featured-news-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-news-summary {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--primary-color);
}

.news-readmore {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-readmore i {
    transition: transform 0.3s ease;
}

.featured-news-link:hover .news-readmore i {
    transform: translateX(3px);
}

/* Etiqueta de categoría */
.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.news-category-badge.small {
    padding: 3px 8px;
    font-size: 0.75rem;
}

/* Noticias relacionadas */
.related-news-container {
    margin-top: 20px;
}

.related-news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

/* Tarjetas de noticias */
.news-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.news-card-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    height: 100%;
}

.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.news-card-link:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-body {
    padding: var(--card-padding);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Carrusel moderno */
.carousel-container {
    margin-bottom: 25px;
}

.modern-carousel .slick-list {
    margin: 0 -10px;
}

.modern-carousel .slick-slide {
    padding: 10px;
}

.modern-carousel .slick-arrow {
    position: absolute;
    top: -40px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0.8;
}

.modern-carousel .slick-arrow:hover {
    opacity: 1;
    background-color: var(--primary-dark);
}

.modern-carousel .slick-prev {
    right: 45px;
    left: auto;
}

.modern-carousel .slick-next {
    right: 0;
}

.modern-carousel .slick-prev:before,
.modern-carousel .slick-next:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
}

.modern-carousel .slick-prev:before {
    content: "\f104"; /* fa-angle-left */
}

.modern-carousel .slick-next:before {
    content: "\f105"; /* fa-angle-right */
}

.modern-carousel .slick-dots {
    bottom: -25px;
}

.modern-carousel .slick-dots li button:before {
    color: var(--primary-color);
}

.modern-carousel .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--primary-color);
}

/* Contenedores de anuncios */
.ad-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.ad-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background-color: var(--ad-bg);
    border: 1px solid var(--ad-border);
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.75rem;
    color: var(--ad-label);
    text-transform: uppercase;
}

.ad-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.ad-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.horizontal-ad {
    margin-bottom: 25px;
    min-height: 100px;
}

.vertical-ad {
    height: 100%;
    min-height: 300px;
}

.full-width-ad {
    margin-top: 30px;
}

/* Grid de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.news-grid-item {
    min-height: 220px;
}

.news-card.compact .news-card-image {
    height: 140px;
}

.news-card.compact .news-card-body {
    padding: 12px;
}

.news-card.compact .news-card-title {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Grid de videos/noticias */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.video-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.video-card-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.video-card-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

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

.video-card-link:hover .video-card-image img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: var(--transition);
}

.video-card-link:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body {
    padding: 12px;
}

.video-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-card-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Paginación moderna */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.modern-pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.modern-pagination .page-item {
    display: inline-block;
}

.modern-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modern-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.modern-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.modern-pagination .page-item:not(.disabled) .page-link:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-pagination .page-item.prev .page-link,
.modern-pagination .page-item.next .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .section-wrapper {
        padding: 25px;
    }

    .featured-news-image {
        height: 300px;
    }

    .featured-news-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .dual-layout {
        flex-direction: column;
    }

    .sidebar-content {
        width: 100%;
    }

    .vertical-ad {
        min-height: 200px;
    }

    .news-grid, .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-news-link {
        flex-direction: column;
    }

    .featured-news-image {
        width: 100%;
        height: 250px;
    }

    .featured-news-text {
        width: auto;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 15px;
    }

    .section-wrapper {
        padding: 20px;
    }

    .featured-news-text {
        margin-left: 15px;
        margin-right: 15px;
    }

    .featured-news-title {
        font-size: 1.3rem;
    }

    .featured-news-summary {
        font-size: 0.95rem;
    }

    .related-news-title {
        font-size: 1.2rem;
    }

    .news-card-image {
        height: 160px;
    }

    .modern-pagination .page-link {
        height: 35px;
        min-width: 35px;
    }
}

@media (max-width: 576px) {
    .news-grid, .video-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image, .video-card-image {
        height: 180px;
    }

    .featured-news-image {
        height: 200px;
    }

    .featured-news-text {
        padding: 15px;
        margin-top: -40px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .modern-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modern-pagination .page-item:not(.prev):not(.next):not(.active) {
        display: none;
    }
}

/* Ajustes para Slick Carousel */
.slick-carousel {
    position: relative;
    margin-bottom: 30px;
}

.slick-slide-item {
    padding: 0 10px;
    height: auto;
}

.slick-list {
    overflow: visible;
}

.slick-arrow {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-wrapper {
    animation: fadeInUp 0.5s ease-out forwards;
}
