/* Modal para formulario de nueva noticia */
.news-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.news-form-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    width: 90%;
    max-width: 1000px;
    height: 80%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.news-form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.news-form-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.news-form-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.news-form-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    transform: scale(1.05);
}

.news-form-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
}

.news-form-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 1rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-form-modal-content {
        width: 95%;
        height: 90%;
        margin: 1rem;
    }
    
    .news-form-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .news-form-modal-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .news-form-modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .news-form-modal-body iframe {
        border-radius: 0;
    }
}

/* Animación de cierre */
.news-form-modal.closing {
    animation: modalSlideOut 0.2s ease-in forwards;
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}
