/* =========================================================
   JOTA TURISMO - UI PRO (compacta, limpia, inputs normales)
   ========================================================= */

/* -------------------------
   Variables
------------------------- */
:root{
  --bg-main: #1f368d;

  --accent-primary: #2240b2;
  --accent-secondary: #1f368d;
  --accent-orange: #FF8C42;
  --accent-success: #28C76F;

  --text-light: #FDFBF5;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 6px 18px rgba(0,0,0,.10);
  --shadow-md: 0 10px 28px rgba(0,0,0,.14);

  --border: rgba(0,0,0,.08);
  --transition: .22s ease;

  /* Layout */
  --container-max: 1180px;
  --card-pad: 1.15rem;
}

/* -------------------------
   Reset + base
------------------------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ height:100%; scroll-behavior:smooth; }

body{
  min-height:100%;
  background: var(--bg-main);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 92px; /* espacio para footer fijo */
}

/* -------------------------
   Layout container (no full ancho brutal)
------------------------- */
.container-fluid{
  max-width: var(--container-max);
  margin: 0 auto;
}

/* -------------------------
   Header
------------------------- */
/* HEADER PRO */
.header-bar{
  background: rgba(34, 64, 178, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px 14px;
  border-radius: 19px;
}

.header-inner{
  max-width: 1180px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color:#fff;
}

.brand-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.brand-icon i{
  font-size: 1.5rem;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.1;
}

.brand-title{
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 1.15rem;
}

.brand-subtitle{
  font-size: .9rem;
  opacity: .82;
}

.step-box{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 6px;
}

.step-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #2240b2;
  font-weight: 900;
  font-size: .9rem;
}

.step-text{
  color: rgba(255,255,255,.90);
  font-weight: 700;
  font-size: .92rem;
}

/* Responsive: móvil */
@media (max-width: 768px){
  .header-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .step-box{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    width:100%;
  }
}


