/* Modal de noticia */
.modal-noticia {
    display: none;
    position: fixed;
    z-index: 10020;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-contenido {
    position: relative;
    background-color: #ffffff;
    margin: 8% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a237e;
    font-size: 35px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 40px 35px;
    background: #ffffff;
}

.modal-body h2 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-fecha {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-fecha i {
    color: #1a237e;
}

.contenido-completo {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    white-space: pre-wrap;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-contenido {
        width: 95%;
        margin: 3% auto;
    }
    
    .modal-header {
        height: 250px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-body h2 {
        font-size: 1.6rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .modal-contenido {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        height: 200px;
    }
    
    .modal-body {
        padding: 25px 15px;
    }
    
    .modal-body h2 {
        font-size: 1.4rem;
    }
    
    .contenido-completo {
        font-size: 0.95rem;
    }
}