/* ==========================================================================
   MULTIS.ES - UNIFIED PREMIUM DESIGN SYSTEM (SLATE DARK THEME)
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #334155;
    --bg-input: #0f172a;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-color: #334155;
    --border-color-light: #475569;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --nav-height: 64px;
    --search-height: 68px;
    --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 90px;
    line-height: 1.5;
}

/* ==========================================================================
   GLASSMORPHIC NAVIGATION
   ========================================================================== */
.nav-bar {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    background: var(--primary-gradient);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.nav-logout {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}

.nav-logout:hover {
    background: var(--danger);
    color: white;
}

@media (max-width: 600px) {
    .nav-link span {
        display: none; /* Icon-only on small mobiles for clean view */
    }
    .nav-link {
        padding: 10px;
    }
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.header-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-body);
}

.login-card {
    padding: 40px 30px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.login-header-custom {
    text-align: center;
    margin-bottom: 30px;
}

.login-main-image {
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.login-brand-logo {
    font-size: 48px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    margin-bottom: 10px;
}

.login-text-por {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.login-logo-ugt {
    height: 18px;
    width: auto;
    opacity: 0.8;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 40px !important;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-wrapper {
    position: sticky;
    top: var(--nav-height);
    z-index: 900;
    background-color: var(--bg-body);
    height: var(--search-height);
    padding: 12px 0;
}

.search-input {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ==========================================================================
   LISTS & ACCORDIONS (PREMIUM LOOK)
   ========================================================================== */
.list-group {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    overflow: visible; /* Allowed visible globally so sticky headers work on all directory/code/error lists */
}

/* Clean border-radius clipping for sticky headers and items when parent overflow is visible */
.list-group > .category-group:first-child > .list-header,
.list-group > .list-item:first-child,
.list-group > a.list-item:first-child {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.list-group > .category-group:last-child > .list-item:last-child,
.list-group > .list-item:last-child,
.list-group > a.list-item:last-child {
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    justify-content: space-between;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.list-header {
    background-color: var(--bg-header);
    color: var(--text-main);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--nav-height) + var(--search-height));
    z-index: 800;
}

.item-code {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-family: monospace;
    font-size: 14px;
    margin-right: 15px;
    min-width: 55px;
    text-align: center;
}

.item-text {
    flex-grow: 1;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.item-text iconify-icon, .item-text i {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 1.4rem;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1.5px);
}

/* Manufacturer Styles */
.style-default { background-color: rgba(79, 70, 229, 0.15); color: #818cf8; border: 1px solid rgba(79, 70, 229, 0.3); }
.style-ft { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.style-avante { background-color: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.style-kone { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Details/Accordions */
details {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

details:last-of-type {
    border-bottom: none;
}

summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '\25BC';
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(180deg);
}

.detalle-escalera {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

/* Collapsible form card */
.form-collapse {
    margin-bottom: 25px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px dashed var(--primary) !important;
    overflow: hidden;
}

.form-collapse summary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    padding: 16px;
    font-weight: 700;
    font-size: 15px;
    justify-content: center;
    gap: 8px;
}

.form-collapse summary::after {
    display: none;
}

.form-tarjeta {
    padding: 24px;
}

.form-tarjeta h2 {
    color: var(--primary-light);
    text-align: center;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-tarjeta label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.foto-actual {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   BADGES & CHIPS
   ========================================================================== */
.station-badges {
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-esc {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-ibt {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: var(--warning);
    color: var(--bg-body);
}

/* ==========================================================================
   METRO DIRECTORY (TABS & GRID)
   ========================================================================== */
.directory-tabs-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.directory-tabs {
    display: flex;
    gap: 4px;
}

.directory-tab-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.directory-tab-btn.active {
    background: var(--bg-header);
    color: white;
}

.directory-tab-btn iconify-icon, .directory-tab-btn i {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .directory-tab-btn {
        flex-direction: column;
        gap: 2px;
        font-size: 11px;
        padding: 8px 4px;
    }
    .directory-tab-btn iconify-icon, .directory-tab-btn i {
        width: 1.15rem;
        height: 1.15rem;
        font-size: 1.15rem;
        transform: none;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.linea-card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 32px;
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.linea-card:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   METRO LINE LAYOUT
   ========================================================================== */
.linea-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .linea-layout {
        grid-template-columns: 1fr;
    }
}

.estaciones-column {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 15px;
    height: fit-content;
}

.order-toggle-container {
    margin-bottom: 12px;
    text-align: right;
}

.order-toggle {
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estaciones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.estaciones-list::before {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 20px;
    width: 10px;
    box-sizing: border-box;
    border-left: 2px solid var(--line-border-color, #ffffff);
    border-right: 2px solid var(--line-border-color, #ffffff);
    background-color: var(--line-color);
    z-index: 1;
}

.estacion-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.estacion-item:hover {
    background: rgba(255,255,255,0.02);
}

.estacion-item.selected {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Override details elements with .estacion-item class to behave as block dropdowns */
details.estacion-item {
    display: block;
    padding: 0;
}

details.estacion-item:hover {
    background: rgba(0,0,0,0.1);
}

details.estacion-item summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.estacion-marker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid var(--line-border-color, #ffffff);
    background-color: var(--line-color);
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.estacion-nombre {
    font-weight: 600;
    font-size: 14px;
    flex-grow: 1;
}

.estacion-lineas {
    display: flex;
    gap: 4px;
}

.linea-indicator {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

/* Contacts Layout */
.contactos-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contactos-list {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.contacto-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.contacto-item:last-child {
    border-bottom: none;
}

.contacto-nombre {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contacto-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;
    width: fit-content;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-item a i {
    color: var(--text-muted);
}

.btn-ver-estacion {
    background: var(--primary-gradient);
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: block !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-ver-estacion:hover {
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.45);
}

/* ==========================================================================
   GENERADOR (WIZARD STEPS)
   ========================================================================== */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-container {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin: 20px 0;
}

.final-code {
    display: inline-block;
    font-family: monospace;
    font-size: 44px;
    font-weight: 800;
    color: #a5b4fc;
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.4);
    margin: 15px 0;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.final-code:active {
    transform: scale(0.96);
    background: rgba(0,0,0,0.4);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 14px;
}

.summary-label {
    color: var(--text-muted);
}

.summary-val {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fc8181;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.controls-inline {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Component alias style and mobile hide rule */
.component-alias {
    font-size: 0.85em;
    font-style: italic;
    color: #a0aec0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .component-alias {
        display: none !important;
    }
}

/* Style for Iconify SVGs to make them sleek, readable, and premium */
svg.iconify, .iconify, iconify-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em; /* pulled down slightly for general inline texts */
    color: currentColor;
}

/* Specific adjustments for navbar and buttons */
.nav-link svg.iconify, .nav-link .iconify, .nav-link iconify-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 2.1rem; /* Forces the internal SVG (1em) to scale to 100% of the box */
    margin: 0;
    vertical-align: middle;
    /* Circular border & background */
    padding: 4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(1px);
}

.nav-link:hover svg.iconify, .nav-link:hover .iconify, .nav-link:hover iconify-icon {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    transform: translateY(1px) scale(1.1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.nav-link.active svg.iconify, .nav-link.active .iconify, .nav-link.active iconify-icon {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.btn svg.iconify, .btn .iconify, .btn iconify-icon {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1.1rem;
    margin: 0;
    vertical-align: middle;
    transform: translateY(1.5px);
}

.line-header-banner svg.iconify, .line-header-banner .iconify, .line-header-banner iconify-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.8rem;
    margin: 0;
    vertical-align: middle;
    transform: translateY(1.5px);
}

.nav-logout iconify-icon {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.2s ease;
}

.nav-logout:hover iconify-icon {
    transform: scale(1.15);
}

/* ==========================================================================
   SYSTEM THEME AUTO-TOGGLE (LIGHT MODE OVERRIDES)
   ========================================================================== */
@media (prefers-color-scheme: light) {
    :root {
        --primary: #4f46e5;
        --primary-light: #4f46e5; /* Higher contrast indigo for light backgrounds */
        --primary-dark: #312e81;
        
        --bg-body: #f8fafc; /* Light slate body */
        --bg-card: #ffffff; /* Pure white card */
        --bg-header: #f1f5f9; /* Soft grey headers */
        --bg-input: #ffffff;
        
        --text-main: #0f172a; /* Deep slate text for high contrast */
        --text-muted: #475569; /* Dark slate-muted for high contrast */
        --text-dark: #0f172a;
        
        --border-color: #cbd5e1; /* Soft border grey */
        --border-color-light: #e2e8f0;
    }
    
    body {
        background-color: var(--bg-body);
        color: var(--text-main);
    }
    
    .nav-bar {
        background: rgba(255, 255, 255, 0.85); /* White frosted glass */
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    }
    
    .nav-link {
        color: #475569;
    }
    
    .nav-link:hover {
        color: #0f172a;
        background: rgba(0, 0, 0, 0.03);
    }
    
    .nav-link.active {
        color: #ffffff;
    }
    
    .nav-link svg.iconify, .nav-link .iconify, .nav-link iconify-icon {
        border-color: rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.02);
        color: #475569;
    }
    
    .nav-link:hover svg.iconify, .nav-link:hover .iconify, .nav-link:hover iconify-icon {
        border-color: rgba(79, 70, 229, 0.3);
        background: rgba(79, 70, 229, 0.08);
        color: #4f46e5;
    }
    
    .nav-link.active svg.iconify, .nav-link.active .iconify, .nav-link.active iconify-icon {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .list-group {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }
    
    .list-item {
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
    }
    
    .list-item:hover {
        background: rgba(0, 0, 0, 0.015);
    }
    
    .list-header {
        background-color: var(--bg-header);
        color: var(--text-main);
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Collapsible forms */
    .form-collapse {
        background: var(--bg-card);
        border: 2px dashed var(--primary) !important;
    }
    
    .form-collapse summary {
        background: rgba(79, 70, 229, 0.06);
        color: var(--primary);
    }
    
    .form-tarjeta {
        background: #ffffff;
    }
    
    /* Inputs */
    .search-input {
        background: #ffffff;
        border: 1px solid var(--border-color);
        color: var(--text-main);
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    }
    
    .search-input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(0,0,0,0.03);
    }
    
    /* Buttons */
    .btn-secondary {
        background: #e2e8f0;
        color: #0f172a;
        border: 1px solid #cbd5e1;
    }
    
    .btn-secondary:hover {
        background: #cbd5e1;
    }
    
    /* Login Page */
    .login-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }
    
    /* Badges */
    .badge-esc {
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.2);
    }
    
    .badge-ibt {
        background: rgba(59, 130, 246, 0.1);
        color: #2563eb;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    /* Escaleras details */
    .estacion-item {
        background: rgba(0, 0, 0, 0.02);
    }
    
    .estacion-item:hover {
        background: rgba(0, 0, 0, 0.04);
    }
    
    .estacion-item.selected {
        background: rgba(79, 70, 229, 0.06);
        border-color: rgba(79, 70, 229, 0.25);
    }
    
    details.estacion-item:hover {
        background: rgba(0, 0, 0, 0.02);
    }
    
    details.estacion-item summary:hover {
        background: rgba(0, 0, 0, 0.02);
    }
    
    .estacion-nombre {
        color: var(--text-main);
    }
    
    .estacion-item.selected .estacion-marker {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }
    
    /* Code components */
    .component-alias {
        color: #64748b;
    }
}
