:root {
    --primario-azul: #16213e;
    --acento: #a93226;
    --fondo-claro: #f0f2f5;
    --gris-claro: #e6e6e6;
    --gris-medio: #b8b8b8;
    --texto-oscuro: #222222;
    --texto-claro: #f8f8f8;
}

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

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto-oscuro);
    height: 100%;
    background-color: var(--fondo-claro);
}

body {
    display: flex;
    min-height: 100vh;
}

.formulario-contenedor {
    display: flex;
    flex: 1;
    width: 100%;
}

.lado-izquierdo {
    background-color: var(--primario-azul);
    color: var(--texto-claro);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lado-derecho {
    background-color: var(--fondo-claro);
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titulo {
    color: var(--primario-azul);
    margin-bottom: 32px;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--acento);
    /* <-- ESTA ES LA LÍNEA */
    font-weight: 500;
}

form {
    width: 100%;
    max-width: 600px;
    background-color: transparent;
    border-radius: 12px;
    padding: 40px;
    box-shadow: none;
}

.titulo-formulario {
    color: var(--primario-azul);
    margin-bottom: 32px;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--acento);
    font-weight: 600;
    text-align: left;
}

fieldset {
    border: none;
}

h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primario-azul);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grupo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primario-azul);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
.grupo select,
textarea {
    padding: 12px;
    border: 1px solid var(--gris-medio);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
.grupo select:focus,
textarea:focus {
    border-color: var(--acento);
    outline: none;
    box-shadow: 0 0 0 3px rgba(169, 50, 38, 0.1);
}

.boton-reservar,
.boton-secundario {
    background-color: var(--acento);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.boton-reservar:hover,
.boton-secundario:hover {
    background-color: #d13333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
    text-decoration: none;
}

.boton-reservar:hover,
.boton-secundario:hover {
    background-color: #d13333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.acciones {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.oculto {
    display: none;
}

.grupo {
    position: relative;
}

.grupo input.is-invalid,
.grupo select.is-invalid,
.grupo textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.error-badge {
    position: absolute;
    right: 10px;
    top: 38px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    pointer-events: none;
}


.error-msg {
    position: absolute;
    left: 0;
    top: 66px;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    max-width: 360px;
    z-index: 5;
}

.error-msg::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #f8d7da transparent;
}

#toast-root {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 420px;
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideIn .25s ease-out;
    font-size: 14px;
}


.toast.error {
    background: #c0392b;
}

.toast.success {
    background: #27ae60;
}

.toast.info {
    background: #2980b9;
}

.toast .close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}


#custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


#custom-alert .alert-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
}

#custom-alert .alert-box p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

#custom-alert .alert-box button {
    background: #a93226;
    border: none;
    padding: 10px 18px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#custom-alert .alert-box button:hover {
    background: #d13333;
}


.fd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.fd-dialog {
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    border-top: 6px solid var(--acento);
    padding: 22px 20px 16px;
    text-align: center;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 12px;
    align-items: center;
    animation: fd-pop .12s ease-out;
}

