/* ==========================================================================
   1. RESET BASE Y CONFIGURACIÓN DEL SISTEMA (Afecta a etiquetas globales)
   ========================================================================== */
html { 
    line-height: 1.15; 
    -ms-text-size-adjust: 100%; 
    -webkit-text-size-adjust: 100%; 
    box-sizing: border-box; 
    font-size: 20px; 
}
*, *:before, *:after { box-sizing: inherit; }

body { 
    margin: 0; 
    background: #1D2026; 
    color: #8A94A7; 
    font-size: 1rem; 
    font-family: "IBM Plex Sans", sans-serif;
}

img, svg { 
    border-style: none; 
    display: block; 
    height: auto; 
    max-width: 100%; 
    vertical-align: middle; 
}

/* Tipografía global para etiquetas */
h1, h4 { 
    clear: both; 
    color: #fff; 
    font-weight: 600; 
}
h1 { font-size: 38px; line-height: 48px; margin-top: 48px; margin-bottom: 16px; }
h4 { font-size: 20px; line-height: 30px; margin-top: 24px; margin-bottom: 4px; }
p { margin-top: 0; margin-bottom: 24px; }

@media (min-width: 641px) {
    h1 { font-size: 44px; line-height: 54px; }
    h4 { font-size: 24px; line-height: 34px; }
}

/* ==========================================================================
   2. COMPONENTE ESPECÍFICO DE LA INTERFAZ (Chat interactivo)
   ========================================================================== */
.chat-demo {
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

.msg { 
    padding: 10px 14px; 
    border-radius: 16px; 
    font-size: 13px; 
    line-height: 1.4; 
    max-width: 80%; 
    word-wrap: break-word; 
    margin: 0; 
}

.msg.user { 
    align-self: flex-start; 
    background: #E2E8F0; 
    color: #0f172a; 
    border-bottom-left-radius: 6px; 
    text-align: left; 
}

.msg.bot { 
    align-self: flex-end; 
    background: #2563EB; 
    color: white; 
    border-bottom-right-radius: 6px; 
    text-align: left; 
}

/* ==========================================================================
   5. ESTILOS FALTANTES PARA EL FORMULARIO DE REGISTRO
   ========================================================================== */

/* Contenedor principal de la tarjeta */
.card {
    background: #242830; /* Fondo oscuro acorde a tu paleta (.is-boxed) */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    margin: 5vh auto; /* Centrado vertical y horizontal */
    box-sizing: border-box;
}

/* Estilo para los títulos h2 que tiene el formulario */
h2 {
    color: #fff;
    font-weight: 600;
    font-size: 28px;
    line-height: 38px;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

/* Etiquetas de texto de los campos */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #8A94A7; /* Color de texto secundario que ya usas */
    text-align: left;
    font-weight: 600;
}

/* Campos de entrada (Inputs) */
input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #1D2026; /* Fondo oscuro interno para el input */
    border: 1px solid #323842; /* Borde sutil */
    border-radius: 6px;
    color: #fff; /* Texto que escribe el usuario en blanco */
    font-size: 1rem;
    font-family: "IBM Plex Sans", sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #2563EB; /* Azul de tu botón de chat al enfocar */
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mensajes de estado (error o éxito) */
.status {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Estilo unificado para los botones del formulario */
.btn-custom {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px; /* Ajustado para que coincida con tus inputs */
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    height: 48px;
    width: 50%; /* Se reparten exactamente el 50% del ancho cada uno */
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease;
}

/* Color específico para el botón principal (submit) */
button[type="submit"].btn-custom {
    border: none;
    color: #fff;
    background: #0270D7;
    background: linear-gradient(65deg, #0270D7 0, #0F8AFD 100%);
}

button[type="submit"].btn-custom:hover {
    background: #0982f4;
    background: linear-gradient(65deg, #0275e1 0, #198ffd 100%);
}

/*Sera que si?*/

/* ==========================================================================
   6. ESTILOS PARA EL CAMPO SELECT (Igualar a los inputs)
   ========================================================================== */
select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #1D2026; /* Fondo oscuro interno igual al input */
    border: 1px solid #323842; /* Borde sutil igual al input */
    border-radius: 6px;
    color: #fff; /* Texto en blanco igual al input */
    font-size: 1rem;
    font-family: "IBM Plex Sans", sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    
    /* Personalización opcional para la flecha nativa */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: #2563EB; /* Mismo borde azul que el input al enfocar */
}

/* Opcional: Color de fondo de las opciones al desplegarse en algunos navegadores */
select option {
    background: #1D2026;
    color: #fff;
}



/*----------------------- profile ------------------------------------*/
/* Sistema de Layout para Barra Lateral */
.dashboard-layout {
	display: flex;
	min-height: calc(100vh - 80px);
}

.sidebar {
	width: 260px;
        background: #1D2026;
        border-right: 1px solid #242830;
        padding: 24px 0;
}

.sidebar-menu {
        list-style: none;
        padding: 0;
        margin: 0;
}

.sidebar-item a {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        color: #8A94A7;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.2s ease;
        border-left: 4px solid transparent;
}

.sidebar-item.active a, .sidebar-item a:hover {
        color: #fff;
        background: #242830;
        border-left-color: #0270D7;
}

.main-content {
        flex: 1;
        padding: 40px;
        background: #181A1F;
}

/* Control de visibilidad de pestañas */
.tab-content {
        display: none;
}

.tab-content.active-tab {
        display: block;
}

/* Estilos mejorados para el Simulador Financiero */
.grid-simulador {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
        margin-top: 16px;
}

.card-dashboard {
        background: #2C3039;
        padding: 24px;
        border-radius: 6px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        margin-bottom: 24px;
}

.input-simulador {
        background: #1D2026;
        border: 1px solid #3B404C;
        color: #fff;
        padding: 10px 14px;
        border-radius: 4px;
        width: 100%;
        margin-bottom: 12px;
        font-size: 14px;
}

.input-simulador:focus {
        border-color: #0270D7;
        outline: none;
}

.fila-servicio {
        display: flex;
        gap: 12px;
        margin-bottom: 12px;
}

.btn-danger {
        background: #FF5252;
        color: #fff !important;
        border: none;
        padding: 0 12px;
        border-radius: 4px;
        cursor: pointer;
}

@media (max-width: 768px) {
        .dashboard-layout { flex-direction: column; }
        .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #242830; }
}