/* =========================
   CVT UI - RESERVAS
========================= */

.cvt-reservas-app {
  position: relative;
  max-width: 1180px;
  margin: 32px auto;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e7ebf1;
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.07);
}

/* =========================
   CABECERA
========================= */
.cvt-reservas-cabecera {
  margin-bottom: 22px;
}

.cvt-reservas-cabecera h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.cvt-reservas-cabecera p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================
   PROGRESO
========================= */
.cvt-reservas-progreso {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.cvt-reservas-progreso-item {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 11px 14px;
  border-radius: 999px;
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #475569;
  border: 1px solid #e4eaf1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.cvt-reservas-progreso-item.activo {
  background: linear-gradient(135deg, #07132c 0%, #0b1736 48%, #030814 100%);
  color: #ffffff;
  border-color: #07132c;
  box-shadow: 0 14px 24px rgba(7, 19, 44, 0.18);
}

.cvt-reservas-progreso-item.completado {
  background: linear-gradient(135deg, #ecfdf3 0%, #e8f8ee 100%);
  color: #166534;
  border-color: #ccebd7;
}

/* =========================
   PASOS
========================= */
.cvt-reservas-paso {
  display: none;
}

.cvt-reservas-paso.activo {
  display: block;
}

/* =========================
   GRID / CAMPOS
========================= */
.cvt-reservas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cvt-campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cvt-campo label {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.cvt-campo input,
.cvt-campo select,
.cvt-campo textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: #ffffff;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  font-size: 15px;
  color: #0f172a;
}

.cvt-campo input::placeholder,
.cvt-campo textarea::placeholder {
  color: #94a3b8;
}

.cvt-campo input:focus,
.cvt-campo select:focus,
.cvt-campo textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

/* =========================
   SECCIONES
========================= */
.cvt-caja-seccion {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #e7ebf1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.cvt-caja-seccion h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.cvt-opciones-lista {
  display: grid;
  gap: 16px;
}

/* =========================
   OPCIONES
========================= */
.cvt-opcion-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #e6ebf1;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.cvt-opcion-item:hover {
  transform: translateY(-2px);
  border-color: #d9e2ec;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.cvt-opcion-item.activo {
  border-color: #2563eb;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.1);
}

.cvt-opcion-item input[type='checkbox'] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
}

.cvt-opcion-item label {
  display: flex;
  gap: 14px;
  width: 100%;
  align-items: flex-start;
}

.cvt-opcion-etiqueta-principal {
  display: flex;
  gap: 14px;
  width: 100%;
  align-items: flex-start;
}

.cvt-opcion-icono {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #e8f1ff 100%);
  border: 1px solid #dbe8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cvt-opcion-contenido strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
  color: #0f172a;
}

.cvt-opcion-contenido p {
  margin: 0 0 8px;
  color: #64748b;
  line-height: 1.55;
  font-size: 14px;
}

.cvt-opcion-etiqueta {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cvt-opcion-item-extra {
  justify-content: space-between;
  align-items: center;
}

.cvt-extra-cantidad {
  min-width: 130px;
}

.cvt-extra-cantidad label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 12px;
  color: #334155;
  letter-spacing: 0.01em;
}

.cvt-extra-cantidad input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d9e3;
  border-radius: 12px;
}