.fd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.fd-dialog {
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    border-top: 6px solid var(--acento, #1e88e5);
    padding: 22px 20px 16px;
    text-align: center;
    animation: fd-pop .12s ease-out;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
}

@keyframes fd-pop {
    from {
        transform: scale(.98);
        opacity: .8;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fd-text {
    font: 700 16px/1.4 "Open Sans", sans-serif;
    color: #222;
    margin-bottom: 8px;
    text-align: center;
}

.fd-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.fd-btn {
    background: var(--acento, #1e88e5);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    transition: background .15s;
}

.fd-btn-primary {
    background: #1e88e5;
}

.fd-btn-danger {
    background: #b71c1c;
}

.fd-btn-primary:hover {
    background: #1661b5;
}

.fd-btn-danger:hover {
    background: #8c1616;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 22px;
    color: #444;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    transition: background .15s;
}

.modal__close:hover {
    background: #eee;
}

@keyframes fd-pop {
    from {
        transform: scale(.98);
        opacity: .8
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.fd-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.fd-icon.success {
    width: 40px;
    height: 40px;
    background: #388e3c;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}



.fd-text {
    font: 700 16px/1.4 "Open Sans", sans-serif;
    color: #222;
    margin-bottom: 8px;
    text-align: left
}

.fd-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px
}

.fd-btn {
    background: var(--acento);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800
}

.fd-btn:hover {
    background: #d13333
}


.fd-dialog.success {
    border-top-color: #1e88e5;
}


.is-invalid {
    border-color: #c62828 !important;
}

.error-badge {
    position: absolute;
    transform: translate(6px, -8px);
    background: #c62828;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700
}

.grupo {
    position: relative;
}

.error-msg {
    color: #c62828;
    font-weight: 600;
    margin-top: 6px;
    font-size: 13px;
}


@keyframes slideIn {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .formulario-contenedor {
        flex-direction: column;
    }

    .lado-izquierdo,
    .lado-derecho {
        flex: none;
        width: 100%;
    }

    form {
        padding: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}


.modal__overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    padding: 16px;
}

.modal {
    width: min(92vw, 480px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    animation: modal-pop .14s ease-out;
    font-family: 'Open Sans', system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

@keyframes modal-pop {
    from {
        transform: scale(.98);
        opacity: .8
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.modal__header {
    background: var(--primario-azul, #16213e);
    color: #fff;
    padding: 14px 18px;
    position: relative;
    border-bottom: 4px solid var(--acento, #a93226);
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.modal__close:hover {
    background: rgba(255, 255, 255, .12)
}

.modal__body {
    padding: 18px;
    color: #222;
    font-size: 15px;
    line-height: 1.45
}

.modal__actions {
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f7f7f8;
    border-top: 1px solid #eee;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 15px
}

.btn--muted {
    background: #8a9099;
    color: #fff
}

.btn--primary {
    background: var(--primario-azul, #16213e);
    color: #fff
}

.btn--danger {
    background: var(--acento, #a93226);
    color: #fff
}

.btn:focus {
    outline: 3px solid rgba(0, 0, 0, .08)
}

.btn:hover {
    filter: brightness(1.05)
}
.btn-regresar{
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primario-azul, #16213e), #0e1530);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  backdrop-filter: saturate(120%) blur(4px);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-regresar i{ font-size: 16px; line-height: 1; }
.btn-regresar:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  filter: brightness(1.05);
}
.btn-regresar:active{ transform: translateY(0); }
.btn-regresar:focus{ outline: 3px solid rgba(169,50,38,.25); outline-offset: 2px; }

@media (max-width: 480px){
  .btn-regresar{ top: 12px; left: 12px; padding: 9px 12px; }
  .btn-regresar span{ display: none; } 
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gris-medio);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  transition: border-color .3s ease, box-shadow .3s ease;
}

input[type="date"]:focus {
  border-color: var(--acento);
  outline: none;
  box-shadow: 0 0 0 3px rgba(169,50,38,.1);
}
.boton-vehiculo {
  background-color: #fff;
  color: #b91c1c;
  border: 2px solid #b91c1c;
  border-radius: 6px;
  height: 38px; 
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.boton-vehiculo:hover {
  background-color: #b91c1c;
  color: #fff;
  transform: translateY(-1px);
}

.boton-vehiculo i {
  font-size: 16px;
}

#modalVehiculo *, #modalVehiculo *::before, #modalVehiculo *::after {
  box-sizing: border-box;
}


#modalVehiculo .modal {
  max-width: 640px;
  width: calc(100% - 24px);
  border-radius: 12px;
  overflow: hidden;
}

#modalVehiculo .modal__header {
  background: #17223b; 
  color: #fff;
  padding: 14px 18px;
}
#modalVehiculo .modal__title { margin: 0; font-size: 16px; }

#modalVehiculo .modal__body {
  padding: 18px;
}


#modalVehiculo .grid-2 {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 16px 18px;
}
@media (min-width: 640px) {
  #modalVehiculo .grid-2 { grid-template-columns: 1fr 1fr; }
}


#modalVehiculo .grupo label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;  
  font-size: 14px;
}

#modalVehiculo .grupo input[type="text"],
#modalVehiculo .grupo input[type="tel"],
#modalVehiculo .grupo input[type="number"] {
  width: 100%;
  height: 40px;              
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}

#modalVehiculo .grupo input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}


#modalVehiculo #v_modelo { grid-column: 1 / -1; }


#modalVehiculo .error-msg {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
}

#modalVehiculo .modal__actions {
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;  
}

#modalVehiculo .btn {
  height: 40px;    
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
#modalVehiculo .btn--danger { background:#b91c1c; color:#fff; }
#modalVehiculo .btn--primary { background:#2563eb; color:#fff; }

#modalVehiculo .btn--danger:hover { filter: brightness(1.05); }
#modalVehiculo .btn--primary:hover { filter: brightness(1.05); }

#modalVehiculo .modal__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}