/* -------------------------
   Card (blanca, elegante)
------------------------- */
.section-card{
  background: rgba(255,255,255,.97) !important;
  color: #1c1c1c !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
  padding: var(--card-pad) !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section-card h2{ font-size: 1.15rem; }
.section-card h3{ font-size: 1.07rem; }
.section-card .text-muted{ color:#666 !important; }

/* -------------------------
   Form section (barra izquierda)
------------------------- */
.form-section{
  border-left: 4px solid var(--accent-orange);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.form-section h6{
  color: var(--accent-orange) !important;
  font-weight: 700;
  margin-bottom: .6rem;
}

/* -------------------------
   Labels + inputs (normales, no gordos)
------------------------- */
.form-label, label{
  color:#3b3b3b !important;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .4rem;
  display:block;
}

.form-control, .form-select{
  background: #fff !important;
  color: #222 !important;
  border: 1.5px solid rgba(0,0,0,.14) !important;
  border-radius: var(--radius-sm) !important;
  padding: .2rem .85rem !important;
  font-size: .95rem !important;
  height: auto;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.form-control::placeholder{ color:#9a9a9a !important; }

.form-control:focus, .form-select:focus{
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,140,66,.18) !important;
  outline: none;
}

.form-control-lg, .form-select-lg{
  padding: .65rem .9rem !important;
  font-size: .98rem !important;
}

/* -------------------------
   Toggle tipo viaje (chip pro)
------------------------- */
.trip-toggle{
  display:flex;
  gap: .75rem;
  margin-bottom: .5rem;
}
.trip-check{ display:none; }

.trip-btn{
  flex:1;
  min-width: 140px;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(0,0,0,.14);
  border-radius: 14px;
  background: #fff;
  color:#6b6b6b;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all var(--transition);
}

.trip-check:checked + .trip-btn{
  border-color: var(--accent-orange);
  background: rgba(255,140,66,.10);
  color: #c85f17;
}

.trip-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,140,66,.65);
}

/* -------------------------
   Form grid: mejor proporción (sin “bloques”)
------------------------- */
#formBusqueda{ row-gap: .85rem; }

@media (min-width: 992px){
  /* Ruta más grande, botón con mínimo */
  #formBusqueda .col-lg-4{ width: 41.566666% !important; }
  #formBusqueda .col-lg-2{ width: 16.666666% !important; }
  #btnBuscarViaje{ min-width: 180px; }
}

/* -------------------------
   Input-group pasajeros (fino)
------------------------- */
.input-group.input-group-lg{
  border-radius: var(--radius-sm);
  overflow:hidden;
}

.input-group.input-group-lg .btn{
  background: #f6f7f9;
  border: 1.5px solid rgba(0,0,0,.14);
  color:#5c5c5c;
  padding: .55rem .85rem !important;
  border-radius: 0 !important;
}

.input-group.input-group-lg .btn:hover{
  background: rgba(255,140,66,.12);
  border-color: rgba(255,140,66,.65);
  color:#9a4a13;
}

.input-group.input-group-lg .form-control{
  border-left: none !important;
  border-right: none !important;
  text-align:center;
  font-weight:800;
  padding: .55rem .6rem !important;
}

/* -------------------------
   Botones (pro)
------------------------- */
.btn{
  border-radius: 14px !important;
  font-weight: 800 !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-lg{
  padding: .78rem 1.2rem !important;
  font-size: 1rem !important;
}

.btn-primary{
  background: var(--accent-orange) !important;
  border: none !important;
  color:#fff !important;
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255,140,66,.28);
  background: #ff7b2e !important;
}

.btn-outline-secondary{
  border: 1.5px solid rgba(0,0,0,.14) !important;
}

/* -------------------------
   Resultados: grid + cards más delgadas
------------------------- */
.programaciones-grid{
  display:grid;
  gap: .9rem;
}

@media (min-width: 992px){
  .programaciones-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.programacion-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow:hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.programacion-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255,140,66,.55);
}

.programacion-card.seleccionada{
  border: 2px solid rgba(255,140,66,.85);
  box-shadow: 0 0 0 4px rgba(255,140,66,.12);
}

.programacion-header{
  background:#f7f8fb;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.programacion-ruta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: .85rem;
  margin-bottom: .25rem;
}

.programacion-fecha{
  text-align:center;
  color:#6a6a6a;
  font-size: .88rem;
}

.programacion-body{
  padding: .95rem 1rem;
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  align-items:flex-start;
}

.programacion-info{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .65rem 1rem;
  flex: 1;
}

.info-item{ display:flex; gap:.65rem; align-items:center; }
.info-item i{ font-size: 1.05rem; opacity:.85; }
.info-item small{ color:#6a6a6a; font-size:.82rem; }
.info-item .fw-semibold{ color:#2b2b2b; font-size:.97rem; font-weight:800; }

.programacion-precio{
  min-width: 155px;
  text-align:center;
  padding-left: 1rem;
  border-left: 1px solid rgba(0,0,0,.06);
}

.precio-label{ font-size:.88rem; color:#6a6a6a; margin-bottom:.15rem; }
.precio-valor{ font-size: 1.35rem; font-weight: 900; color: var(--accent-success); margin-bottom:.55rem; }

.btn-seleccionar{
  min-width: 132px;
  padding: .6rem 1rem !important;
  border-radius: 12px !important;
  background: var(--accent-primary) !important;
}

.btn-seleccionar:hover{
  background: var(--accent-secondary) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(34,64,178,.20);
}

.programacion-footer{
  background:#f7f8fb;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: .65rem 1rem;
  color:#6a6a6a;
  font-size: .86rem;
}

/* Responsive: en móvil el precio baja sin verse gigante */
@media (max-width: 992px){
  .programacion-body{ flex-direction:column; }
  .programacion-precio{
    border-left:none;
    border-top: 1px solid rgba(0,0,0,.06);
    padding-left:0;
    padding-top:.9rem;
    width:100%;
  }
}

/* -------------------------
   Footer buttons
------------------------- */
.footer-buttons{
  position:fixed;
  bottom:0; left:0;
  width:100%;
  display:flex;
  justify-content: space-evenly;
  background: rgba(34,64,178,.95);
  backdrop-filter: blur(10px);
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.10);
  z-index: 1000;
}

.footer-buttons button{
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  padding:0;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  transition: all var(--transition);
}

.footer-buttons button i{ font-size: 1.35rem; }

.footer-buttons button.active{
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color:#fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 18px rgba(255,140,66,.26);
}

.footer-buttons button:hover:not(.active){
  border-color: rgba(255,140,66,.85);
  color: var(--accent-orange);
  transform: translateY(-1px);
}

/* -------------------------
   Flatpickr: que NO sea transparente
------------------------- */
.flatpickr-calendar{
  z-index: 2500 !important;
  background: #020353 !important;            /* <- clave */
  border: 1px solid rgba(0,0,0,.14) !important;
  box-shadow: 0 16px 32px rgba(0,0,0,.18) !important;
  border-radius: 14px !important;
  overflow:hidden;
}

.flatpickr-months,
.flatpickr-weekdays{
  background: #020353 !important;
}

.flatpickr-day{
  border-radius: 10px !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background: var(--accent-orange) !important;
  border-color: var(--accent-orange) !important;
  color:#fff !important;
}

/* Evita que algún contenedor lo recorte */
.section-card, .app-container, .container-fluid{ overflow: visible !important; }

/* Scrollbar */
::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: rgba(0,0,0,.12); }
::-webkit-scrollbar-thumb{ background: var(--accent-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: #ff7b2e; }


/* NUEVO CSS */
#fecha_ida {
  cursor: pointer;
}

/* Estilos para los botones de tipo de viaje */
.trip-toggle {
    display: flex;
    gap: 0.25rem;
}

.trip-check {
    display: none;
}

.trip-btn {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 38px;
}

.trip-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.trip-check:checked + .trip-btn {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    #formBusqueda > div {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .trip-toggle {
        justify-content: center;
        width: 100%;
    }
    
    #btnBuscarViaje {
        width: 100%;
    }
}

/* Estilos para la versión compacta */
.programacion-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.programacion-card-compact {
    transition: all 0.2s;
}

.programacion-card-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .section-card {
        padding: 1rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Para móviles pequeños */
@media (max-width: 576px) {
    .programacion-card-compact .col-8,
    .programacion-card-compact .col-4 {
        width: 100%;
        text-align: left !important;
    }
    
    .programacion-card-compact .btn {
        margin-top: 0.5rem;
    }
}

/* Para cuando hay muchas filas, hacemos scroll */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}


/* BLOQUE 3 - 4 Y 5 */
/* ===================== BLOQUE 3: ASIENTOS REGRESO ===================== */
#bloque-paso-3 .section-card {
    border-color: #FF8C42;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.99) !important;
}