/* =========================
   VACÍO
========================= */
.cvt-bloque-vacio {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

/* =========================
   RESUMEN RÁPIDO
========================= */
.cvt-resumen-rapido {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  margin-top: 18px;
  color: #334155;
}

.cvt-resumen-rapido strong {
  color: #0f172a;
}

/* =========================
   ACCIONES
========================= */
.cvt-acciones-paso {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cvt-acciones-paso-final {
  justify-content: flex-end;
  align-items: stretch;
}

.cvt-acciones-paso-final .cvt-boton {
  min-height: 52px;
}

.cvt-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  font-size: 15px;
  line-height: 1.2;
}

.cvt-boton-principal {
  background: linear-gradient(135deg, #07132c 0%, #0b1736 48%, #030814 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.cvt-boton-principal:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
}

.cvt-boton-secundario {
  background: #eef2f7;
  color: #111827;
}

.cvt-boton-secundario:hover {
  background: #e1e8f0;
}

/* =========================
   ALERTAS
========================= */
.cvt-reservas-alerta {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.cvt-alerta-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cvt-alerta-exito {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #b7ebc6;
}

/* =========================
   LOADER
========================= */
.cvt-reservas-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  z-index: 20;
  backdrop-filter: blur(3px);
}

.cvt-reservas-loader[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.cvt-reservas-loader-caja {
  text-align: center;
  padding: 20px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.cvt-reservas-loader-texto {
  margin: 0;
  color: #475569;
  font-weight: 700;
}

.cvt-reservas-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #0f172a;
  border-radius: 999px;
  animation: cvt-spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes cvt-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   RESUMEN PREMIUM
========================= */
.cvt-resumen-premium-v2 {
  display: grid;
  gap: 20px;
}

.cvt-resumen-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e6ebf1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.cvt-resumen-hero-media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f4f6 0%, #eceff3 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cvt-resumen-vehiculo-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cvt-resumen-vehiculo-sin-imagen {
  color: #6b7280;
  font-weight: 700;
}

.cvt-resumen-hero-info h2 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.cvt-resumen-subtitulo {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

.cvt-resumen-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.cvt-resumen-datos-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cvt-resumen-mini-card {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.cvt-resumen-mini-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.cvt-resumen-mini-card strong {
  font-size: 16px;
  color: #0f172a;
  font-weight: 900;
}

.cvt-resumen-mini-card-destacado {
  background: linear-gradient(180deg, #eff6ff 0%, #e8f1ff 100%);
  border-color: #bfdbfe;
}

.cvt-resumen-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cvt-resumen-panel {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e6ebf1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.cvt-resumen-panel h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
}

.cvt-resumen-linea {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  align-items: start;
}

.cvt-resumen-linea span {
  color: #64748b;
}

.cvt-resumen-linea strong {
  color: #0f172a;
  text-align: right;
  font-weight: 800;
}

.cvt-resumen-linea:last-child {
  border-bottom: 0;
}

.cvt-resumen-total {
  font-size: 18px;
  font-weight: 900;
}

.cvt-resumen-lista {
  display: grid;
  gap: 12px;
}

.cvt-resumen-item-lista {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.cvt-resumen-item-lista:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cvt-resumen-item-vacio {
  color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .cvt-resumen-hero {
    grid-template-columns: 1fr;
  }

  .cvt-resumen-datos-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cvt-reservas-grid {
    grid-template-columns: 1fr;
  }

  .cvt-opcion-item-extra {
    flex-direction: column;
    align-items: flex-start;
  }

  .cvt-extra-cantidad {
    width: 100%;
  }

  .cvt-resumen-grid-pro {
    grid-template-columns: 1fr;
  }

  .cvt-reservas-progreso {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cvt-acciones-paso-final {
    justify-content: stretch;
  }

  .cvt-acciones-paso-final .cvt-boton {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .cvt-reservas-app {
    padding: 16px;
    border-radius: 20px;
    margin: 18px auto;
  }

  .cvt-reservas-cabecera h1 {
    font-size: 30px;
  }

  .cvt-reservas-cabecera p {
    font-size: 14px;
  }

  .cvt-reservas-progreso {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cvt-reservas-progreso-item {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }

  .cvt-caja-seccion {
    padding: 18px;
    border-radius: 18px;
  }

  .cvt-resumen-datos-top {
    grid-template-columns: 1fr;
  }

  .cvt-acciones-paso {
    flex-direction: column;
  }

  .cvt-boton {
    width: 100%;
  }

  .cvt-resumen-hero-info h2 {
    font-size: 28px;
  }

  .cvt-resumen-hero-media {
    min-height: 200px;
  }

  .cvt-resumen-linea {
    flex-direction: column;
    gap: 4px;
  }

  .cvt-resumen-linea strong {
    text-align: left;
  }
}
