/* Reseteo básico y estilos globales */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #F5F7FA;
}

/* Estilos del AppBar (header) */
.app-bar {
    background-color: #FFFFFF;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 60px;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.leading-button {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leading-button a {
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.title {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Contenido Principal */
.main-content {
    padding: 0 24px;
    width: 100%;
    max-width: 450px; /* Centrado y angosto */
    margin: 0 auto;
}

/* Tarjeta Practyco: visual limpia y responsiva */
.practyco-card {
    margin: 32px 0;
    width: 100%;
    border-radius: 20px;
    background-color: #0b0b1e;
    background-image: url('assets/images/practyco_card.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Mantén una proporción agradable tipo tarjeta bancaria */
    aspect-ratio: 16 / 9;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.practyco-card::before {
    /* Overlay para mejorar contraste texto-imagen */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.35) 35%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

.practyco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.card-content {
    position: relative; /* por encima del overlay */
    z-index: 1;
    height: 100%;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* reparte filas sin forzar min-height */
}

/* Fila 1: área para animación/logos a la derecha */
.card-row-1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 48px; /* flexible, evita “saltos” */
    margin: 0;
}

#lottie-animation {
    height: 40px;
    width: 40px;
}

/* Fila 2: texto del titular */
.card-row-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0; /* quitamos desplazamientos negativos */
    gap: 6px;
}

.holder-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.holder-name {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35); /* refuerza legibilidad */
}

/* Variante compacta en pantallas pequeñas */
@media (max-width: 420px) {
    .practyco-card {
        border-radius: 16px;
        aspect-ratio: 7 / 4; /* un poco más alta para móviles */
    }
    #lottie-animation {
        height: 36px;
        width: 36px;
    }
    .holder-name {
        font-size: 16px;
    }
}


/* Botón Continuar (para index.html) */
.continuar-btn {
    display: block;
    background-color: #0b0b1e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 24px;
    margin-bottom: 40px;
}

.continuar-btn:hover {
    transform: scale(1.03);
}

/* Modal de Bienvenida (para index.html) */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.welcome-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.welcome-modal {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 350px;
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.5s 0.2s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-modal h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 12px;
}

.nombres-quemados {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

#fireworks-animation {
    width: 200px;
    height: 180px;
    margin: -60px auto 0;
}

#close-welcome-btn {
    background-color: #0b0b1e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#close-welcome-btn:hover {
    transform: scale(1.03);
}


/* Estilos del Formulario (para form.html) */
.form-container {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    background-color: #F9F9F9;
  
}

/* ============================================= */
/* --- NUEVO: Estilos para el 'Ojo' --- */
/* ============================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    /* El padding-right deja espacio para el ícono */
    padding-right: 40px; 
}

.toggle-password {
    position: absolute;
    right: 12px; /* Posiciona el ícono dentro del campo */
    cursor: pointer;
    color: #888;
    user-select: none; /* Evita que el ícono sea seleccionado */
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* --- NUEVO: Estilo para el error de contraseña --- */
.password-error-message {
    color: red;
    font-size: 0.875rem; /* 14px */
    height: 1em; /* Reservar espacio para que no salte la UI */
    margin-top: 5px;
}

/* ============================================= */

/* Botón de Enviar */
.submit-btn {
    display: block;
    background-color: #0b0b1e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-top: 24px;
}

.submit-btn:hover {
    transform: scale(1.03);
}

.submit-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
    transform: scale(1);
}

/* ... (todo tu CSS existente va aquí) ... */

/* ============================================= */
/* --- NUEVO: Estilos del Modal "Proceso Completado" --- */
/* ============================================= */
.process-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F7FA; /* Fondo sólido, no transparente */
    display: none; /* Oculto por defecto, JS lo mostrará */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Por encima de todo, incluso del modal de bienvenida */
    padding: 24px;
    text-align: center;
}

.process-complete-modal {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.process-complete-modal h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 12px;
}

.process-complete-modal p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 24px;
}

/* Reutilizamos el estilo del botón 'continuar-btn' */
.process-complete-btn {
    display: block;
    background-color: #0b0b1e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.process-complete-btn:hover {
    transform: scale(1.03);
}