﻿/* Modal de Términos y Condiciones */
.modal-terminos {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease-in;
}

.modal-terminos-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 1200px;
    animation: slideIn 0.5s ease-out;
}

.modal-terminos-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-terminos-botones {
    position: absolute;
    bottom: 12%;
    right: 8%;
    display: flex;
    gap: 15px;
}

/* Hace clicable el texto "Resolución No. 271..." que ya viene dibujado
   dentro de la imagen (posición calculada sobre la imagen original). */
.link-resolucion-terminos {
    position: absolute;
    top: 62%;
    left: 24%;
    width: 34%;
    height: 6.5%;
    display: block;
}

    .link-resolucion-terminos:hover,
    .link-resolucion-terminos:focus {
        outline: 2px dashed rgba(255, 255, 255, 0.75);
        outline-offset: 3px;
        cursor: pointer;
    }

.btn-aceptar-terminos {
    background-color: #ff6b35;
    border: none;
    color: white;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    .btn-aceptar-terminos:hover {
        background-color: #ff8555;
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

.btn-rechazar-terminos {
    background-color: #fff;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    .btn-rechazar-terminos:hover {
        background-color: #ff6b35;
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

/* Asegura que las alertas SweetAlert2 se muestren por encima del banner (z-index 9999) */
.swal2-container {
    z-index: 10050 !important;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-terminos-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-terminos-botones {
        bottom: 10%;
        right: 5%;
        gap: 10px;
    }

    .btn-aceptar-terminos,
    .btn-rechazar-terminos {
        padding: 10px 30px;
        font-size: 16px;
    }
}