#bloque-paso-3 .form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.22s ease;
}

#bloque-paso-3 .form-check-input:checked {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

#bloque-paso-3 .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18) !important;
}

#bloque-paso-3 .form-check-label {
    font-weight: 700 !important;
    color: #3b3b3b !important;
    font-size: 0.95rem;
    cursor: pointer;
    padding-left: 0.5rem;
    transition: color 0.2s ease;
}

#bloque-paso-3 .form-check-label:hover {
    color: #22c55e !important;
}

#btnOmitirRegreso {
    border: 2px solid rgba(0, 0, 0, 0.14) !important;
    color: #6b6b6b !important;
    font-weight: 700 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 14px !important;
    transition: all 0.22s ease;
    background: #fff !important;
}

#btnOmitirRegreso:hover {
    border-color: rgba(255, 140, 66, 0.65) !important;
    color: #c85f17 !important;
    background: rgba(255, 140, 66, 0.08) !important;
    transform: translateY(-1px);
}

#btnContinuarAsientosRegreso {
    padding: 0.75rem 2rem !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    color: white !important;
    transition: all 0.22s ease;
}

#btnContinuarAsientosRegreso:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.28) !important;
}

/* ===================== BLOQUE 4: REGISTRO PASAJEROS ===================== */
#bloque-registro-pasajeros .section-card {
    border-color: #2240b2;
    border-width: 2px;
}

#texto-registro-pasajeros {
    color: #6b6b6b !important;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
}

/* Resumen de asientos seleccionados */
#resumen-asientos-seleccionados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
}

.asiento-resumen-item {
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.22s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.asiento-resumen-item:hover {
    border-color: rgba(34, 64, 178, 0.4);
    box-shadow: 0 4px 8px rgba(34, 64, 178, 0.12);
    transform: translateY(-1px);
}

.asiento-resumen-item.ida {
    border-left: 4px solid #2240b2;
}

.asiento-resumen-item.regreso {
    border-left: 4px solid #22c55e;
}

.asiento-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.asiento-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2240b2 0%, #1f368d 100%);
    color: white;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(34, 64, 178, 0.2);
}

.asiento-numero.regreso {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 3px 6px rgba(34, 197, 94, 0.2);
}

.asiento-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.asiento-details .fw-semibold {
    color: #2b2b2b;
    font-weight: 800 !important;
    font-size: 0.95rem;
}

.asiento-details .text-muted {
    color: #6a6a6a !important;
    font-size: 0.84rem;
}

/* Card de titular */
#bloque-registro-pasajeros .card.border-primary {
    border: 2px solid #2240b2 !important;
    border-radius: 14px !important;
    overflow: hidden;
}

#bloque-registro-pasajeros .card-header.bg-primary-subtle {
    background: linear-gradient(135deg, rgba(34, 64, 178, 0.15) 0%, rgba(34, 64, 178, 0.08) 100%) !important;
    border-bottom: 1px solid rgba(34, 64, 178, 0.2);
    padding: 1rem 1.25rem;
}

#bloque-registro-pasajeros .card-header h5 {
    color: #2240b2 !important;
    font-weight: 800 !important;
    font-size: 1.1rem;
}

/* Formularios de pasajeros */
.pasajero-form-card {
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.22s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pasajero-form-card:hover {
    border-color: rgba(34, 64, 178, 0.4);
    box-shadow: 0 4px 8px rgba(34, 64, 178, 0.12);
}

.pasajero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.pasajero-titulo {
    display: flex;
    align-items: center;
    font-weight: 800 !important;
    color: #1c1c1c !important;
    font-size: 1.05rem;
}

.pasajero-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2240b2 0%, #1f368d 100%);
    color: white;
    border-radius: 10px;
    margin-right: 0.9rem;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(34, 64, 178, 0.2);
}

