/* ==========================================================================
   KUMARA - ESTILOS BASE DE AUTENTICACIÓN Y PÁGINAS DE ESTADO
   Alcance: login_modal.html, confirmacion_enviada.html,
            registro_exitoso.html, verificacion_exitosa.html
   ========================================================================== */

/* ─── 1. SCROLLBAR PERSONALIZADO ───────────────────────────────────────── */
#loginModal::-webkit-scrollbar {
    width: 6px;
}

#loginModal::-webkit-scrollbar-track {
    background: transparent;
}

#loginModal::-webkit-scrollbar-thumb {
    background-color: #c49d78;
    border-radius: 10px;
}

/* ─── 2. PESTAÑAS DEL MODAL ─────────────────────────────────────────────── */
#loginModal .km-auth-tabs {
    border-bottom: 1px solid #f7f4f1 !important;
    display: flex;
    justify-content: space-around;
}

#loginModal .nav-tabs .nav-link {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 12px 0;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    transition: all 0.3s ease;
}

#loginModal .nav-tabs .nav-link:hover {
    color: #c49d78;
    background-color: #f7f4f1;
    border-bottom-color: transparent;
}

#loginModal .nav-tabs .nav-link.active {
    color: #333 !important;
    background-color: transparent !important;
    border-bottom: 3px solid #c49d78 !important;
}

#loginModal .nav-link:focus,
#loginModal .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
    color: #333 !important;
}

/* ─── 3. INPUTS Y BOTONES DEL MODAL ─────────────────────────────────────── */
#loginModal .form-control {
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: #fcfaf8;
}

#loginModal .form-control:focus {
    box-shadow: none;
    border-color: #c49d78;
    background-color: #fff;
}

#loginModal .btn-dark {
    background-color: #333;
    border: none;
    border-radius: 10px;
    transition: background 0.3s;
}

#loginModal .btn-dark:hover {
    background-color: #c49d78;
}

.km-toggle-password {
    color: #c49d78;
}

/* ─── 4. TARJETA BASE DE PÁGINAS DE ESTADO ──────────────────────────────── */
/*
 * Patrón visual compartido por: confirmacion_enviada, registro_exitoso,
 * verificacion_exitosa. Usamos .km-status-card como clase raíz.
 */
.km-status-wrapper {
    min-height: calc(100vh - 70px);
    /* Descuenta el navbar fixed */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem) 1rem;
    margin-top: 70px;
    /* Compensa el navbar fixed */
}

.km-status-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: clamp(2rem, 6vw, 3.5rem);
    width: 100%;
    max-width: 540px;
    text-align: center;
}

/* ─── 5. ICONO DE ESTADO ────────────────────────────────────────────────── */
.km-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.km-status-icon--send {
    background-color: #f7f4f1;
    color: #c49d78;
}

.km-status-icon--success {
    background-color: #edf7f0;
    color: #28a745;
}

.km-status-icon--pending {
    background-color: #fff8ec;
    color: #f0a500;
}

/* ─── 6. TIPOGRAFÍA ─────────────────────────────────────────────────────── */
.km-status-card .km-status-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.km-status-card .km-status-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ─── 7. SEPARADOR ──────────────────────────────────────────────────────── */
.km-status-divider {
    border: none;
    border-top: 1px solid #f0ece8;
    margin: 1.75rem 0;
}

/* ─── 8. CAJA DE PASOS ──────────────────────────────────────────────────── */
.km-steps-box {
    background: #f7f4f1;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    margin-bottom: 1.75rem;
}

.km-steps-box .km-steps-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 0.75rem;
}

.km-steps-box ol {
    margin: 0;
    padding-left: 1.25rem;
}

.km-steps-box ol li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.km-steps-box ol li:last-child {
    margin-bottom: 0;
}

/* ─── 9. BOTONES DE ACCIÓN ──────────────────────────────────────────────── */
.km-btn-primary-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.km-btn-primary-dark:hover {
    background-color: #c49d78;
    color: #fff;
    transform: translateY(-2px);
}

.km-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.km-btn-outline-dark:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* ─── 10. BADGE DE EMAIL ────────────────────────────────────────────────── */
.km-email-badge {
    display: inline-block;
    background: #f7f4f1;
    border: 1px solid #e8e0d8;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    word-break: break-all;
}

/* ─── 11. RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .km-status-card {
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid #f0ece8;
    }

    .km-btn-primary-dark,
    .km-btn-outline-dark {
        width: 100%;
        justify-content: center;
    }
}

/* ─── 12. FORMULARIO DE REGISTRO DE TIENDA ──────────────────────────────── */
/*
 * Usado en: registro_tienda.html
 * Reemplaza los estilos inline que existían en ese template.
 */
.km-form-page-wrapper {
    padding-top: 20px;
    /* Compensa el navbar fixed */
}

.km-form-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center;
}

.km-form-header__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.km-form-header__sub {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
}

.km-form-body {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem 4rem;
}

/* Banda de información de cuenta */
.km-account-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f4f1;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #444;
}

.km-account-strip .badge {
    background-color: #1a1a1a;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* Alerta de rechazo */
.km-rejection-alert {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.km-rejection-alert h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.km-rejection-alert p {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0;
}

/* Títulos de sección */
.km-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Inputs y selects del formulario de registro */
.km-form-body .form-control,
.km-form-body .form-select {
    border-radius: 10px;
    border: 1px solid #e8e0d8;
    background-color: #fcfaf8;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.km-form-body .form-control:focus,
.km-form-body .form-select:focus {
    border-color: #c49d78;
    box-shadow: 0 0 0 3px rgba(196, 157, 120, 0.15);
    background-color: #fff;
    outline: none;
}

.km-form-body .form-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    margin-bottom: 0.4rem;
}

/* Caja de aviso informativo (instrucciones de documentos) */
.km-doc-hint {
    background: #f7f4f1;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Caja de términos y condiciones */
.km-legal-check-box {
    background: #f7f4f1;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.km-legal-check-box .form-check {
    margin-bottom: 0.75rem;
}

.km-legal-check-box .form-check:last-child {
    margin-bottom: 0;
}

.km-legal-check-box .form-check-input:checked {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.km-legal-check-box .form-check-label {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
}

/* Botón de envío del formulario */
.km-btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.km-btn-submit:hover {
    background-color: #c49d78;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .km-form-header__title {
        letter-spacing: 1.5px;
    }

    .km-account-strip {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}