@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #4076c6;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --chiloe-blue: #1e88e5;
    --chiloe-green: #43a047;
    --chb-primary: #4076c6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

p {
    font-family: NotoSans, Tahoma, Geneva, Verdana, sans-serif !important;
}

a,
a:active {
    color: inherit;
    text-decoration: none;
}

.navbar-bg {
    background: var(--chb-primary) !important;
}

.red {
    color: red;
    }
    
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--chiloe-blue) 0%, #1565c0 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}


.hero-image-container {
    position: relative;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--chiloe-blue), var(--chiloe-green));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
}


/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
    width: 90px;
    height: 90px;
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Step Numbers */
.step-number {
    width: 90px;
    height: 90px;
    font-size: 2rem;
    font-weight: bold;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--chiloe-green) !important;
}

/* card dashboard */
.card-title {
    font-size: 2rem;
    font-weight: 500;
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.card-body-padding {
    padding: 0 !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.card-text {
    font-family: inherit !important;
}

/*fonts */

.fw-sb {
    font-family: inherit !important;
    font-weight: 600 !important;
}

.fw-b {
    font-family: inherit !important;
    font-weight: 700 !important;
}

.fs-6 {
    font-family: inherit !important;
    font-size: 1.25rem !important;
}

.lead {
    font-family: inherit !important;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
}

.text-normal {
    font-family: inherit !important;
    font-weight: 500 !important;

}

/* list*/
.list-group-item {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.15rem;
}

.horario-empresa {
    font-family: 'Roboto Condensed', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.20rem;
    color: black;
    font-weight: 500;
}

.horario-lista {
    font-family: 'Roboto Condensed', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.1rem;
    color: black;
    font-weight: 500;
    /* altura de linea */
    line-height: 1.4rem;
}

.rutas-small {
    font-family: 'Roboto Condensed', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1rem;
    color: #7a7d7c;
    font-weight: 500;
    line-height: 1.2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    /*border: none;*/
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    /*background: linear-gradient(135deg, var(--chiloe-blue), #1976d2);*/
    background: var(--chb-primary) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, var(--chiloe-blue));
}

.btn-success {
    background: linear-gradient(135deg, var(--chiloe-green), #388e3c);
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c, var(--chiloe-green));
}

/* Tables */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(30, 136, 229, 0.05);
}

.table-horarios th,
td {
    font-size: 1.0rem !important
}

/* establecer padding-bottom de 6 px para un enlace 'a' dentro de un div clase leaflet-user */
.leaflet-bar {
    border: none !important;
}

.leaflet-bar a {
    border: 1px solid #eceaea !important;
}

a.leaflet-user {
    margin-bottom: 2px !important;
}

/* mapa */
#map {
    /* Fill the viewport but leave room for a fixed navbar (65px) */
    height: calc(100vh - 65px);
    margin-top: 65px;
    width: 100%;
}

/* Forms */
.form-label {
    color: #585a5c;
    margin-bottom: .3rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--chiloe-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    border-left: 4px solid;
}

.alert-primary {
    border-left-color: var(--chiloe-blue);
}

.alert-success {
    border-left-color: var(--chiloe-green);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal */
.modal-header {
    background: linear-gradient(135deg, var(--chiloe-blue), #1976d2);
    border-radius: 15px 15px 0 0;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-footer {
    border-top: 0
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-section {
        padding-top: 70px;
    }

    .display-4 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    .modal,
    footer {
        display: none !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #1a1a1a !important;
    }

    .card {
        background-color: #2d2d2d;
        color: #fff;
    }

    .table {
        color: #fff;
    }

    .table-light {
        background-color: #3d3d3d;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--chiloe-blue);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--chiloe-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1976d2;
}