/* Mejora a los inputs en el formulario de pasajeros */
#bloque-registro-pasajeros .form-control,
#bloque-registro-pasajeros .form-select {
    background: #fff !important;
    color: #222 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.95rem !important;
    height: auto;
    transition: all 0.22s ease;
}

#bloque-registro-pasajeros .form-control:focus,
#bloque-registro-pasajeros .form-select:focus {
    border-color: #FF8C42 !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.18) !important;
    outline: none;
}

#btnConfirmarPasajeros {
    padding: 0.875rem 3rem !important;
    background: linear-gradient(135deg, #2240b2 0%, #1f368d 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    color: white !important;
    transition: all 0.22s ease;
    min-width: 300px;
}

#btnConfirmarPasajeros:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(34, 64, 178, 0.28) !important;
}

/* ===================== BLOQUE 5: PAGO ===================== */
#bloque-pago .section-card {
    border-color: #28C76F;
    border-width: 2px;
}

#bloque-pago .resumen-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
}

/* Estilos para los elementos del resumen */
#resumen-completo .resumen-item {
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

#resumen-completo .resumen-item:hover {
    border-color: rgba(40, 199, 111, 0.3);
    box-shadow: 0 2px 6px rgba(40, 199, 111, 0.1);
}

/* Sección de totales */
#bloque-pago .bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

/* Card de pago */
#bloque-pago .card.border-success {
    border: 2px solid #28C76F !important;
    border-radius: 14px !important;
    overflow: hidden;
}

#bloque-pago .card-header.bg-success-subtle {
    background: linear-gradient(135deg, rgba(40, 199, 111, 0.15) 0%, rgba(40, 199, 111, 0.08) 100%) !important;
    border-bottom: 1px solid rgba(40, 199, 111, 0.2);
    padding: 1rem 1.25rem;
}

#bloque-pago .card-header h5 {
    color: #28C76F !important;
    font-weight: 800 !important;
    font-size: 1.1rem;
}

/* Select de método de pago */
#metodo_pago {
    background: #fff !important;
    color: #222 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    height: auto;
    transition: all 0.22s ease;
}

#metodo_pago:focus {
    border-color: #28C76F !important;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.18) !important;
}

/* Campo de operación */
#campo_operacion .form-control {
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
}

#campo_operacion .form-control:focus {
    border-color: #28C76F !important;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.18) !important;
}

/* Checkbox términos */
#acepta_terminos {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
}

#acepta_terminos:checked {
    background-color: #28C76F !important;
    border-color: #28C76F !important;
}

#acepta_terminos:focus {
    box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.18) !important;
}

/* Campo de voucher */
#campo_voucher .border {
    border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 12px;
    background: #fff;
    transition: all 0.22s ease;
}

#campo_voucher .border:hover {
    border-color: rgba(40, 199, 111, 0.4) !important;
}

#campo_voucher .form-control {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
}

#campo_voucher .form-control:focus {
    box-shadow: none !important;
}

#preview_image {
    border: 2px solid rgba(40, 199, 111, 0.3);
    border-radius: 10px;
    max-height: 180px;
    object-fit: cover;
}

/* Botón de pago final */
#btnProcesarPago {
    padding: 1rem 3rem !important;
    background: linear-gradient(135deg, #28C76F 0%, #22bb63 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    color: white !important;
    transition: all 0.22s ease;
    min-width: 320px;
}

#btnProcesarPago:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(40, 199, 111, 0.28) !important;
}

#total_btn_pago {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 900;
}

/* ===================== RESPONSIVE ADJUSTMENTS ===================== */
@media (max-width: 768px) {
    /* Bloque 4 */
    #resumen-asientos-seleccionados {
        grid-template-columns: 1fr;
    }
    
    .pasajero-form-card {
        padding: 1rem;
    }
    
    .pasajero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    #btnConfirmarPasajeros {
        min-width: 100%;
        width: 100%;
    }
    
    /* Bloque 5 */
    #bloque-pago .resumen-card {
        padding: 1rem;
    }
    
    #btnProcesarPago {
        min-width: 100%;
        width: 100%;
        padding: 0.875rem 1.5rem !important;
    }
    
    #campo_voucher .form-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    /* Ajuste de botones en bloque 3 */
    #bloque-paso-3 .text-center {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #btnOmitirRegreso,
    #btnContinuarAsientosRegreso {
        width: 100%;
    }
}

/* Ajuste para mejorar espaciado en todos los bloques */
#bloque-paso-3 .section-card,
#bloque-registro-pasajeros .section-card,
#bloque-pago .section-card {
    margin-bottom: 1.5rem;
}