/* ===== CSS ESPECÍFICO PARA NOVEDADES.BLADE.PHP CON MODAL MEJORADO ===== */

/* Variables CSS */
:root {
    --primary-color: #005f99;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #000000;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-accent: 'Anton', sans-serif;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--secondary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 0.5rem 0;
    border: none;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    transition: var(--transition);
}

/* ===== HERO NOVEDADES ===== */
.novedades-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--warning-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== FILTROS ===== */
.novedades-filters {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-btn i {
    font-size: 1rem;
}

/* ===== CONTENIDO NOVEDADES ===== */
.novedades-content {
    padding: 4rem 0;
    background: var(--gray-100);
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== TARJETAS DE NOVEDADES ===== */
.novedad-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.novedad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.novedad-card.featured {
    border: 2px solid var(--warning-color);
}

.novedad-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.novedad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.novedad-card:hover .novedad-image img {
    transform: scale(1.05);
}

.novedad-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.novedad-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    min-width: 60px;
}

.novedad-date .day {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.novedad-date .month {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.featured-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--warning-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.novedad-content {
    padding: 1.5rem;
}

.novedad-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.novedad-excerpt {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.novedad-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.novedad-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.novedad-meta i {
    font-size: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== PAGINACIÓN ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.pagination-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ESTADO VACÍO ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

.empty-state a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== MODAL MEJORADO - VERSIÓN GRANDE ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px; /* AUMENTADO de 600px a 900px */
    width: 100%;
    max-height: 90vh; /* AUMENTADO de 80vh a 90vh */
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Botón X de cerrar en la esquina */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Header del modal con imagen - AGRANDADO */
.modal-header {
    position: relative;
    height: 300px; /* AUMENTADO de 250px a 300px */
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Información superpuesta en la imagen */
.modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    z-index: 5;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.modal-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.modal-badge-category {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.modal-badge-date {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-badge-views {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 2.5rem; /* AUMENTADO de 2rem a 2.5rem */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Información del modal - MÁS ESPACIO */
.modal-info-section {
    padding: 2rem 2.5rem; /* AUMENTADO de 1.5rem 2rem a 2rem 2.5rem */
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.modal-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-author-info i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.modal-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.modal-reading-time i {
    color: var(--warning-color);
}

/* Contenido del modal - MEJOR LEGIBILIDAD */
.modal-body {
    padding: 2.5rem; /* AUMENTADO de 2rem a 2.5rem */
    line-height: 1.8; /* AUMENTADO de 1.7 a 1.8 */
    color: var(--gray-700);
    font-size: 1.1rem; /* AUMENTADO de 1rem a 1.1rem */
    max-height: 450px; /* AUMENTADO de 400px a 450px */
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px; /* AUMENTADO de 6px a 8px */
}

.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.modal-content-text {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.1rem;
}

.modal-content-text h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem; /* AUMENTADO de 1.5rem a 1.6rem */
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.modal-content-text h3 {
    font-family: var(--font-primary);
    font-size: 1.35rem; /* AUMENTADO de 1.25rem a 1.35rem */
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem 0;
}

.modal-content-text p {
    margin-bottom: 1.5rem;
}

.modal-content-text ul,
.modal-content-text ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.modal-content-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Botones de acción del modal - MÁS GRANDES */
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem; /* AUMENTADO de 1.5rem 2rem a 2rem 2.5rem */
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.btn-compartir {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem; /* AUMENTADO de 0.75rem 1.5rem a 1rem 2rem */
    background: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem; /* AUMENTADO de 0.9rem a 1rem */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.btn-compartir:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-cerrar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem; /* AUMENTADO de 0.75rem 1.5rem a 1rem 2rem */
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem; /* AUMENTADO de 0.9rem a 1rem */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.btn-cerrar:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Loading spinner mejorado */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header móvil */
    .mobile-menu-toggle {
        display: flex;
    }

    
    /* Hero móvil */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Filtros móvil */
    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Grid móvil */
    .novedades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Tarjetas móvil */
    .novedad-image {
        height: 200px;
    }
    
    .novedad-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Modal móvil - AJUSTADO PARA VERSIÓN GRANDE */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        height: 250px; /* REDUCIDO para móvil pero sigue siendo grande */
    }
    
    .modal-overlay {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem; /* AUMENTADO de 1.5rem a 1.8rem para móvil */
    }
    
    .modal-body {
        padding: 2rem; /* AUMENTADO de 1.5rem a 2rem para móvil */
        max-height: 350px;
        font-size: 1rem; /* AUMENTADO para mejor legibilidad en móvil */
    }
    
    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .modal-info-section {
        padding: 1.5rem; /* AUMENTADO de 1rem a 1.5rem */
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem; /* AUMENTADO de 1rem a 1.5rem */
    }
    
    .btn-compartir,
    .btn-cerrar {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    /* Botón volver arriba móvil */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .novedades-hero {
        padding: 100px 0 60px;
    }
    
    .novedades-content {
        padding: 3rem 0;
    }
    
    .novedad-content {
        padding: 1rem;
    }
    
    .novedad-title {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Modal móvil pequeño - OPTIMIZADO PARA LEGIBILIDAD */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-header {
        height: 220px; /* MANTENIDO GRANDE para móvil pequeño */
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem; /* AUMENTADO de 1.25rem a 1.5rem */
    }
    
    .modal-body {
        padding: 1.5rem; /* AUMENTADO de 1rem a 1.5rem */
        font-size: 0.95rem; /* AUMENTADO para mejor legibilidad */
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .modal-actions {
        padding: 1rem; /* AUMENTADO de 0.75rem a 1rem */
    }
    
    .btn-compartir,
    .btn-cerrar {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem; /* AUMENTADO de 0.85rem a 0.9rem */
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.novedad-card {
    animation: fadeInUp 0.6s ease-out;
}

.novedad-card:nth-child(2) { animation-delay: 0.1s; }
.novedad-card:nth-child(3) { animation-delay: 0.2s; }
.novedad-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content {
    animation: fadeInModal 0.4s ease-out;
}

/* Estados especiales */
.modal-featured {
    border: 2px solid var(--warning-color);
}

.featured-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 6;
}

/* Efectos hover para elementos interactivos */
.modal-badge:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

/* Mejoras de accesibilidad */
.modal-close:focus,
.btn-compartir:focus,
.btn-cerrar:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
/* ===================================================================== */
/* MEDIA QUERIES PARA HACER RESPONSIVE - SIN CAMBIAR ESTILOS EXISTENTES */
/* ===================================================================== */

/* Solo se agregan los media queries necesarios para dispositivos móviles */
/* Mantiene todos los estilos originales de novedades.css */

/* TABLETS (1024px y menos) */
@media (max-width: 1024px) {
    /* Mostrar menú hamburguesa */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Ocultar navegación normal en tablets */
    .nav-links {
        display: none;
    }
    
    /* Cuando el menú está activo */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 1rem;
    }
    
    /* Animación del menú hamburguesa */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* MÓVILES (768px y menos) */
@media (max-width: 768px) {
    /* Grid de noticias a 1 columna */
    .novedades-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Ajustar tamaño de título hero */
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    /* Stats en columna */
    .hero-stats {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Filtros más pequeños */
    .filters {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Newsletter en columna */
    .newsletter-container {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .newsletter-content {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Formulario newsletter */
    .form-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Paginación más pequeña */
    .pagination {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .pagination-btn {
        min-width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}

/* MÓVILES PEQUEÑOS (480px y menos) */
@media (max-width: 480px) {
    /* Container más pequeño */
    .container {
        padding: 0 15px !important;
    }
    
    /* Título hero más pequeño */
    .hero-title {
        font-size: 2rem !important;
    }
    
    /* Subtítulo más pequeño */
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Stats más compactas */
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Tarjetas de noticias más compactas */
    .novedad-content {
        padding: 1rem !important;
    }
    
    .novedad-title {
        font-size: 1.1rem !important;
    }
    
    /* Meta información en columna */
    .novedad-meta {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Botones más pequeños */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Newsletter más compacto */
    .newsletter-text h3 {
        font-size: 1.2rem !important;
    }
    
    .newsletter-text p {
        font-size: 0.9rem !important;
    }
}

/* MÓVILES MUY PEQUEÑOS (360px y menos) */
@media (max-width: 360px) {
    /* Título hero aún más pequeño */
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    /* Stats más pequeñas */
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    /* Imagen de noticias más pequeña */
    .novedad-image {
        height: 180px !important;
    }
    
    /* Filtros solo con iconos */
    .filter-btn {
        padding: 0.5rem !important;
        min-width: 40px !important;
    }
    
    /* Ocultar texto en filtros, solo mostrar iconos */
    .filter-btn i {
        margin: 0 !important;
    }
}

/* ORIENTACIÓN LANDSCAPE EN MÓVILES */
@media (max-width: 768px) and (orientation: landscape) {
    /* Hero más pequeño en landscape */
    .novedades-hero {
        min-height: 50vh !important;
    }
    
    /* Stats en fila en landscape */
    .hero-stats {
        flex-direction: row !important;
        justify-content: center !important;
    }
}

/* MEJORAS DE ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ASEGURAR QUE EL MENÚ HAMBURGUESA ESTÉ OCULTO EN DESKTOP */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
}


