/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• FORMULARIO DE COTIZACIÃ“N â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cotizacion {
  position: relative;
  padding: 70px 0 80px;
  background-color: #F7F7F7;
}

.cotizacion .section-title {
  margin-bottom: 48px;
  color: #1a1a1a;
}

.cotizacion__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
}

.cotizacion__promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  /* Que el carrusel nunca ensanche la columna */
  min-width: 0;
  max-width: 100%;
}

.cotizacion__form-wrap {
  min-width: 0;
}

.cotizacion__promo-titulo {
  font-size: clamp(1.375rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0;
}

.cotizacion__promo-accent {
  color: #EB690B;
  /* Oscurecido para cumplir WCAG AA (5.2:1 sobre #F7F7F7) */
  font-style: normal;
}

.cotizacion__promo-desc {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
}

.cotizacion__benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cotizacion__benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #EB690B;
  /* Oscurecido para cumplir WCAG AA */
}

.cotizacion__benefits-list li i {
  color: #EB690B;
  font-size: 1.1rem;
}

.cotizacion__form-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• CAMPOS DEL FORM â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cotizacion__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cotizacion__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cotizacion__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2a2a;
}

.cotizacion__field input,
.cotizacion__field select,
.cotizacion__field textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 5px 15px;
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.cotizacion__field input:focus,
.cotizacion__field select:focus,
.cotizacion__field textarea:focus {
  border-color: #EB690B;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.cotizacion__field textarea {
  max-height: 90px;
}

/* ============ VALIDACIÓN EN LÍNEA (avisos dentro del modal) ============ */
.cotizacion__input-wrap {
  position: relative;
}

.cotizacion__input-wrap input,
.cotizacion__input-wrap textarea {
  padding-right: 38px;
}

.field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.field-icon--textarea {
  top: 12px;
  transform: none;
}

.cotizacion__field.invalid input,
.cotizacion__field.invalid textarea {
  border-color: #e11d48;
}

.cotizacion__field.invalid input:focus,
.cotizacion__field.invalid textarea:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.cotizacion__field.invalid .field-icon {
  display: flex;
  color: #e11d48;
  border: 1.5px solid #e11d48;
}

.cotizacion__field.valid .field-icon {
  display: flex;
  color: #16a34a;
  border: none;
  font-size: 16px;
}

.field-error {
  display: none;
  color: #e11d48;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cotizacion__field.invalid .field-error {
  display: block;
}

.form-message--error {
  color: #e11d48;
}

.form-message--success {
  color: #16a34a;
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #666;
}

/* ============ PRODUCTOS SELECCIONADOS JUNTO AL FORMULARIO ============ */
.fc-selected {
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}

.fc-selected[hidden] {
  display: none;
}

.fc-selected__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-selected__title i {
  color: #EB690B;
}

.fc-selected__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.fc-selected__carousel {
  flex: 1;
  min-width: 0;
  /* Tope: máx. 3 productos visibles (3×128px + 2×12px gap); el resto con flechas */
  max-width: 408px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  /* Scroll oculto: la navegación es con las flechas */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.fc-selected__arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.fc-selected__arrow[hidden] {
  display: none;
}

.fc-selected__arrow:hover:not(:disabled) {
  background: #EB690B;
  border-color: #EB690B;
  color: #fff;
}

.fc-selected__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.fc-selected__carousel::-webkit-scrollbar {
  display: none;
}

.fc-selected__item {
  position: relative;
  flex: 0 0 128px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fc-selected__img {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-selected__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fc-selected__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}

.fc-selected__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fc-selected__remove:hover {
  background: #dc2626;
  color: #fff;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• BOTÃ“N ENVIAR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cotizacion__btn {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  background: #EB690B;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cotizacion__btn:hover {
  background: #EB690B;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(235, 105, 11, 0.3);
}

.cotizacion__btn:active {
  transform: translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• RESPONSIVE â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 860px) {
  .cotizacion__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .cotizacion {
    padding: 50px 0 60px;
  }
}

@media (max-width: 540px) {
  .cotizacion {
    padding: 36px 0 44px;
  }
  .cotizacion__inner {
    padding: 0 14px;
  }
  .cotizacion__form-wrap {
    padding: 22px 18px;
    gap: 14px;
    border-radius: 10px;
  }
  /* Items más chicos: 2 visibles sin scroll forzado */
  .fc-selected__item {
    flex-basis: 104px;
  }
  .fc-selected__img {
    height: 68px;
  }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• FIN FORMULARIO COTIZACIÃ“N â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
