.usuarios-otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.usuarios-otp-container .otp-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.usuarios-otp-container .otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.usuarios-otp-container .otp-header h2 {
    color: #333;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.usuarios-otp-container .otp-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.usuarios-otp-container .otp-form-group {
    margin-bottom: 20px;
}

.usuarios-otp-container .otp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.usuarios-otp-container .otp-form-group input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #DEDBDB !important;
    border-radius: 12px !important;
    font: normal normal normal 14px/24px Open Sans !important;
    transition: all 0.3s ease;
    outline: none;
    background: #f8f9fa;
    box-sizing: border-box;
}

.usuarios-otp-container .otp-form-group input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.usuarios-otp-container .otp-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    padding: 14px;
    background: #000066;
    color: #fff;
    border: none;
    border-radius: 22px;
    font: normal normal 600 14px/17px Open Sans !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usuarios-otp-container .otp-btn:hover:not(:disabled) {
    color: #000066;
    background: #FFFFFF;
    border: 1px solid #000066;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.usuarios-otp-container .otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.usuarios-otp-container .otp-btn-secondary {
    background: #000066 !important;
    color: #fff !important;
    border-color: #000066 !important;
}

.usuarios-otp-container .otp-btn-secondary:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.usuarios-otp-container .otp-message {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 18px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.usuarios-otp-container .otp-message.show {
    display: block;
}

.usuarios-otp-container .otp-message.error {
    background: #fff0f0;
    border-left-color: #f5576c;
}

.usuarios-otp-container .otp-email-highlight {
    color: #667eea;
    font-weight: 600;
}

.usuarios-otp-container .otp-error-msg {
    color: #f5576c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.usuarios-otp-container .otp-error-msg.show {
    display: block;
}

.usuarios-otp-container .otp-hint {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

.usuarios-otp-container .otp-hint span {
    color: #667eea;
    cursor: pointer;
    font-weight: 600;
}

.usuarios-otp-container .otp-hint span:hover {
    text-decoration: underline;
}

.usuarios-otp-container .otp-success-msg {
    color: #4caf50;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    display: none;
}

.usuarios-otp-container .otp-success-msg.show {
    display: block;
}

.usuarios-otp-container .otp-timer-container {
    text-align: center;
    margin: 15px 0 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.usuarios-otp-container .otp-timer-container.warning {
    border-color: #f5576c;
    background: #fff0f0;
}

.usuarios-otp-container .otp-timer-container.expired {
    border-color: #f5576c;
    background: #ffebee;
    opacity: 0.7;
}

.usuarios-otp-container .otp-timer-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.usuarios-otp-container .otp-timer-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.usuarios-otp-container .otp-timer-value.warning {
    color: #f5576c;
}

.usuarios-otp-container .otp-timer-value.expired {
    color: #c62828;
}

.usuarios-otp-container .otp-timer-expired {
    color: #c62828;
    font-weight: bold;
    font-size: 14px;
}

.usuarios-otp-container .otp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: otp-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes otp-spin {
    to {
        transform: rotate(360deg);
    }
}

.usuarios-otp-container .hidden {
    display: none !important;
}

/* Título y subtítulo de la tarjeta OTP */
.otp-titulo {
    text-align: center !important;
    font: normal normal 600 20px/26px Titillium Web !important;
    letter-spacing: 0px !important;
    color: #000066 !important;
    opacity: 1 !important;
}

.otp-subtitulo {
    text-align: center !important;
    font: normal normal normal 14px/24px Open Sans !important;
    letter-spacing: 0px !important;
    color: #131B3C !important;
    opacity: 1 !important;
}

/* Cajas del OTP (6 cuadros) */
.otp-input-cajas {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input-cajas input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a3e;
    border: 2px solid #e4e6f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input-cajas input:focus {
    border-color: #4a50a0;
    box-shadow: 0 0 0 3px rgba(74, 80, 160, 0.08);
    outline: none;
}

/* Link "Reenviar código" */
.otp-reenviar-link {
    text-align: center;
    font-size: 13px;
    color: #00b3e6;
    cursor: pointer;
    margin: 12px 0 24px;
}

.otp-reenviar-link:hover {
    text-decoration: underline;
}

.btn-consultar {
    text-align: center;
    font: normal normal 600 14px/19px Open Sans;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
}

/* Título y subtítulo */
.otp-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a6e;
    margin: 0 0 14px 0;
    text-align: center;
}

.otp-subtitulo {
    font-size: 13.5px;
    color: #6b6f8a;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Input de correo estilo línea */
.otp-input-lineal {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e4e6f0;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input-lineal:focus {
    border-color: #4a50a0;
    box-shadow: 0 0 0 3px rgba(74, 80, 160, 0.08);
}

/* Las 6 casillas del OTP */
.otp-cajas-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 8px;
}

.otp-caja {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a3e;
    border: 1px solid #DEDBDB !important;
    border-radius: 12px !important;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-caja:focus {
    border-color: #4a50a0;
    box-shadow: 0 0 0 3px rgba(74, 80, 160, 0.08);
}

/* Línea del timer + reenviar */
.otp-timer-linea {
    text-align: center;
    font-size: 13px;
    margin: 12px 0 20px;
    color: #4a50a0;
}

.otp-timer-linea #otp-timer-value {
    color: #00b3e6;
    font-weight: 600;
    margin-right: 8px;
}

.otp-timer-linea #otp-timer-value.expirado {
    color: #c4243a;
}

.otp-reenviar-link {
    color: #00b3e6;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.otp-reenviar-link:hover {
    color: #0091bc;
}

/* Botón principal estilo pill */
.otp-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #1a1a6e;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.otp-btn:hover:not(:disabled) {
    background: #0f0f5e;
    transform: translateY(-1px);
}

.otp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error */
.otp-error-msg {
    color: #c4243a;
    font-size: 12.5px;
    text-align: center;
    margin-top: 6px;
    display: none;
}

.otp-error-msg.show {
    display: block;
}

/* Éxito */
.otp-success-msg {
    color: #1a8a5c;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: #e8f7f0;
    border-radius: 8px;
    display: none;
}

.otp-success-msg.show {
    display: block;
}

.hidden {
    display: none !important;
}

/* Texto legal de reCAPTCHA */
.otp-legal {
    font-size: 10.5px;
    color: #9498b3;
    text-align: center;
    margin-top: 18px;
    line-height: 1.5;
}

.otp-legal a {
    color: #4a50a0;
    text-decoration: underline;
}

.otp-legal a:hover {
    color: #2a2f80;
}

/* Ocultar insignia flotante de reCAPTCHA v3 */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}