html,
.body {
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
}

.h1 {
    font-size: 50px !important;
    margin-top: 50px !important;
}

a {
    color: #000 !important;
}

p {
    margin-bottom: 1.3em !important;
}

.no-romper-lineas {
    white-space: nowrap !important;
}

.btn-outline-danger:hover {
    color: #fff !important;
}

.h1.saludo {
    margin-bottom: 0 !important;
}

.destacar-texto {
    color: #0099ff;
}

.matricula-mark {
    color: #fff;
    letter-spacing: .1em;
    padding: 0.2em .6em;
    border-radius: .3em;
    font-size: 1.1em;
}

.header {
    height: 525px;
    overflow: hidden;
}

.firmar {
    padding-bottom: 10em !important;
}

.container-mobile {
    max-width: 430px;
    margin: 0 auto;
}

.footer {
    font-size: 13px !important;
    font-weight: 100 !important;
}

.footer a {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: bold !important;
}

footer .btn {
    padding: .7em 3em !important;
    display: inline-block !important;
}

.coche-caracteristicas p {
    margin-bottom: 0 !important;
    font-size: 1.4em !important;
}

.login {
    background-image: url(../imgs/bg-login.png) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: #fff !important;
}

.login label {
    font-weight: bold !important;
}

#form-login {
    max-width: 355px !important;
}

.btn-primary:hover {
    border-color: cyan !important;
    color: cyan !important;
}

.btn-cerrar:hover {
    color: #fff !important;
}

.login .btn {
    text-transform: uppercase !important;
}

footer {
    position: fixed !important;
    z-index: 9999 !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 2em !important;
    background-color: #fff !important;
}

footer .btn {
    float: right !important;
}


.fecha-seleccionada {
    color: #95572B;
    border-color: #95572B;
}

.fecha-seleccionada:hover {
    background-color: #95572B;
    color: #fff;
}

.form-select {
    border-radius: 0;
    border: 2px solid #000;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    width: auto;
}

.btn-inactivo {
    opacity: .2;
}

/* Footer general */
#footer {
    padding: 1.5rem 0;
    margin-top: auto;
}

#footer .row {
    align-items: center;
}

#footer .footer-brand {
    display: flex;
    align-items: start !important;
    justify-content: start !important;
}

#footer .footer-year {
    display: flex;
    align-items: end !important;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    #footer .footer-brand {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

}

/* ============================================
   ESTILOS PARA SELECCIÓN DE FECHA Y HORARIO
   ============================================ */

#section-seleccion-fecha-horario {
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.seleccion-container {
    max-width: 600px;
    width: 100%;
}

.seleccion-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.nombre-personalizado {
    color: #cb9aee;
    font-weight: 900;
}

@keyframes neon-glow {
    from {
        text-shadow:
            0 0 10px #081d6d,
            0 0 20px #081d6d,
            0 0 30px #081d6d,
            0 0 40px #081d6d,
            0 0 50px #081d6d,
            0 0 60px #081d6d;
    }

    to {
        text-shadow:
            0 0 20px #081d6d,
            0 0 40px #081d6d,
            0 0 60px #081d6d,
            0 0 80px #081d6d,
            0 0 100px #081d6d,
            0 0 120px #081d6d;
    }
}

.seleccion-subtitle {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
    text-align: center;
}

.fecha-selector-wrapper {
    margin-bottom: 3rem;
    position: relative;
}

.fecha-selector {
    background: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    border-radius: 0;
    color: #fff;
    font-size: 1.89rem;
    padding: 0.5rem 0;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.fecha-selector:focus {
    outline: none;
    border-bottom-color: #fff;
}

.fecha-selector::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.fecha-selector-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #fff;
    font-size: 1.2rem;
}

.seleccion-horario-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.horario-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.horario-btn:hover:not(.horario-disabled):not(.horario-selected) {
    background: rgba(255, 255, 255, 0.1);
}

.horario-btn.horario-selected {
    background: #fff;
    color: #1a1f3a;
    border-color: #fff;
}

.horario-btn.horario-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.3);
}

.botones-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.btn-nav {
    color: #fff;
    background: none;
    border: 2px solid #fff;
    padding: 1rem 3rem;
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0;
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: right;
}

.btn-nav.btn-atras {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.btn-nav.btn-siguiente {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1f3a;
    transform: translateY(-2px);
}

.btn-nav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mensaje-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.5);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    display: none;
}

.mensaje-error.mostrar {
    display: block;
}

/* Campo de fecha: select dropdown */
#fecha_reserva {
    color-scheme: dark;
    text-align: left !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
    /* Espacio para el icono de flecha */
}

#fecha_reserva option {
    background: #333;
    color: #fff;
    padding: 0.5rem;
}

#fecha_reserva:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .seleccion-title {
        font-size: 2rem;
    }

    .seleccion-subtitle {
        font-size: 1.3rem;
    }

    .horarios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .horario-btn {
        padding: 0.75rem;
        font-size: 1.3rem;
    }

    .botones-navegacion {
        flex-direction: row;
        justify-content: space-between;
    }

    .btn-nav {
        flex: 0 0 auto;
        padding: 1rem 3rem;
        font-size: 1.6rem;
        display: block;
        text-align: right;
    }

    .btn-nav.btn-atras {
        text-align: left;
    }

    .btn-nav.btn-siguiente {
        text-align: right;
    }
}

/* Header sticky que aparece al hacer scroll */
.header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98) 0%, rgba(8, 29, 109, 0.98) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999 !important;
    padding: 1rem 0 !important;
    transform: translateY(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    opacity: 0 !important;
    display: block !important;
    visibility: visible !important;
}

.header-sticky.visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.header-sticky .container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-sticky .footer-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-sticky .footer-brand img {
    max-height: 15px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.header-sticky .sticky-message {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    text-align: right;
    font-family: inherit;
}

@media (max-width: 768px) {
    .header-sticky {
        padding: 0.75rem 0;
    }

    .header-sticky .container {
        padding: 0 0.75rem;
    }

    .header-sticky .footer-brand img {
        max-height: 15px;
    }

    .header-sticky .sticky-message {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .header-sticky .col-8 {
        padding-right: 0.5rem;
    }

    .header-sticky .col-4 {
        padding-left: 0.5rem;
    }
}