/* Estilos para el popup del comunicado */
.popup-comunicado-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-comunicado-container {
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideIn 0.5s ease-out;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-comunicado-header {
    background: linear-gradient(135deg, #1a3a6c 0%, #2c5282 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.popup-comunicado-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.popup-comunicado-title {
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.popup-comunicado-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}

.popup-comunicado-close {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.popup-comunicado-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.popup-comunicado-content {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

.popup-comunicado-alert {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-left: 4px solid #f44336;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.popup-comunicado-alert i {
    color: #f44336;
    font-size: 1.5rem;
    margin-top: 2px;
}

.popup-comunicado-alert h3 {
    color: #c62828;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.popup-comunicado-alert p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

.popup-comunicado-body {
    background: rgba(66, 133, 244, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.popup-comunicado-body h4 {
    color: #1a3a6c;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.popup-comunicado-body h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    border-radius: 2px;
}

.popup-comunicado-message {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e50;
}

.popup-comunicado-message p {
    margin-bottom: 20px;
    text-align: justify;
}

.popup-comunicado-highlight {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 235, 59, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.popup-comunicado-highlight::before {
    content: '⚠️';
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

.popup-comunicado-highlight strong {
    color: #f57c00;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.popup-comunicado-footer {
    background: #f8f9fa;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.popup-comunicado-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.popup-comunicado-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-comunicado-container {
        width: 95%;
        max-width: 95%;
    }
    
    .popup-comunicado-content {
        padding: 25px 20px;
    }
    
    .popup-comunicado-header {
        padding: 20px;
    }
    
    .popup-comunicado-title {
        font-size: 1.3rem;
    }
    
    .popup-comunicado-subtitle {
        font-size: 1rem;
    }
    
    .popup-comunicado-body {
        padding: 20px;
    }
    
    .popup-comunicado-body h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .popup-comunicado-title {
        font-size: 1.1rem;
    }
    
    .popup-comunicado-subtitle {
        font-size: 0.9rem;
    }
    
    .popup-comunicado-message {
        font-size: 0.95rem;
    }
    
    .popup-comunicado-alert {
        padding: 15px;
    }
}
