*{
font-family: 'Nunito', sans-serif;
}

.container {
    display: flex;
    justify-content: center;
	width:100%;
    margin-bottom: 20px;
	gap:20px;
}

.formulario {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 360px;
}
.btnComprar
{
    max-width: 500px;
    text-align: center;
    margin: auto;
}
.tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.tab-buttons {
    display: flex;
    align-items: center;
}

.resultados-busqueda h2
{
    font-family: "Raleway", Sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
}

.encabezado
{
    color: black;
    font-weight: 800;
    font-size: 14px;
}

.tablink {
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    text-align: left;
    color: #aaa;
    transition: color 0.3s;
}

.tablink.active {
    color: #002856;
    font-weight: bold;
}

.switch-group {
    display: flex;
    align-items: center;
}

.switch-group .label-icon {
    margin-right: 10px;
    color: #aaa;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #8fc33a;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.input-group {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background-color: #fff;
}

.label-icon {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 5px;
}

.label-icon img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-container img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

select, input[type="date"]{
    width: 100%;
    padding: 10px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: #002856;
    outline: none;
    box-sizing: border-box;
}

.select2-dropdown, .select2-container--default .select2-selection--single {
    border: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field
{
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('assets/icons/arrow-down.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

input[type="date"] {
    background-color: transparent;
	border: none;
box-sizing: border-box;
outline: 0;
padding: .75rem;
position: relative;
width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}

input[type="submit"] {
    background-color: #8fc33a;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.resultados-busqueda{
	width: 1000px;
}

.resultado {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resultado-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
}

.resultado-detalles {
    display: flex;
    align-items: start;
	flex-direction: column;
	width: 400px;
}

.icono-tipo {
    max-width: 200px;
    border-radius: 5px;
	margin-bottom: 5px;
}

.icono-tipo img {
    width: 100%;
}

.logo-bus
{
    max-height: 50px;
}

.descripcion {
    display: flex;
    flex-direction: column;
}

.ciudad {
    font-size: 18px;
    color: #002856;
    font-weight: bold;
}

.tipo {
    font-size: 14px;
    color: #aaa;
}

.salida {
    background-color: #285fe71f;
    color: #8fc33a;
    font-size: 14px;
    display: flex;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 300;
    align-items: center;
}



.resultado-horario {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    text-align: center;
    margin: auto;
}

.resultado-origen, .resultado-destino {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resultado-origen .ciudad, .resultado-destino .ciudad {
    font-weight: 300; 
}

.resultado-hora {
    font-size: 24px;
    color: #002856;
    font-weight: bold;
    margin: auto;
}

.resultado-icono {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.resultado-icono img {
    width: 125px;
    height: auto;
}

.resultado-paradas {
    color: #8fc33a;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
}

.resultado-paradas .arrow-down {
    border: solid #8fc33a;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 5px;
    transform: rotate(45deg);
}

.resultado-comprar {
    background-color: #8fc33a;
    border: none;
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px; 
    width: 100%;
    text-align: center;
    font-size: 18px; 
	text-decoration: none;
}

/* Nuevos estilos para Salidas y Llegadas */

#Llegadas, #Salidas
{
	height: 330px;
	overflow: overlay;
}

.info-tabla {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 700px;
}

.tabs-nuevos {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
	gap: 20px;
    position: relative;
}

.tablink-nuevos {
    background-color: #e5e5e5;
    border: none;
    padding: 20px 10px; 
    cursor: pointer;
    font-size: 16px;
    width: 50%;
    text-align: center;
    transition: background-color 0.3s;
    position: relative;
}

.tablink-nuevos.active::before {
    content: "";
    z-index: 9999999999;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #8fc33a transparent transparent transparent;
    background: white;
}

.tablink-nuevos.active {
    background-color: #8fc33a;
    color: white;
    font-weight: bold;
}

.tabcontent-nuevos {
    display: none;
}

.tabcontent-nuevos.active {
    display: block;
}

.tabla-nueva {
    width: 100%;
    border-collapse: collapse;
}

.tabla-nueva th, .tabla-nueva td {
    border: none; 
    padding: 15px; 
    text-align: left;
}

.tabla-nueva th {
    background-color: transparent;
    color: #8fc33a; 
    font-weight: 300;
    font-size: 14px; 
}

.tabla-nueva td {
    background-color: white;
    font-weight: 300; 
    font-size: 14px; 
    color: #002856;
    border-bottom: 1px solid #e5e5e5; 
}

.tabla-nueva img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}


@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

       .formulario, .info-tabla {
        width: 100%;
        max-width: none;
		        margin-bottom: 150px;
    }

    .tabs-nuevos {
        flex-direction: column;
		gap: 10px;
    }

    .tablink-nuevos {
        width: 100%;
        margin-bottom: 10px;
    }

    .tabla-nueva th, .tabla-nueva td {
        padding: 10px;
    }

    .resultado {
        padding: 20px;
    }

    .resultado-info, .resultado-horario, .resultado-origen, .resultado-destino {
        flex-direction: column;
        align-items: center;
    }

    .resultado-icono {
        margin: 20px 0;
    }

    .resultado-comprar {
        width: 80%;
        padding: 10px 20px;
    }
    .resultado-icono img {
        width: 100px;
        height: auto;
    }
	.resultados-busqueda {
    width: 100%;
}
.info-tabla {
    display: none;
}


.resultado-detalles {
    align-items: center;
    margin-bottom: 20px;
}


}

.dias-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dia {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    font-size: 13px;
    color: white;
}
.activo {
    background-color: #8fc33a; 
}
.inactivo {
    background-color: #ddd; /* gris */
    color: #555;
}