body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.custom-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.custom-navbar {
    background: linear-gradient(90deg, #f2d16b, #713a75, #5bbcc0, #e6e1d6);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-navbar .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: #ffd700 !important;
    /* dorado suave al pasar el mouse */
}

.custom-navbar .navbar-brand span {
    color: white;
}

.modal-header {
    background: #fff;
    color: #0d6efd;
}

.modal-content {
    border-radius: 1rem;
}

.form-label {
    font-weight: 500;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    padding: 0.375rem 0.75rem;
}

.event-card {
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.event-header {
    background: linear-gradient(90deg, #a2a2a2 60%, #cbe4ff 100%);
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem 2rem;
}

.event-title {
    font-size: 2rem;
    font-weight: bold;
}

.event-meta {
    font-size: 1.1rem;
}

.leaflet-container {
    border-radius: 0.75rem;
    height: 220px;
    width: 100%;
}

.route-info {
    font-size: 0.98rem;
}

@media (max-width: 576px) {
    .event-header {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .event-header .badge {
        font-size: 1rem;
        max-width: calc(100vw - 3rem);
        /* Ajusta el ancho máximo de la badge al ancho de la pantalla menos el padding del card */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .event-header .d-flex.flex-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
}

.badge-custom {
    background-color: rgb(124, 100, 153) !important;
    color: #fff !important;
    /* texto blanco para contraste */
}