/* ==========================================================================
   Formularios de soporte y solicitudes (modal + página /soporte)
   ========================================================================== */

#modalSoporte .modal-dialog {
  max-width: 920px;
}

#modalSoporte .modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

#modalSoporte .soporte-modal-header {
  background: linear-gradient(135deg, #214f9a 0%, #1a3d78 100%);
  color: #fff;
  border: none;
  padding: 16px 20px;
  align-items: flex-start;
  gap: 12px;
}

#modalSoporte .soporte-modal-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

#modalSoporte .soporte-modal-header__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
}

#modalSoporte .soporte-modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

#modalSoporte .soporte-modal-header__sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.35;
}

#modalSoporte .soporte-modal-body {
  padding: 16px 20px 12px;
  max-height: min(72vh, 720px);
  overflow-y: auto;
  background: #f8fafc;
}

#modalSoporte .modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  background: #fff;
}

/* Contenedor formulario compartido */
#modalSoporte .soporte-form .soporte-form-section,
#formSoporte .soporte-form .soporte-form-section {
  margin-top: 0;
  border-top: none;
}

#modalSoporte .soporte-form .soporte-form-section:first-child,
#formSoporte .soporte-form .soporte-form-section:first-child {
  padding-top: 0;
}

.soporte-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.soporte-form-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.soporte-form-section--flush {
  padding: 0;
  border: none;
  background: transparent;
}

.soporte-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 10px;
}

.soporte-form-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .soporte-form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .soporte-form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.soporte-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.soporte-field--full {
  grid-column: 1 / -1;
}

.soporte-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  line-height: 1.3;
}

.soporte-required {
  color: #ef4444;
}

.soporte-field-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}

#modalSoporte .soporte-form .form-control,
#formSoporte .soporte-form .form-control {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 7px 11px;
  font-size: 0.875rem;
  min-height: 36px;
  font-family: "Poppins", sans-serif;
  background: #fff;
}

#modalSoporte .soporte-form textarea.form-control,
#formSoporte .soporte-form textarea.form-control {
  min-height: 64px;
  resize: vertical;
  max-height: 120px;
}

#modalSoporte .soporte-form .form-control:focus,
#formSoporte .soporte-form .form-control:focus {
  border-color: #214f9a;
  box-shadow: 0 0 0 3px rgba(33, 79, 154, 0.12);
}

#modalSoporte .soporte-form-select,
#formSoporte .soporte-form-select {
  min-height: 36px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  padding-right: 2.25rem;
  appearance: none;
  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='%23214F9A' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

#modalSoporte .soporte-form input[type="file"].form-control,
#formSoporte .soporte-form input[type="file"].form-control {
  padding: 5px 8px;
  font-size: 0.8rem;
  min-height: auto;
}

/* Aviso plazos (siempre visible) */
.soporte-aviso-plazos {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
}

.soporte-aviso-plazos__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #1e3a5f;
}

.soporte-aviso-plazos__item:last-child {
  margin-bottom: 0;
}

.soporte-aviso-plazos__item i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.85rem;
  color: #214f9a;
}

/* Capacitación compacta */
.soporte-capacitacion-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-top: 4px;
}

.soporte-capacitacion-callout__text {
  font-size: 0.8rem;
  color: #166534;
  line-height: 1.4;
}

.soporte-capacitacion-callout__text strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

/* Ítems repetibles (cristal, perfil, accesorio) */
.soporte-item-card {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.soporte-item-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.soporte-item-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.soporte-item-card__remove {
  flex-shrink: 0;
  padding: 2px 8px;
  line-height: 1.2;
}

.soporte-item-card__remove i {
  pointer-events: none;
}

.soporte-add-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  margin: 4px 0 12px;
  font-size: 0.82rem;
}

.soporte-field--files {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

/* Página /soporte */
.soporte-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
  margin-top: 60px;
}

.soporte-container_form {
  width: 100%;
  max-width: 920px;
  padding: 0;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.soporte-page-header {
  background: linear-gradient(135deg, #214f9a 0%, #1a3d78 100%);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.soporte-page-header__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}

.soporte-page-header h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.soporte-page-header p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.soporte-container_form .form-body {
  padding: 16px 20px 24px;
}

.soporte-container_form .btn-enviar {
  width: 100%;
  margin-top: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: #214f9a;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.soporte-container_form .btn-enviar:hover:not(:disabled) {
  background: #1a3d78;
}

.soporte-container_form .btn-enviar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  #modalSoporte .soporte-modal-body {
    padding: 12px 14px;
    max-height: 78vh;
  }

  #modalSoporte .soporte-modal-header__logo {
    width: 44px;
    height: 44px;
  }

  .soporte-form-section {
    padding: 12px 14px;
  }
}
