        /* Botón de limpiar filtros en línea con la X */
        .btn-clear-inline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: var(--radius-sm);
            background: var(--bg-subtle);
            color: var(--text-muted);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-clear-inline:hover {
            background: #fee2e2;
            color: #ef4444;
            border-color: #fca5a5;
            transform: scale(1.05);
        }

        /* Botones de Exportación XLSX y ODS */
        .btn-export-excel {
            background: #107c41;
            color: #ffffff;
            font-weight: 700;
            font-size: 0.8rem;
            padding: 0.45rem 0.85rem;
            border-radius: var(--radius-md);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
            box-shadow: var(--shadow-xs);
            white-space: nowrap;
        }
        .btn-export-excel:hover {
            background: #0b5a2f;
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }

        .btn-export-ods {
            background: #ea580c;
            color: #ffffff;
            font-weight: 700;
            font-size: 0.8rem;
            padding: 0.45rem 0.85rem;
            border-radius: var(--radius-md);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
            box-shadow: var(--shadow-xs);
            white-space: nowrap;
        }
        .btn-export-ods:hover {
            background: #c2410c;
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }


        /* Pantalla Completa en Mapas */
        .map-fullscreen-title {
            display: none;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #ffffff;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 700;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.25);
            align-items: center;
            gap: 8px;
            pointer-events: none;
            z-index: 1000;
            margin-top: 10px !important;
            margin-right: 10px !important;
        }

        :fullscreen .map-fullscreen-title,
        :-webkit-full-screen .map-fullscreen-title,
        :-moz-full-screen .map-fullscreen-title,
        .leaflet-container:fullscreen .map-fullscreen-title,
        .leaflet-container:-webkit-full-screen .map-fullscreen-title {
            display: flex !important;
        }

        .leaflet-control-fullscreen-btn {
            display: flex !important;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            width: 30px !important;
            height: 30px !important;
            cursor: pointer;
            transition: background-color 0.15s ease;
        }

        .leaflet-control-fullscreen-btn:hover {
            background-color: #f4f4f4;
        }

        .zona-badge {
            display: inline-block;
            font-size: 0.72rem;
            padding: 2px 7px;
            border-radius: var(--radius-full);
            font-weight: 800;
            color: #ffffff;
            box-shadow: var(--shadow-xs);
        }

        .count-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.76rem;
            padding: 3px 10px;
            border-radius: var(--radius-full);
            font-weight: 700;
            background: #008844;
            color: #ffffff;
            box-shadow: 0 1px 3px rgba(0, 136, 68, 0.25);
            letter-spacing: 0.02em;
        }

        .custom-map-pin {
            background: none !important;
            border: none !important;
        }
        .custom-map-pin > div {
            transition: transform 0.15s ease;
        }
        .custom-map-pin:hover > div {
            transform: scale(1.18);
        }


        /* Loader & Empty States */
        .loader {
            text-align: center;
            padding: 3rem 1rem;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-muted);
            display: none;
        }

        .loader.active { display: block; }

        .spinner {
            border: 3.5px solid var(--primary-light);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border-left-color: var(--primary);
            animation: spin 0.85s linear infinite;
            margin: 0 auto 0.75rem auto;
        }

        @keyframes spin { 100% { transform: rotate(360deg); } }

        .empty-state {
            text-align: center;
            padding: 3rem 1.5rem;
            background: var(--bg-card);
            border-radius: var(--radius-md);
            border: 1px dashed var(--border-color);
            color: var(--text-muted);
        }

        .empty-state svg {
            width: 48px;
            height: 48px;
            stroke-width: 1.5;
            margin-bottom: 1rem;
            color: var(--text-muted);
        }

        /* Toast Notifications */
        #toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .toast {
            min-width: 280px;
            max-width: 400px;
            background: #1e293b;
            color: white;
            padding: 0.85rem 1.25rem;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            animation: slideIn 0.3s ease-out;
            transition: opacity 0.3s;
        }

        .toast.error { background: #ef4444; border-left: 4px solid #991b1b; }
        .toast.success { background: #10b981; border-left: 4px solid #065f46; }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* ========================================== */
        /* OMNIBOX / BUSCADOR GLOBAL UNIFICADO        */
        /* ========================================== */
        .omnibox-trigger-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 0.45rem 0.9rem;
            border-radius: var(--radius-md);
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-xs);
            max-width: 320px;
        }
        .omnibox-trigger-btn:hover {
            background: var(--bg-card);
            border-color: var(--primary);
            color: var(--text-main);
            box-shadow: var(--shadow-sm);
        }
        .omnibox-trigger-kbd {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 1px 6px;
            font-size: 0.72rem;
            font-family: inherit;
            font-weight: 700;
            color: var(--text-muted);
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        .omnibox-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 10000;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: 4rem 1rem 1rem 1rem;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .omnibox-overlay.active {
            display: flex;
            opacity: 1;
        }
        .omnibox-modal {
            background: var(--bg-card);
            width: 100%;
            max-width: 640px;
            border-radius: var(--radius-lg);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: 80vh;
            animation: omniboxIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes omniboxIn {
            from { transform: scale(0.96) translateY(-10px); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }
        .omnibox-header {
            display: flex;
            align-items: center;
            padding: 0.85rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            gap: 10px;
            background: var(--bg-card);
        }
        .omnibox-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 1.05rem;
            font-family: inherit;
            background: transparent;
            color: var(--text-main);
        }
        .omnibox-input::placeholder {
            color: var(--text-muted);
            font-size: 0.95rem;
        }
        .omnibox-body {
            overflow-y: auto;
            padding: 0.75rem 0.5rem;
            flex: 1;
        }
        .omnibox-group-title {
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            padding: 0.5rem 0.75rem 0.35rem 0.75rem;
        }
        .omnibox-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0.65rem 0.75rem;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: background 0.15s ease;
            user-select: none;
        }
        .omnibox-item:hover, .omnibox-item.selected {
            background: var(--primary-light);
        }
        .omnibox-item-icon {
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            background: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #0f172a;
        }
        .omnibox-item-icon svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
        .omnibox-item-body {
            flex: 1;
            min-width: 0;
        }
        .omnibox-item-title {
            font-size: 0.92rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .omnibox-code-badge {
            background: var(--primary);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 1px 6px;
            border-radius: 4px;
        }
        .omnibox-item-sub {
            font-size: 0.78rem;
            color: var(--text-muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-top: 2px;
        }
        .omnibox-action-hint {
            font-size: 0.75rem;
            color: var(--primary);
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.15s ease;
        }
        .omnibox-item:hover .omnibox-action-hint,
        .omnibox-item.selected .omnibox-action-hint {
            opacity: 1;
        }
        .omnibox-empty-state {
            text-align: center;
            padding: 2.5rem 1rem;
            color: var(--text-muted);
        }
        .omnibox-footer {
            padding: 0.5rem 1rem;
            background: var(--bg-subtle);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* ========================================== */
        /* FAVORITOS & RECIENTES                      */
        /* ========================================== */
        .favorites-section {
            margin-bottom: 1.25rem;
            background: linear-gradient(135deg, rgba(254, 243, 199, 0.35) 0%, rgba(240, 253, 244, 0.4) 100%);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: var(--radius-md);
            padding: 0.85rem 1rem;
        }
        .favorites-header {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.82rem;
            font-weight: 800;
            color: #b45309;
            margin-bottom: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .fav-chips-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .fav-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: 30px;
            padding: 0.35rem 0.75rem 0.35rem 0.5rem;
            cursor: pointer;
            box-shadow: var(--shadow-xs);
            transition: var(--transition);
        }
        .fav-chip:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
            border-color: #f59e0b;
        }
        .fav-chip-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            font-size: 0.85rem;
        }
        .fav-chip-icon svg {
            width: 15px;
            height: 15px;
            fill: var(--primary);
        }
        .fav-chip-info {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }
        .fav-chip-info strong {
            font-size: 0.82rem;
            color: var(--text-main);
        }
        .fav-chip-sub {
            font-size: 0.68rem;
            color: var(--text-muted);
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .fav-chip-remove {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.75rem;
            padding: 2px 4px;
            margin-left: 2px;
            border-radius: 50%;
            transition: var(--transition);
        }
        .fav-chip-remove:hover {
            color: #ef4444;
            background: #fee2e2;
        }
        .btn-fav-star {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 2px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            width: 24px;
            height: 24px;
            min-width: 24px;
            flex-shrink: 0;
        }
        .btn-fav-star:hover {
            color: #f59e0b;
            transform: scale(1.15);
        }
        .btn-fav-star.active {
            color: #f59e0b;
        }
        .btn-fav-star.active svg {
            fill: #f59e0b;
            stroke: #f59e0b;
        }

        .btn-detail-fav {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 0.45rem 0.9rem;
            border-radius: var(--radius-md);
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-detail-fav:hover {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #b45309;
        }
        .btn-detail-fav.active {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #b45309;
        }

        .recent-quick-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.35rem 0.65rem;
            font-size: 0.78rem;
            color: var(--text-main);
            cursor: pointer;
            transition: var(--transition);
        }
        .recent-quick-btn:hover {
            background: var(--primary-light);
            border-color: var(--primary);
        }
        .recent-quick-btn svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }
        .recent-quick-btn .recent-name {
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--text-muted);
            font-size: 0.72rem;
        }

        /* ========================================== */
        /* PRÓXIMAS SALIDAS ESTIMADAS (PROGRAMADAS)   */
        /* ========================================== */
        .next-departure-card {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            border-radius: var(--radius-lg);
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.25rem;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
        }
        .next-departure-card::before {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(0, 158, 73, 0.25) 0%, transparent 70%);
            border-radius: 50%;
        }
        .next-departure-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
            gap: 8px;
        }
        .next-departure-badge {
            background: rgba(0, 158, 73, 0.25);
            border: 1px solid #009e49;
            color: #4ade80;
            font-size: 0.75rem;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .next-departure-main {
            display: flex;
            align-items: baseline;
            gap: 14px;
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
        }
        .next-departure-time {
            font-size: 2.2rem;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -0.03em;
            font-family: 'Outfit', sans-serif;
        }
        .next-departure-countdown {
            font-size: 1.05rem;
            font-weight: 700;
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.12);
            padding: 4px 12px;
            border-radius: 8px;
            border: 1px solid rgba(56, 189, 248, 0.3);
        }
        .next-departure-sub {
            font-size: 0.85rem;
            color: #cbd5e1;
            margin-bottom: 0.75rem;
        }

        /* Disclaimer explícito de horario programado */
        .departure-disclaimer-banner {
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid rgba(245, 158, 11, 0.35);
            color: #fef3c7;
            padding: 0.55rem 0.85rem;
            border-radius: var(--radius-sm);
            font-size: 0.76rem;
            line-height: 1.35;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 0.5rem;
        }
        .departure-disclaimer-banner svg {
            flex-shrink: 0;
            margin-top: 2px;
            color: #f59e0b;
        }

        /* ========================================== */
        /* GEOLOCALIZACIÓN Y DISTANCIAS               */
        /* ========================================== */
        .distance-badge {
            background: #e0f2fe;
            color: #0369a1;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 20px;
            border: 1px solid #bae6fd;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        .btn-geo-locate {
            background: #0284c7;
            color: #ffffff;
            border: none;
            padding: 0.5rem 0.9rem;
            border-radius: var(--radius-md);
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
            box-shadow: var(--shadow-xs);
            white-space: nowrap;
        }
        .btn-geo-locate:hover {
            background: #0369a1;
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }

        /* ========================================== */
        /* MODAL VISOR Y GENERADOR DE INFORMES PDF (A4) */
        /* ========================================== */
        .pdf-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.78);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }
        .pdf-modal-overlay.active {
            display: flex;
        }
        .pdf-modal-window {
            background: #f1f5f9;
            width: 100%;
            max-width: 950px;
            height: 92vh;
            border-radius: var(--radius-lg);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .pdf-modal-topbar {
            background: #ffffff;
            padding: 0.85rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
            box-shadow: var(--shadow-xs);
            z-index: 10;
        }
        .pdf-modal-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.15rem;
            color: var(--text-main);
        }
        .pdf-modal-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .pdf-scroll-area {
            flex: 1;
            overflow-y: auto;
            padding: 2rem 1rem;
            display: flex;
            justify-content: center;
            background: #cbd5e1;
        }

        /* ========================================== */
        /* PÁGINAS A4 PROFESIONALES IMPRIMIBLES       */
        /* ========================================== */
        .a4-page {
            width: 210mm;
            min-height: 297mm;
            max-height: 297mm;
            height: 297mm;
            padding: 8mm 12mm 6mm 12mm;
            background: #ffffff;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            position: relative;
            page-break-after: always;
            break-after: page;
            overflow: hidden;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: #0f172a;
        }
        .a4-header {
            border-bottom: 2px solid #008844;
            padding-bottom: 3px;
            margin-bottom: 3px;
            flex-shrink: 0;
        }
        .a4-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 6.2pt;
            font-weight: 800;
            color: #64748b;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 2px;
        }
        .a4-header-main {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .a4-line-badge {
            background: #008844;
            color: #ffffff;
            font-family: 'Outfit', sans-serif;
            font-size: 13pt;
            font-weight: 900;
            padding: 2px 8px;
            border-radius: 4px;
            letter-spacing: -0.02em;
            flex-shrink: 0;
        }
        .a4-line-info {
            flex: 1;
        }
        .a4-line-title {
            font-family: 'Outfit', sans-serif;
            font-size: 10pt;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.15;
            margin-bottom: 1px;
        }
        .a4-line-meta {
            font-size: 6.5pt;
            color: #64748b;
            display: flex;
            gap: 10px;
        }
        .a4-footer {
            border-top: 1.5px solid #e2e8f0;
            padding-top: 3px;
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 6.2pt;
            color: #94a3b8;
            font-weight: 600;
            flex-shrink: 0;
        }
        .a4-p1-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        .a4-stops-container {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 6px;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }
        .a4-col-title {
            font-size: 7.5pt;
            font-weight: 800;
            color: #008844;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .a4-stops-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 6.5pt;
        }
        .a4-stops-table th {
            background: #e2e8f0;
            color: #475569;
            font-weight: 800;
            text-align: left;
            padding: 2.5px 4px;
            border-bottom: 1px solid #cbd5e1;
        }
        .a4-stops-table td {
            padding: 2px 4px;
            border-bottom: 1px solid #f1f5f9;
        }
        .a4-map-container {
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: #f8fafc;
        }
        .a4-map-legend {
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            padding: 3px 6px;
            font-size: 6pt;
            color: #475569;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .a4-mini-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 6.8pt;
        }
        .a4-mini-table th {
            background: #f1f5f9;
            color: #334155;
            font-weight: 800;
            padding: 2.5px 3px;
            border: 1px solid #cbd5e1;
            text-align: center;
        }
        .a4-mini-table td {
            padding: 1.5px 3px;
            border: 1px solid #e2e8f0;
            text-align: center;
            line-height: 1.2;
        }
        .a4-mini-table tr:nth-child(even) td {
            background: #f8fafc;
        }
        .a4-p2-content {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .a4-timetable-box {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 6px;
        }
        .a4-tarifas-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }
        .a4-tarifa-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 8px 6px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .a4-zona-pill {
            display: inline-block;
            padding: 1px 5px;
            border-radius: 3px;
            font-size: 5.8pt;
            font-weight: 800;
        }
        .a4-puntos-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 8px;
        }
        .a4-puntos-stat-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 6px 8px;
            text-align: center;
        }
        .a4-puntos-stat-num {
            font-family: 'Outfit', sans-serif;
            font-size: 14pt;
            font-weight: 900;
            color: #008844;
        }
        .a4-puntos-stat-label {
            font-size: 6pt;
            color: #64748b;
            font-weight: 700;
            text-transform: uppercase;
        }
        .a4-puntos-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 6.5pt;
        }
        .a4-puntos-table th {
            background: #e2e8f0;
            color: #334155;
            font-weight: 800;
            padding: 3px 5px;
            border-bottom: 1px solid #cbd5e1;
            text-align: left;
        }
        .a4-puntos-table td {
            padding: 2.5px 5px;
            border-bottom: 1px solid #f1f5f9;
        }

        @media print {
            body * {
                visibility: hidden;
            }
            #modal-pdf-preview,
            #modal-pdf-preview * {
                visibility: visible;
            }
            #modal-pdf-preview {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: auto;
                background: none;
                padding: 0;
                display: block !important;
            }
            .pdf-modal-window {
                width: 100%;
                max-width: 100%;
                height: auto;
                border: none;
                box-shadow: none;
                background: none;
            }
            .pdf-modal-topbar {
                display: none !important;
            }
            .pdf-scroll-area {
                background: none !important;
                padding: 0 !important;
                display: block !important;
            }
            .a4-page {
                margin: 0 !important;
                box-shadow: none !important;
                page-break-after: always !important;
                break-after: page !important;
            }
        }

