/* Popup de Año Nuevo - LabAncestral */
/* Estilos adaptados a la paleta institucional */

#new-year-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 38, 22, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.5s ease;
}

#new-year-popup * {
    box-sizing: border-box;
}

.new-year-popup-container {
    max-width: 800px;
    width: 95%;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    animation: popupScale 0.6s ease;
}

/* Encabezado */
.new-year-popup-header {
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    color: #ffffff;
    padding: 28px;
    text-align: center;
    position: relative;
}

.new-year-popup-header h1 {
    font-size: 2.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.new-year-popup-header p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin: 0;
}

/* Logo */
.new-year-popup-logo {
    position: absolute;
    top: 20px;
    left: 25px;
    background: #ffffff;
    color: #2E7D32;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* Contenido */
.new-year-popup-content {
    padding: 38px;
    text-align: center;
}

.new-year-popup-message {
    font-size: 1.35rem;
    line-height: 1.65;
    margin-bottom: 28px;
    color: #2F2F2F;
}

.new-year-popup-message strong {
    color: #2E7D32;
}

/* Año */
.new-year-popup-year {
    font-size: 4rem;
    color: #2E7D32;
    margin: 18px 0;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(46, 125, 50, 0.25);
    position: relative;
    display: inline-block;
}

.new-year-popup-year::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2E7D32, #81C784);
    bottom: -12px;
    left: 0;
    border-radius: 5px;
}

/* Elementos festivos */
.new-year-popup-fireworks {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 26px 0;
}

.new-year-popup-firework {
    width: 14px;
    height: 14px;
    background: #C8A951;
    border-radius: 50%;
    animation: fireworkAnimation 1.5s infinite alternate;
}

.new-year-popup-firework:nth-child(2) {
    background: #4CAF50;
    animation-delay: 0.3s;
}

.new-year-popup-firework:nth-child(3) {
    background: #81C784;
    animation-delay: 0.6s;
}

.new-year-popup-firework:nth-child(4) {
    background: #2E7D32;
    animation-delay: 0.9s;
}

.new-year-popup-firework:nth-child(5) {
    background: #C8A951;
    animation-delay: 1.2s;
}

/* Footer */
.new-year-popup-footer {
    background: #F4F6F2;
    padding: 22px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
}

.new-year-popup-footer p {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.new-year-popup-signature {
    color: #2E7D32;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 6px;
}

/* Botón */
.new-year-popup-close-btn {
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    color: #ffffff;
    border: none;
    padding: 15px 42px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
    font-weight: 600;
}

.new-year-popup-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(46, 125, 50, 0.45);
}

/* Decorativos */
.new-year-popup-decoration {
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.08;
    z-index: 0;
}

.new-year-popup-decoration:nth-child(1) { top: 15%; left: 10%; color: #2E7D32; }
.new-year-popup-decoration:nth-child(2) { top: 10%; right: 15%; color: #4CAF50; }
.new-year-popup-decoration:nth-child(3) { bottom: 20%; left: 15%; color: #C8A951; }
.new-year-popup-decoration:nth-child(4) { bottom: 15%; right: 10%; color: #81C784; }

/* Animaciones intactas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupScale {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fireworkAnimation {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-28px) scale(1.3); opacity: 0; }
}
