@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap");

/* Página datos — tipografía y look alineados a la captura SURA */
.datos-page,
.datos-page * {
  font-family: "Barlow", sans-serif !important;
}

.datos-page {
  padding: 2rem 0 4.5rem;
  background: #fff;
  color: #464646;
}

.datos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 992px) {
  .datos-grid {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 2.25rem;
  }
}

/* —— Columna vehículo —— */
.caja-vehiculo {
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  padding: 1rem 1rem 0.35rem;
  background: #fff;
}

.caja-vehiculo .vehicle-info-title {
  border-bottom: none !important;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0033a0 !important;
  line-height: 1.2;
}

.caja-vehiculo .vehicle-info-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.caja-vehiculo .vehicle-info-list li {
  margin-bottom: 0.95rem;
  line-height: 1.2;
}

.caja-vehiculo .vehicle-info-label {
  position: static !important;
  display: block;
  left: auto;
  top: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #727272 !important;
  background: transparent;
  margin-bottom: 0.15rem;
}

.caja-vehiculo .vehicle-info-value {
  display: block;
  color: #464646;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* —— Columna tomador —— */
.datos-tomador-col .tomador-title {
  border-bottom: none !important;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0033a0 !important;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.datos-tomador-col .tomador-title .info-icon {
  color: #00aec7;
  font-size: 1rem;
}

.campo-tomador {
  position: relative;
  margin-bottom: 1.5rem;
}

.campo-tomador label {
  position: absolute;
  left: 0.75rem;
  top: -0.55rem;
  background: #fff;
  padding: 0 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9a9a9a;
  z-index: 1;
  margin: 0;
  line-height: 1;
  pointer-events: none;
}

.campo-tomador.is-filled label,
.campo-tomador:focus-within label {
  color: #00aec7;
}

.campo-tomador input,
.campo-tomador select {
  width: 100%;
  height: 52px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  background: #fff;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.campo-tomador select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300aec7' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  color: #9a9a9a;
}

.campo-tomador select:valid,
.campo-tomador select.has-value {
  color: #333;
}

.campo-tomador input:focus,
.campo-tomador select:focus {
  border-color: #00aec7;
}

.campo-tomador .input-icon {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00aec7;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.campo-tomador .input-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.campo-tomador input[type="date"] {
  color-scheme: light;
}

.campo-tomador input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 2.5rem;
  height: 100%;
  cursor: pointer;
}

.radio-misma-ciudad {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0.15rem 0 1.5rem;
  flex-wrap: wrap;
}

.radio-misma-ciudad > span {
  color: #727272;
  font-size: 0.9375rem;
  font-weight: 400;
  flex: 1 1 100%;
  margin-bottom: 0.15rem;
}

@media (min-width: 640px) {
  .radio-misma-ciudad > span {
    flex: 1 1 auto;
    margin-bottom: 0;
  }
}

.radio-misma-ciudad label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #464646;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
}

.radio-misma-ciudad input[type="radio"] {
  accent-color: #00aec7;
  width: 1rem;
  height: 1rem;
}

.alerta-datos {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #e6f7fb;
  border-radius: 2px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  color: #0033a0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.alerta-datos i {
  color: #00aec7;
  margin-top: 0.1rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.alerta-datos p {
  margin: 0;
  color: #0033a0;
}

/* —— Columna precio —— */
.checkout-summary {
  width: 100%;
}

.checkout-summary .price-box {
  background: #eff0f1 !important;
  border: none;
  border-radius: 4px;
  padding: 1rem 1.1rem 0.95rem;
  margin-bottom: 1.1rem;
  box-shadow: none !important;
}

.precio-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-summary .price-label {
  margin: 0;
  color: #0033a0 !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-summary .price-value {
  display: inline-block;
  margin: 0;
  color: #0033a0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.checkout-summary .nota-aprox {
  color: #00aec7 !important;
  font-size: 0.75rem;
  font-weight: 400;
  margin: 0.55rem 0 0;
  line-height: 1.35;
}

.asesor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
  color: #464646;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
}

.switch-asesor {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-asesor input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-asesor > span {
  position: absolute;
  inset: 0;
  background: #c8c8c8;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.switch-asesor > span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.switch-asesor input:checked + span {
  background: #00aec7;
}

.switch-asesor input:checked + span::before {
  transform: translateX(20px);
}

.datos-page .btnComprar {
  display: block;
  width: 100%;
  max-width: 100% !important;
  background-color: #e3e829 !important;
  color: #0033a0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  border: 0 !important;
  border-radius: 3.125rem !important;
  padding: 0.7rem 1.5rem !important;
  text-transform: none !important;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.datos-page .btnComprar:hover {
  background-color: #00aec7 !important;
  color: #fff !important;
}

.barra-precio-movil {
  display: none;
  font-family: "Barlow", sans-serif !important;
}

@media (max-width: 991.98px) {
  .datos-page {
    padding-bottom: 5.5rem;
  }

  .barra-precio-movil {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #0033a0;
    color: #fff;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .barra-precio-movil small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
  }

  .barra-precio-movil .buy-btn-mobile {
    border: 0;
    border-radius: 2rem;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #0033a0;
    background: #e3e829;
    font-family: "Barlow", sans-serif !important;
  }
}
