/* =========================================
   Reset Básico y Variables (Dark Theme)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0d121f;
    color: #f8fafc;
    overflow-x: hidden;
}

/* =========================================
   Navegación (Header)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    position: relative; 
    width: 160px; 
    height: 30px; 
    display: flex;
    align-items: center;
}

.logo-img {
    position: absolute; 
    left: 0;
    height: 85px; /* Tamaño del logo */
    width: auto;
    max-width: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f8fafc;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    text-decoration: none;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.btn-join {
    background-color: #ff3b30;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-join:hover {
    opacity: 0.9;
}

/* =========================================
   Hero Section (Index.html)
   ========================================= */
.hero-dark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 5%;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.badge .dot {
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
}

.hero-text h2 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: #ff3b30;
}

.hero-text p {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #ff3b30;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Ventana de Código y Animaciones */
.code-window {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

.window-header {
    background: #1f2937;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.mac-dots { display: flex; gap: 6px; }
.mac-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green, .dot-green-small { background: #27c93f; }
.dot-green-small { width: 6px; height: 6px; display: inline-block; border-radius: 50%; margin-right: 4px; }

.code-content {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.8;
}

.comment { color: #64748b; }
.keyword { color: #c678dd; }
.string { color: #98c379; }
.function { color: #61afef; }
.number { color: #d19a66; }
.variable { color: #e5c07b; }

.code-line {
    display: inline-block; 
    opacity: 0; 
    animation: fadeSlideIn 0.5s ease-out forwards;
}

/* Tarjetas pequeñas (Index) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 20px;
}

.stat-info h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.positive {
    color: #22c55e;
    font-size: 12px;
    margin-left: 5px;
}

.stat-info p {
    color: #94a3b8;
    font-size: 12px;
}

/* =========================================
   Sección: Métricas (metricas.html)
   ========================================= */
.metrics-section {
    padding: 60px 5%;
    background-color: #0d121f;
    color: #f8fafc;
}

.metrics-features {
    display: flex;
    justify-content: space-between;
    background: #1e293b;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid #334155;
}

.feature-item { display: flex; align-items: center; gap: 12px; }
.feat-icon { font-size: 20px; }
.feature-item div { display: flex; flex-direction: column; }
.feature-item strong { font-size: 13px; font-weight: 700; }
.feature-item span { font-size: 11px; color: #94a3b8; }

.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.code-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.metrics-title-group h2 { font-size: 32px; font-weight: 800; margin-bottom: 5px; }
.metrics-title-group .highlight { color: #ff3b30; }
.metrics-title-group p { color: #94a3b8; font-size: 14px; }

.btn-outline-small {
    padding: 8px 16px;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-small:hover { background: #334155; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.metric-card h3 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }

.trend { display: flex; flex-direction: column; gap: 8px; }
.trend-text { font-size: 11px; font-weight: 600; }
.trend.positive .trend-text { color: #27c93f; }
.trend.neutral .trend-text { color: #61afef; }

.sparkline { width: 100%; height: 25px; margin-top: 5px; }

.metric-card-wide {
    background: linear-gradient(180deg, #1e293b, #0a0f18);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.wide-content { position: relative; z-index: 2; }
.wide-content > span {
    color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; display: block; margin-bottom: 15px;
}

.wide-data { display: flex; justify-content: space-between; align-items: baseline; }
.wide-data h3 { font-size: 48px; font-weight: 800; }
.wide-data .unit { font-size: 24px; font-weight: 600; color: #94a3b8; }

.metric-card-wide::after {
    content: '';
    position: absolute;
    right: 0; bottom: 0;
    width: 40%; height: 100%;
    background: radial-gradient(circle at bottom right, rgba(39, 201, 63, 0.1), transparent 70%);
    z-index: 1;
}

/* =========================================
   Pie de Página (Footer)
   ========================================= */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    background-color: #0d121f; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand h3 { font-size: 16px; font-weight: 800; color: #f8fafc; margin-bottom: 4px; }
.footer-brand p { font-size: 11px; color: #ff3b30; font-weight: 600; }

.footer-links { display: flex; list-style: none; gap: 30px; }
.footer-links a { text-decoration: none; color: #94a3b8; font-size: 12px; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: #f8fafc; }

.footer-socials { display: flex; gap: 12px; }

.icon-btn {
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.icon-btn:hover { border-color: #ff3b30; color: #f8fafc; }

/* =========================================
   Keyframes (Animaciones)
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Pantalla de Registro (Diseño Figma Exacto)
   ========================================= */
.auth-body {
    background-color: #0b1120;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    color: #f8fafc;
}

.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* Panel Izquierdo: Ajustes Pixel-Perfect */
.auth-brand-panel {
    background: radial-gradient(circle at 0% 0%, rgba(255, 59, 48, 0.12) 0%, transparent 45%), #0b1120;
    padding: 0 12%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header-custom { margin-bottom: 50px; }

.logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bolt-icon-logo {
    background: #ff3b30;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.logo-text {
    color: #f8fafc;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-family: 'Courier New', Courier, monospace;
    color: #ff5f56;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 46px; 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #f8fafc;
}

.highlight-text { color: #ff5f56; }

.brand-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-code-window-custom {
    background: #1e2532;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 0;
    animation: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.auth-code-window-custom .window-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-syntax pre { line-height: 1.8; font-size: 13px; }
.s-white { color: #e2e8f0; }
.s-green { color: #27c93f; }
.s-blue { color: #61afef; }
.s-cyan { color: #56b6c2; }
.s-yellow { color: #e5c07b; }
.s-orange { color: #d19a66; }

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0 5%;
}

.auth-card {
    background: #141b28; 
    border: 1px solid #1f2937;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.auth-card-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
}

.auth-init {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bolt-icon { color: #ff5f56; font-size: 15px; }
.close-btn { background: transparent; border: none; color: #64748b; font-size: 20px; cursor: pointer; }

.auth-card-body { padding: 40px; }
.auth-card-body h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-card-body p { color: #94a3b8; font-size: 14px; margin-bottom: 35px; }

/* Inputs y Formularios Escalados */
.form-group { margin-bottom: 22px; }
.form-group label { 
    display: block; 
    font-size: 11px;
    color: #94a3b8; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
}

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .form-control {
    width: 100%;
    background: #0f1522; 
    border: 1px solid #1f2937;
    color: #f8fafc;
    padding: 14px 40px 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.input-wrapper .form-control::placeholder { color: #475569; }
.input-wrapper .form-control:focus { outline: none; border-color: #64748b; }
.status-icon { position: absolute; right: 16px; font-size: 14px; }

/* Estados de Validación */
.input-wrapper.valid .form-control { border-color: #27c93f; }
.input-wrapper.valid .status-icon { color: #27c93f; }
.input-wrapper.invalid .form-control { border-color: #ff3b30; }
.input-wrapper.invalid .status-icon { color: #ff3b30; }
.error-text { display: block; color: #ff3b30; font-size: 12px; margin-top: 8px; }

/* Botón y Paginación Escalados */
.btn-block { 
    width: 100%; 
    padding: 16px;
    font-size: 16px; 
    margin-top: 15px; 
    background: #ff3b30; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.3s;
}
.btn-block:hover { background: #e0352b; }

.auth-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    margin-bottom: 30px;
}

.step-badge {
    background: transparent;
    border: 1px solid #1f2937;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.step-badge.active {
    background: #e2e8f0;
    color: #0f1522; 
    border-color: #e2e8f0;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid #1f2937;
    padding-top: 20px;
}
.footer-text { color: #64748b; }
.footer-link { color: #f8fafc; text-decoration: none; font-weight: 600; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   Paso 2: Estatus Logístico (logistica.html)
   ========================================= */
.logistics-body {
    background-color: #0b1120;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logistics-container {
    width: 100%;
    max-width: 1100px;
    padding: 40px 5%;
}

.back-link {
    display: inline-block;
    color: #d19a66;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 40px;
    font-family: 'Courier New', Courier, monospace;
}
.back-link:hover { text-decoration: underline; }

.logistics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.mono-step {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #ff5f56;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.logistics-title-group h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.logistics-title-group p { color: #94a3b8; font-size: 15px; }

.status-badge {
    background: #141b28;
    border: 1px solid #1f2937;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
}

.status-badge .code-mono { font-size: 13px; color: #e2e8f0; }
.undefined-text { color: #61afef; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.logic-card input { display: none; }

.card-inner {
    background: #141b28;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-inner:hover { border-color: #334155; transform: translateY(-3px); }

.logic-card input:checked + .card-inner {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.03);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-icon {
    font-size: 20px;
    color: #61afef;
}

.badge-outline {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
}
.badge-outline.green { color: #27c93f; border-color: rgba(39, 201, 63, 0.3); }
.badge-outline.blue { color: #61afef; border-color: rgba(97, 175, 239, 0.3); }

.card-body { flex-grow: 1; }
.card-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: #f8fafc; }
.card-body p { color: #94a3b8; font-size: 13px; line-height: 1.6; margin-bottom: 30px; }

.card-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.code-comment {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #d19a66;
}

.action-footer {
    border-top: 1px solid #1f2937;
    padding-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-continue {
    background: #141b28;
    color: #475569;
    border: 1px solid #1f2937;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: not-allowed;
    transition: all 0.3s;
}

.btn-continue.active {
    background: #273347;
    color: #f8fafc;
    border-color: #334155;
    cursor: pointer;
}
.btn-continue.active:hover { background: #334155; }

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { opacity: 0.5; box-shadow: 0 0 0 5px rgba(39, 201, 63, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

/* =========================================
   Sección: Documentación (documentacion.html)
   ========================================= */
.docs-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 5%;
    align-items: flex-start;
}

.docs-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
}

.docs-content p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.docs-content strong {
    color: #f8fafc;
}

.docs-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 25px;
}

.doc-stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 20px;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.doc-stat-card h4 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-status {
    font-size: 11px;
    font-weight: 600;
}
.stat-status.warning { color: #ffbd2e; }
.stat-status.info { color: #61afef; }

.whatsapp-banner {
    background: rgba(39, 201, 63, 0.05);
    border: 1px solid rgba(39, 201, 63, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-icon {
    background: #27c93f;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}

.whatsapp-banner strong { display: block; font-size: 14px; margin-bottom: 3px; color: #27c93f; }
.whatsapp-banner span { font-size: 12px; color: #94a3b8; }

.large-code-window {
    background: #0B1120;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-copy {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
}
.btn-copy:hover { color: #f8fafc; }

.code-editor-content {
    padding: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-row {
    display: flex;
    padding: 2px 20px;
}

.code-row:hover:not(.highlighted) {
    background: rgba(255,255,255,0.02);
}

.line-num {
    color: #475569;
    width: 30px;
    user-select: none;
    text-align: right;
    margin-right: 20px;
}

.code-text {
    color: #e2e8f0;
}

.code-row.highlighted {
    background: rgba(97, 175, 239, 0.15);
    border-left: 3px solid #61afef;
}

.code-row.highlighted .line-num {
    color: #61afef;
}

.window-footer {
    background: #0f172a;
    padding: 10px 20px;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-dot {
    width: 8px;
    height: 8px;
    background: #61afef;
    border-radius: 50%;
}

/* =========================================
   Sección: El Flujo de Trabajo (Index)
   ========================================= */
.workflow-section {
    padding: 80px 5%;
    background-color: #0b1120;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.workflow-header {
    text-align: center;
    margin-bottom: 50px;
}

.workflow-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.workflow-header p {
    color: #94a3b8;
    font-size: 16px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.workflow-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: #ff3b30;
}

.card-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ff3b30;
    font-weight: bold;
}

.workflow-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.workflow-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    gap: 10px;
}

.tag {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #f8fafc;
}

.progress-bar-container {
    background: #0f172a;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    background: #ff3b30;
    width: 75%;
    height: 100%;
    border-radius: 3px;
}

.progress-text {
    font-size: 10px;
    font-weight: bold;
    color: #94a3b8;
    letter-spacing: 1px;
}

.match-result {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.match-result strong {
    display: block;
    font-size: 13px;
}

.match-score {
    color: #27c93f;
    font-size: 11px;
    font-weight: bold;
}
/* =========================================
   Paso 3: Matriz de Disponibilidad (IDE Style)
   ========================================= */
.ide-body {
    background-color: #050810;
    color: #f8fafc;
    min-height: 100vh; /* Cambiamos a min-height */
    overflow: auto; /* Permitimos scroll si es necesario */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px; /* Agregamos margen arriba y abajo */
}

.ide-window {
    background-color: #0d121f;
    border: 1px solid #1f2937;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    max-height: none; /* Quitamos la restricción */
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* Pestañas (Tabs) */
.ide-tabs-bar {
    background-color: #080c14;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    border-bottom: 1px solid #1f2937;
}

.ide-tabs { display: flex; }

.tab {
    padding: 10px 20px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-right: 1px solid #1f2937;
}

.tab.active {
    background-color: #0d121f;
    color: #f8fafc;
    border-top: 2px solid #ff3b30;
}

.dot-red { width: 8px; height: 8px; background: #ff3b30; border-radius: 50%; }
.close-tab { font-size: 14px; margin-left: 5px; opacity: 0.6; }
.close-tab:hover { opacity: 1; color: #ff3b30; }

.geo-profile {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #27c93f;
}

/* Cuerpo del Editor */
.ide-content {
    display: flex;
}

.line-numbers {
    padding: 30px 15px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #334155;
    text-align: right;
    line-height: 2.15; /* Interlineado perfecto para acompañar las celdas altas */
    user-select: none;
}

.ide-main-area {
    padding: 30px 40px 40px 20px; 
    flex-grow: 1;
}
/* Reducimos espacios entre los textos superiores */
.matrix-header { margin-bottom: 15px; }
.instruction-banner { margin-bottom: 15px; }
.line-numbers { line-height: 1.7; padding: 20px 15px; }

/* Títulos y Leyenda */
.title-and-legend {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.title-and-legend h1 { font-size: 34px; font-weight: 800; }

.legend { display: flex; gap: 15px; font-size: 12px; color: #94a3b8; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.box { width: 12px; height: 12px; border-radius: 2px; }
.box.free { background: rgba(39, 201, 63, 0.1); border: 1px solid #27c93f; }
.box.busy { background: #1e2532; border: 1px solid #334155; }

/* Banner de Instrucciones */
.instruction-banner {
    background: rgba(39, 201, 63, 0.05);
    border: 1px solid rgba(39, 201, 63, 0.2);
    color: #27c93f;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    margin-bottom: 30px;
}

/* La Cuadrícula del Horario */
.schedule-grid {
    display: grid;
    grid-template-columns: 60px repeat(5, 1fr);
    gap: 4px; /* Líneas de separación más marcadas */
    user-select: none;
}

.grid-header {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.hour-header { text-align: left; padding-left: 10px; }

.grid-time-label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.grid-cell {
    height: 45px; /* Recuperamos la altura original y espaciosa */
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: background-color 0.1s;
}

/* Estados de las Celdas (Colores Sólidos del Diseño) */
.grid-cell.free {
    background: #0f291e; /* Verde oscuro sólido y elegante */
}

.grid-cell.free:hover {
    background: #163c2c;
}

.grid-cell.busy {
    background: #1e2532; /* Gris azulado idéntico al diseño */
}

.grid-cell.busy:hover {
    background: #2a3446;
}

/* Rediseño del Botón para integrarlo al entorno IDE */
.action-footer .btn-primary {
    background: #1e2532;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 10px 25px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    border-radius: 4px;
    width: auto;
    box-shadow: none !important; /* MAGIA: Esto elimina el resplandor rojo del registro */
    transition: all 0.2s;
    margin-top: 10px;
}

.action-footer .btn-primary:hover {
    background: #27c93f; 
    border-color: #27c93f;
    color: #050810;
}
/* =========================================
   MODAL DE JORNADA LABORAL (logistica.html)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 16, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #141b28;
    border: 1px solid #1f2937;
    width: 380px;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box { transform: translateY(0); }

/* Cabecera del Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-tag { display: flex; align-items: center; gap: 8px; }
.icon-orange { color: #d19a66; font-size: 14px; }
.mono-text { font-family: 'Fira Code', monospace; font-size: 12px; color: #94a3b8; }

.close-btn {
    background: none; border: none;
    color: #64748b; font-size: 20px;
    cursor: pointer; transition: color 0.2s;
}
.close-btn:hover { color: #f8fafc; }

/* Títulos */
.modal-title-area h2 { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.modal-title-area p { font-size: 12px; color: #94a3b8; line-height: 1.5; margin-bottom: 25px; }

/* Formularios */
.time-inputs-container { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }

.input-group label {
    display: block; font-size: 10px; font-weight: 700;
    color: #94a3b8; margin-bottom: 6px; letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    border: 1px solid #1f2937;
    border-radius: 4px;
    background: #0b1120;
    transition: all 0.2s;
}

.time-input {
    width: 100%; background: transparent; border: none;
    color: #f8fafc; padding: 12px 15px;
    font-family: 'Fira Code', monospace; font-size: 14px;
    outline: none;
}
/* Estilizar el icono del reloj nativo del navegador */
.time-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.5; cursor: pointer; }

/* Estados de Validación (Verde y Rojo) */
.input-wrapper.valid { border-color: #27c93f; }
.input-wrapper.valid::after {
    content: '✔'; position: absolute; right: 15px; top: 12px;
    color: #27c93f; font-size: 12px; pointer-events: none;
}

.input-wrapper.invalid { border-color: #ff3b30; }
.input-wrapper.invalid::after {
    content: '!'; position: absolute; right: 15px; top: 12px;
    color: #ff3b30; font-size: 14px; font-weight: bold; pointer-events: none;
}

.error-text {
    color: #ff3b30; font-size: 10px; margin-top: 6px;
    display: none; font-weight: 600;
}
.error-text.show { display: block; }

/* Bloque de código */
.code-status-block {
    background: #0b1120; border: 1px solid #1f2937;
    padding: 12px; border-radius: 4px;
    margin-bottom: 25px;
}

/* Botones */
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-modal-primary {
    background: #ff5f56; color: #fff; border: none;
    padding: 12px; font-weight: 700; font-size: 13px;
    border-radius: 4px; cursor: pointer; transition: all 0.3s;
}
.btn-modal-primary:hover { background: #ff4a40; }

/* Botón Verde (Éxito) */
.btn-modal-primary.success-state { background: #27c93f; color: #050810; pointer-events: none; }

.btn-modal-secondary {
    background: transparent; color: #94a3b8; border: none;
    padding: 10px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: color 0.2s;
}
.btn-modal-secondary:hover { color: #f8fafc; }
/* Celda Bloqueada (Jornada Laboral o Viaje) */
.grid-cell.locked {
    /* Fondo con rayas diagonales estilo advertencia pero oscuro */
    background: repeating-linear-gradient(
        45deg,
        #0b1120,
        #0b1120 10px,
        #1e293b 10px,
        #1e293b 20px
    );
    cursor: not-allowed;
    opacity: 0.7;
}
/* =========================================
   PANTALLA DE STACK TECNOLÓGICO
   ========================================= */

/* Ajustes de área para scroll */
.stack-area {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 20px;
}
.tech-scroll-area::-webkit-scrollbar { width: 6px; }
.tech-scroll-area::-webkit-scrollbar-thumb { background-color: #1f2937; border-radius: 4px; }

/* Buscador */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #64748b;
    pointer-events: none;
}

.search-container input {
    width: 100%;
    background: #0d131f;
    border: 1px solid #1f2937;
    border-radius: 6px;
    padding: 12px 15px 12px 40px;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-container input:focus { border-color: #334155; }

/* Fila de Seleccionados */
.selected-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    min-height: 32px;
}

.selected-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
}

.selected-tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.selected-pill {
    background: transparent;
    border: 1px solid #27c93f;
    color: #27c93f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-x {
    cursor: pointer;
    font-weight: bold;
}
.remove-x:hover { color: #fff; }

.clear-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-btn:hover { color: #f8fafc; }

/* Categorías y Botones de Tecnología */
.tech-category { margin-bottom: 25px; }

.category-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mono-icon {
    font-family: 'Fira Code', monospace;
    font-weight: normal;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: #141b28;
    border: 1px solid #1f2937;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tech-tag:hover {
    background: #1e293b;
    color: #f8fafc;
}

/* Estado Seleccionado de la Etiqueta */
.tech-tag.selected {
    background: #0f291e;
    border-color: #27c93f;
    color: #27c93f;
}

/* Banner de Información */
.info-banner {
    background: #0f172a;
    border: 1px solid #1e3a8a;
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
}

.info-text h4 {
    color: #60a5fa;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-text p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

/* Footer y Botón */
.stack-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stack-footer .btn-primary {
    background: #ff5f56;
    color: #fff;
    width: 100%;
    padding: 15px;
    border-radius: 6px;
}

.stack-footer .btn-primary:hover { background: #ff4a40; }

.footer-code {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #475569;
}
#stackCounter {
    margin-left: auto;
    margin-right: 20px; /* Un pequeño margen para que no quede pegado al borde */
}
/* =========================================
   ENTORNO IDE DE EVALUACIÓN (test.html)
   ========================================= */
.ide-dark-body {
    background: #090c15;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.test-ide-container {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: #0d111a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Barra superior */
.ide-topbar {
    background: #050810;
    border-bottom: 1px solid #1f2937;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #64748b;
}

/* Distribución principal */
.ide-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Explorador Izquierdo */
.ide-sidebar {
    width: 220px;
    background: #090c15;
    border-right: 1px solid #1f2937;
    padding: 20px 10px;
}
.sidebar-title { color: #64748b; font-size: 11px; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.folder-title { color: #f8fafc; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
    padding: 6px 10px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}
.file-list li.active-file { background: #1f2937; color: #ff5f56; }

/* Editor de Código Central */
.ide-editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0d111a;
}
.editor-tabs {
    display: flex;
    background: #090c15;
    border-bottom: 1px solid #1f2937;
    padding: 0 10px;
    align-items: center;
}
.tech-badge {
    background: #1e3a8a;
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 15px;
    border: 1px solid #3b82f6;
}
.editor-content { padding: 20px; flex: 1; overflow-y: auto; }
.back-link-subtle { color: #475569; font-size: 12px; text-decoration: none; font-family: 'Fira Code', monospace; }
.step-label { color: #64748b; font-size: 12px; font-family: 'Fira Code', monospace; margin: 20px 0; }

/* Código con números de línea */
.code-editor { font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.6; }
.code-line { display: flex; }
.line-number { width: 30px; color: #475569; user-select: none; text-align: right; margin-right: 15px; }
.line-content { color: #abb2bf; white-space: pre; }
.highlight-blank { background: #1f2937; border-bottom: 2px solid #ff5f56; color: #fff; padding: 0 10px; }

/* Panel Derecho de Cuestionario */
.ide-quiz-panel {
    width: 380px;
    background: #111827;
    border-left: 1px solid #1f2937;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}
.quiz-header h2 { color: #f8fafc; font-size: 20px; margin-bottom: 10px; }
.quiz-header p { color: #94a3b8; font-size: 14px; margin-bottom: 30px; }

/* Opciones de respuesta */
.options-container { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.quiz-option {
    border: 1px solid #334155;
    background: #1e293b;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}
.quiz-option:hover:not(.disabled-opt) { border-color: #64748b; }
.opt-letter {
    background: #334155; color: #f8fafc; width: 28px; height: 28px; border-radius: 4px;
    display: flex; justify-content: center; align-items: center; font-weight: bold; margin-right: 15px;
}
.opt-body { flex: 1; }
.opt-text { 
    color: #f8fafc; 
    font-family: 'Fira Code', monospace; 
    font-size: 13px; 
    font-weight: bold; 
    margin-bottom: 5px; 
    
    /* Agrega estas 3 líneas nuevas */
    word-break: break-word; 
    white-space: normal;
    line-height: 1.4;
}
.opt-desc { color: #64748b; font-size: 11px; }

/* Estados correctos/incorrectos */
.quiz-option.correct { border-color: #27c93f; background: rgba(39, 201, 63, 0.05); }
.quiz-option.correct .opt-letter { background: #27c93f; color: #000; }
.quiz-option.correct .opt-desc { color: #27c93f; }

.quiz-option.incorrect { border-color: #ff5f56; background: rgba(255, 95, 86, 0.05); }
.quiz-option.incorrect .opt-letter { background: #ff5f56; color: #fff; }
.quiz-option.incorrect .opt-desc { color: #ff5f56; }
.quiz-option.disabled-opt { opacity: 0.5; pointer-events: none; }
.opt-icon { margin-left: 15px; font-weight: bold; font-size: 18px; }
.quiz-option.correct .opt-icon { color: #27c93f; }
.quiz-option.incorrect .opt-icon { color: #ff5f56; }
/* Estado neutral cuando el usuario selecciona una respuesta en el examen técnico */
.quiz-option.selected-neutral {
    border-color: #3b82f6; 
    background: rgba(59, 130, 246, 0.05); 
}
.quiz-option.selected-neutral .opt-letter {
    background: #3b82f6;
    color: #ffffff;
}
.quiz-option.selected-neutral .opt-desc {
    color: #94a3b8; /* Mantiene el color sutil */
}

/* Footer del panel */
.quiz-footer { margin-top: 20px; text-align: center; }
.score-tracker { font-family: 'Fira Code', monospace; color: #64748b; font-size: 11px; margin-top: 15px; }
/* =========================================
   TEST PSICOMÉTRICO (psicometrico.html)
   ========================================= */
.psycho-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
}

/* Encabezado y Barra de Progreso */
.psycho-progress-header {
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 10px 0;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: #1f2937;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ff5f56;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
}

.progress-percentage {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #94a3b8;
    font-weight: bold;
}

/* Tarjeta Principal */
.psycho-card {
    background: #141b28;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.psycho-question {
    color: #f8fafc;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.psycho-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 35px;
}

/* Opciones de Comportamiento */
.psycho-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psycho-opt {
    display: flex;
    align-items: center;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 6px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.psycho-opt:hover {
    background: #1e293b;
    border-color: #334155;
}

.psycho-letter {
    background: #1f2937;
    color: #f8fafc;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.psycho-opt-text {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

/* Estado Seleccionado */
.psycho-opt.selected {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

.psycho-opt.selected .psycho-letter {
    background: #3b82f6;
    color: #ffffff;
}

.psycho-opt.selected .psycho-opt-text {
    color: #f8fafc;
}

/* Botón Final */
.btn-psycho {
    width: 100%;
    padding: 18px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-psycho.active {
    opacity: 1;
    cursor: pointer;
}

.btn-psycho.active:hover {
    filter: brightness(1.1);
}
/* =========================================
   PANTALLA DE CARGA (GLOBAL)
   ========================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 12, 21, 0.95); /* Fondo oscuro casi opaco */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px); /* Efecto de desenfoque al fondo */
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #1f2937;
    border-top-color: #ff5f56; /* Rojo característico de tus botones */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #f8fafc;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}
/* =========================================
   RESETEO EXTREMO DE AUTOCOMPLETADO Y VALIDACIÓN
   ========================================= */
/* 1. Matamos la palomita verde y cualquier imagen de fondo que inyecte el navegador */
input,
input:required,
input:valid,
input:invalid,
input:-webkit-autofill {
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 2. Forzamos a que un campo "válido" mantenga tu borde oscuro normal */
input:valid {
    border: 1px solid #1f2937 !important;
    background-color: #0d131f !important;
}

/* 3. Mantenemos el brillo azul SOLAMENTE cuando estás escribiendo en él */
input:focus {
    border: 1px solid #3b82f6 !important;
    background-color: #0d131f !important;
}

/* 4. Arreglo para el fondo amarillo/azul feo del autocompletado */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0d131f inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    border: 1px solid #1f2937 !important;
    transition: background-color 5000s ease-in-out 0s;
}