/* Fuente minimalista e moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    margin-top: 40px; /* navbar fijo 40px */
    font-family: 'Inter', Arial, sans-serif;
    padding: 0; /* sin padding para que aviso ocupe todo el ancho */
    background-color: #f8faff; /* blanco con toque azul muy suave */
    color: #2a3f5f; /* azul oscuro para texto */
    font-size: 15px;
    line-height: 1.5;
}

/* Contenedor principal para el contenido, centrado con padding */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: #1a73e8; /* azul Google-like */
    height: 40px;
    padding: 0 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgb(26 115 232 / 0.4);
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 18px;
    transition: color 0.25s ease;
}

.navbar-links a:last-child {
    margin-right: 0;
}

.navbar-links a:hover {
    color: #cce4ff;
    text-decoration: underline;
}

/* Aviso */
.aviso {
    /*display: none;*/
    position: relative;
    width: 100vw; /* ancho de toda la ventana */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-color: #ffe082; /* amarillo suave */
    color: #4a4a4a;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #ffb300;
    box-sizing: border-box;
    z-index: 900;
}

/* Para centrar el texto y limitar ancho igual que main-content */
.aviso .aviso-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Formulario */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 24px;
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgb(26 115 232 / 0.1);
}

/* Etiquetas */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

/* Inputs, selects y date */
input[type="text"],
input[type="date"],
.selectize-control input {
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 14px;
    border: 1.8px solid #d0d7e2;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    color: #334155;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
.selectize-control input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 8px rgb(26 115 232 / 0.3);
}

/* Botones principales */
.btn-ver-ida, .btn-ver-vuelta, .btn-ver-minimas {
    background-color: #1a73e8;
    color: #fff;
    padding: 10px 22px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgb(26 115 232 / 0.25);
}

.btn-ver-ida:hover,
.btn-ver-vuelta:hover,
.btn-ver-minimas:hover {
    background-color: #155ab6;
    box-shadow: 0 4px 14px rgb(21 90 182 / 0.5);
}

/* Texto servizo mínimo */
.servizo-minimo {
    display: inline-block;
    background: linear-gradient(45deg, #1a73e8, #155ab6);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 14px 4px rgba(26, 115, 232, 0.6);
    user-select: none;
    letter-spacing: 0.02em;
    transition: box-shadow 0.3s ease;
}

.servizo-minimo:hover {
    box-shadow: 0 0 20px 8px rgba(21, 90, 182, 0.8);
    cursor: default;
}

/* Lista de expediciones */
#expedicionesList {
    max-width: 800px;
    margin: 24px auto 0;
    padding: 0;
    list-style: none;
}

/* Cada expedición */
.expedicion-item {
    background-color: #ffffff;
    padding: 18px 24px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgb(26 115 232 / 0.06);
    transition: box-shadow 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
}

.expedicion-item:hover {
    box-shadow: 0 8px 26px rgb(26 115 232 / 0.15);
}

.expedicion-item h3 {
    margin-top: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a73e8;
}

.expedicion-item p {
    margin: 6px 0;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

/* Próxima salida moderno */
.proxima-salida {
    position: relative;
    margin-top: 40px;
}

.proxima-salida .proxima {
    position: absolute;
    top: -45px;
    left: 25px;
    transform: translateX(-20%);
    background-color: #e02f44;
    color: white;
    padding: 7px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 14px 4px #e02f44aa;
    animation: pulseGlow 2.5s ease-in-out infinite, blink 1.5s linear infinite;
    user-select: none;
    border: none;
    letter-spacing: 0.02em;
}

/* Pulso suave resplandor */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 14px 4px #e02f44aa;
    }
    50% {
        box-shadow: 0 0 24px 6px #e02f44cc;
    }
}

/* Parpadeo */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Botones secundarios +info y bus */
.btn-info, .btn-bus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 12px;
    color: #1a73e8;
    background-color: #fff;
    border: 2px solid #1a73e8;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgb(26 115 232 / 0.15);
}

.btn-info:hover, .btn-bus:hover {
    background-color: #1a73e8;
    color: #fff;
    box-shadow: 0 8px 22px rgb(21 90 182 / 0.5);
}

/* Sin iconos */
.btn-info::before,
.btn-bus::before {
    content: "";
    font-size: 0;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 20, 50, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.popup-content {
    background-color: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgb(26 115 232 / 0.3);
    max-height: 80%;
    overflow-y: auto;
    font-size: 14px;
    color: #334155;
    position: relative;
    line-height: 1.4;
}

/* Botón cerrar popup */
.close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a73e8;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: #155ab6;
}

/* Botón flotante subir */

#btnScrollToTop {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-size: 18px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #1a73e8, #155ab6);
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* para que el icono quede centrado si usas uno */
}

#btnScrollToTop:hover {
    background: linear-gradient(135deg, #155ab6, #1a73e8);
    box-shadow: 0 8px 20px rgba(21, 90, 182, 0.7);
    transform: scale(1.1);
}


/* Media queries */
@media (max-width: 600px) {
    .navbar-links a {
        font-size: 14px;
        margin-right: 12px;
    }
    form {
        padding: 16px 20px;
    }
    .btn-ver-ida, .btn-ver-vuelta, .btn-ver-minimas {
        padding: 9px 18px;
        font-size: 13px;
        margin-right: 8px;
    }
    #expedicionesList {
        max-width: 100%;
        margin: 16px 10px 0;
    }
}
