/* --- Estilos para el Pop-up de Novedades --- */

.novedades-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.novedades-popup {
    background-color: #fff;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    transform: scale(0.9);
    opacity: 0;
    animation: popup-appear 0.4s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.novedades-popup.popup-hidden {
    animation: popup-disappear 0.4s ease-in forwards;
}

@keyframes popup-appear {
    to { transform: scale(1); opacity: 1; }
}

@keyframes popup-disappear {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9); opacity: 0; }
}

.novedades-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
}
.novedades-popup-close:hover {
    color: #000;
}

.popup-imagen-container img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-contenido {
    text-align: center;
    padding: 25px 25px 20px 25px;
}

.popup-contenido h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.popup-enlace-boton {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #e45458; /* Color principal */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.popup-enlace-boton:hover {
    background-color: #c93d42; /* Tono más oscuro al pasar el ratón */
}

.popup-footer {
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.popup-footer label.fyv-custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

/* Ocultar el checkbox original */
.fyv-custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Crear la caja del checkbox personalizado */
.fyv-custom-checkbox .checkbox-label-text::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e45458;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Estilo cuando está marcado */
.fyv-custom-checkbox input[type="checkbox"]:checked + .checkbox-label-text::before {
    background-color: #e45458;
    border-color: #e45458;
}

/* Crear el 'tick' o marca de verificación */
.fyv-custom-checkbox .checkbox-label-text::after {
    content: '';
    display: block;
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    /* Ajustar posición del tick dentro de la caja */
    margin-left: 7px;
    margin-top: -15px;
}

/* Mostrar el 'tick' cuando está marcado */
.fyv-custom-checkbox input[type="checkbox"]:checked + .checkbox-label-text::after {
    opacity: 1;
}
