﻿:root {
    --azul-principal: #000080;
    --azul-secundario: #386EB3;
    --dorado: #B59D48;
    --gris-fondo: #F2F2F2;
    --gris-borde: #E0E0E0;
    --texto: #333;
}

/* Fondo general */
body {
    background: linear-gradient(135deg, #f2f2f2, #e6ecf5);
    font-family: 'Segoe UI', sans-serif;
}

/* Contenedor principal */
.contenedor {
    background: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 480px;
    margin: 60px auto;
}

/* CONTENEDOR */
.contenedor-verificacion {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 420px;
    margin: 50px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

    .logo img {
        width: 120px;
    }

/* CORREO */
.correo-box {
    background: #f5f7fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

    .correo-box strong {
        color: var(--azul-principal);
    }


/* Título */
.titulo {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--azul-principal);
    margin-bottom: 25px;
    position: relative;
}

    .titulo::after {
        content: "";
        width: 60px;
        height: 3px;
        background: var(--dorado);
        display: block;
        margin: 10px auto 0;
    }

/* Subtítulo */
.subtitulo {
    font-size: 14px;
    color: var(--azul-secundario);
    margin: 20px 0 10px;
    font-weight: 600;
}

.subtexto {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Inputs */
.grupo {
    margin-bottom: 15px;
}

    .grupo label {
        display: block;
        font-size: 13px;
        margin-bottom: 5px;
        color: var(--texto);
    }
.input-icon-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

.input-icon-group .input {
    padding-left: 30px;
    padding-right: 30px;
}
.input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    transition: 0.3s;
}

    .input:focus {
        border-color: var(--azul-secundario);
        outline: none;
        box-shadow: 0 0 0 2px rgba(56,110,179,0.2);
    }

.input-busqueda {
    position: relative;
}

    .input-busqueda .input {
        padding-right: 45px; /* espacio para el botón */
    }

/*.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;  gris elegante 
    line-height: 1.4;
}*/

.email-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* estados */
.input-valid {
    border: 2px solid #16a34a !important;
    background-color: #f0fdf4;
}

.input-invalid {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2;
}
.password-hint-box {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #374151;
    background: #f3f6fb;
    border-left: 3px solid #0b1e6b;
    border-radius: 6px;
}
.input-icon-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
}

.input-icon-group .input {
    padding-left: 30px; /* espacio para el icono */
}

/* BOTÓN DENTRO DEL INPUT */
.btn-buscar {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-principal);
    color: white;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

    .btn-buscar:hover {
        background: #000060;
    }
    .btn-buscar.disabled {
        background: #ccc;
        cursor: not-allowed;
        pointer-events: none;
    }

.acciones-info {
    margin-top: 15px;
    display: flex;
    /*justify-content: flex-end;*/
    justify-content: center;
    gap: 10px;
}
    /* Botones más consistentes */
    .acciones-info .btn {
        min-width: 140px;
    }

/* BOTÓN CONFIRMAR (azul institucional) */
.btn-confirmar {
    background: var(--azul-principal);
    color: white;
}

    .btn-confirmar:hover {
        background: #000060;
    }

/* BOTÓN CANCELAR */
.btn-cancelar {
    background: #e0e0e0;
    color: #333;
}

    .btn-cancelar:hover {
        background: #c7c7c7;
    }

/* Info box */
.info-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-item {
    font-size: 13px;
}

    .info-item strong {
        color: var(--azul-principal);
    }

/* CODIGO */
.codigo-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}
.codigo-input {
    width: 50px;
    height: 55px;
    font-size: 22px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
}
    .codigo-input:focus {
        border-color: var(--azul-secundario);
        box-shadow: 0 0 0 2px rgba(56,110,179,0.2);
        outline: none;
    }


/* Botones */
.botones {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

/* Botón principal */
.btn-primary {
    background: var(--azul-principal);
    color: white;
}

    .btn-primary:hover {
        background: #000060;
    }

/* Botón secundario */
.btn-secondary {
    background: #ccc;
    color: #333;
}

    .btn-secondary:hover {
        background: #b5b5b5;
    }

.btn-verificar {
    background: var(--azul-principal);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-verificar:hover {
        background: #000060;
    }

/* LINKS */
.acciones {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.reenviar {
    color: var(--dorado);
    font-size: 13px;
    text-decoration: none;
}

.salir {
    color: red;
    font-size: 13px;
    text-decoration: none;
}
/* Loader */
.loader {
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--azul-principal);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Fin: Loader*/

/* Animación Verificación Correo */
/* Para mostrar: */
.mostrar {
    display: block !important;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Para ocultar: */
.ocultar {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
/* Fin: Animación Verificación Correo */


/* Spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
.btn {
    transition: all 0.2s ease;
}

    .btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
.d-none {
    display: none !important;
}

#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Fin Spinner */

