/* ContactoPro Verificación — estilos
   Los colores se leen de --cprov-primario / --cprov-acento, que
   contactopro-verificacion.php imprime como variables CSS según lo
   configurado en Marca. Los valores por defecto de abajo son los
   mismos que trae ContactoPro de fábrica, así que ambos plugins se
   ven a juego incluso sin tocar nada. */

.wev-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 15px;
}

.wev-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 50px -15px rgba(20,20,50,.22), 0 2px 10px rgba(0,0,0,.04);
    border: 1px solid #eef0f4;
}

.wev-card h2 {
    color: #1e1e2e;
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.wev-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

.wev-form-group {
    margin-bottom: 20px;
}

.wev-form-group label {
    display: block;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wev-input-group {
    display: flex;
    gap: 10px;
}

.wev-input-group input[type="email"],
.wev-input-group input[type="password"],
.wev-form-group input[type="email"],
.wev-form-group input[type="password"] {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color .15s ease, background .15s ease;
    font-family: inherit;
}

.wev-input-group input[type="email"]:focus,
.wev-input-group input[type="password"]:focus,
.wev-form-group input[type="email"]:focus,
.wev-form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--cprov-primario, #4f46e5);
    background: #fff;
}

.wev-btn-primary {
    background: linear-gradient(135deg, var(--cprov-primario, #4f46e5), var(--cprov-acento, #f59e0b));
    color: #ffffff !important;
    border: none;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    box-shadow: 0 10px 22px -8px var(--cprov-primario, #4f46e5);
}

.wev-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px var(--cprov-primario, #4f46e5);
}

.wev-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wev-btn-secondary {
    background: #f3f4f6;
    color: #374151 !important;
    border: none;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.wev-btn-secondary:hover {
    background: #e5e7eb;
}

/* Modal */
.wev-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.55);
    backdrop-filter: blur(3px);
    animation: wevFadeIn 0.25s ease;
}

@keyframes wevFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wev-modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 0;
    width: 92%;
    max-width: 440px;
    border-radius: 22px;
    animation: wevSlideIn 0.25s ease;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.35);
    overflow: hidden;
}

@keyframes wevSlideIn {
    from {
        transform: translateY(-24px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.wev-modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid #f0f0f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cprov-primario, #4f46e5) 8%, white), color-mix(in srgb, var(--cprov-acento, #f59e0b) 8%, white));
}

.wev-modal-header h3 {
    margin: 0;
    color: #1e1e2e;
    font-size: 19px;
    font-weight: 700;
}

.wev-close {
    color: #9ca3af;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color .15s ease;
    line-height: 1;
}

.wev-close:hover {
    color: #374151;
}

.wev-modal-body {
    padding: 26px;
}

.wev-modal-body p {
    color: #555;
    font-size: 14px;
    margin: 0 0 20px;
}

.wev-code-input-group {
    margin: 20px 0 12px;
}

#wev-codeInput {
    width: 100%;
    padding: 16px;
    font-size: 30px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    letter-spacing: 12px;
    font-weight: 700;
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: #fafafa;
    transition: border-color .15s ease, background .15s ease;
}

#wev-codeInput:focus {
    outline: none;
    border-color: var(--cprov-primario, #4f46e5);
    background: #fff;
}

.wev-timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px !important;
    text-align: center;
}

.wev-timer-row #wev-timer {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.wev-timer-row #wev-timer.wev-timer-critico {
    color: #dc2626;
}

.wev-intentos-info {
    color: #9ca3af;
}

.wev-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wev-modal-actions button {
    flex: 1;
}

.wev-message {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    display: none;
}

.wev-message.wev-success {
    display: block;
    background: #eafaf3;
    color: #166534;
    border: 1px solid #bbf0d5;
}

.wev-message.wev-error {
    display: block;
    background: #fdecea;
    color: #991b1b;
    border: 1px solid #f8c8c2;
}

/* Responsive */
@media (max-width: 600px) {
    .wev-card {
        padding: 25px 20px;
    }

    .wev-input-group {
        flex-direction: column;
    }

    .wev-btn-primary,
    .wev-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .wev-modal-actions {
        flex-direction: column;
    }

    .wev-modal-content {
        margin: 18% auto;
        width: 95%;
    }
}
