/* ========================================
   MODAL ADVERTENCIA REGISTRO - ICT
   ======================================== */

/* Overlay del modal */
.modal-advertencia-registro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
    padding: 20px;
}

.modal-advertencia-registro.active {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenedor del modal */
.modal-advertencia-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    animation: slideUpModal 0.4s ease;
    overflow-y: auto;
    position: relative;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del modal */
.modal-advertencia-header {
    background: linear-gradient(135deg, #555 0%, #222 100%);
    padding: 1rem 1rem 0.8rem;
    text-align: center;
    position: relative;
}

/* Header con logo en pseudo-elemento */
header::before {
    content: '';
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    background-image: url('https://ictspain.com/imagesict/logo.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

header:hover::before {
    transform: scale(1.05);
}

.modal-advertencia-titulo {
    color: white;
    font-size: 14px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Body del modal */
.modal-advertencia-body {
    padding: 0.9rem;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.info-box h3 {
    color: #1976d2;
    font-size: 14px;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h3::before {
    content: '✓';
    background: #2196f3;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #1565c0;
    font-size: 13px;
    line-height: 1.4;
}

.info-box li::before {
    content: '📧';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.info-box li:nth-child(2)::before {
    content: '🎉';
}

.info-box li:nth-child(3)::before {
    content: '📱';
}

/* Advertencia importante */
.advertencia-oficial {
    background: linear-gradient(135deg, #888 0%, #888 100%);
    border-left: 5px solid #ff9800;
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.advertencia-oficial h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advertencia-oficial h4::before {
    content: '⚠️';
    font-size: 18px;
}

.advertencia-oficial p {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.advertencia-oficial strong {
    color: #fff;
    font-weight: 700;
}

.advertencia-oficial a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.advertencia-oficial a:hover {
    color: #bf360c;
}

/* Botones */
.modal-advertencia-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.btn-modal {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-entendido {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-entendido:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-cancelar {
    background: white;
    color: #667eea;
    border: 2px solid #e0e0e0;
}

.btn-cancelar:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

/* Texto de aceptación (dentro del body) */
.modal-advertencia-footer {
    background: #f0f4ff;
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #d1dcf7;
    margin-bottom: 1rem;
}

.modal-advertencia-footer p {
    margin: 0;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.4;
    font-weight: 500;
}

.modal-advertencia-footer a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-advertencia-footer a:hover {
    color: #764ba2;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .modal-advertencia-content {
        max-width: 90%;
    }
}

/* Responsive - Móviles */
@media (max-width: 600px) {
    .modal-advertencia-registro {
        padding: 10px;
    }

    .modal-advertencia-content {
        border-radius: 15px;
        max-height: 95vh;
    }

    .modal-advertencia-header {
        padding: 0.8rem 0.8rem 0.6rem;
    }

    .modal-advertencia-header::before {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .modal-advertencia-titulo {
        font-size: 17px;
    }

    .modal-advertencia-body {
        padding: 1rem;
    }

    .info-box,
    .advertencia-oficial {
        padding: 0.8rem;
    }

    .info-box h3 {
        font-size: 14px;
    }

    .info-box li {
        font-size: 12px;
        padding-left: 1.6rem;
    }

    .advertencia-oficial h4 {
        font-size: 13px;
    }

    .advertencia-oficial p {
        font-size: 12px;
    }

    .modal-advertencia-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-modal {
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
    }

    .modal-advertencia-footer {
        padding: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .modal-advertencia-footer p {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .modal-advertencia-header::before {
        width: 45px;
        height: 45px;
    }

    .modal-advertencia-titulo {
        font-size: 16px;
    }

    .modal-advertencia-body {
        padding: 0.9rem;
    }

    .info-box li::before,
    .advertencia-oficial h4::before {
        font-size: 13px;
    }
}