.carrier-profile-page {
  background-color: #6c757d;
  min-height: 100vh;
}

.form-container-wrapper {
  padding: 32px 16px;
  display: flex;
  justify-content: center;
  margin-top: 69px;
}

.profile-form-card {
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.text-pink { color: #d84b74 !important; }

.profile-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.profile-form-card .form-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
  margin-right: 1.5rem;
}

.profile-form-card .form-group label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #100e35;
  margin-bottom: 0.5rem;
}

.profile-form-card .form-group .config-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #100e35;
  margin-bottom: 0.5rem;
}

.profile-form-card .preferences-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.profile-form-card .preferences-box {
  background-color: #eff6ff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

/* Badges del Header */
.header-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.badge-ia, .badge-whatsapp {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-ia { background: #f3e8ff; color: #a855f7; }
.badge-whatsapp { background: #dcfce7; color: #166534; }

/* Configuración Técnica */
.tech-config-box {
  border: 1px solid #2563eb;
  background-color: white;
}

.color-dark-blue { color: #1e40af !important; }

.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,..."); /* Icono flecha */
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* Lista de Avales */
.aval-list { display: flex; flex-direction: column; gap: 10px; }

.aval-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
}

.aval-item.active { border-color: #2563eb; }

.aval-text strong { font-size: 0.875rem; color: #100e35; }
.aval-text span { font-size: 0.75rem; color: #2563eb; }

/* Documentación */
.documentation-section { margin-top: 40px; }

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-label-large { font-weight: 800; font-size: 1.125rem; color: #100e35; margin: 0; }
.ia-small { font-size: 0.75rem; background-color: #eff6ff; color: var(--gray-color); padding: 0.25rem 0.75rem; border-radius: 100px; }

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
}

.doc-name { font-weight: 700; color: #100e35; margin: 0; font-size: 1rem; }
.doc-status { font-size: 0.875rem; margin: 5px 0 0; }

.btn-subir {
  background: transparent;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
  display: inline-block;
  cursor: pointer;
}

.doc-item input[type="file"] {
  display: none;
}

.doc-item .doc-status.selected {
  color: #25d366 !important;
  font-weight: bold;
}

.doc-item .doc-status.selected:before {
  content: '\f058'; /* fa-circle-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 6px;
}

/* Botón Guardar */
.centered { justify-content: center !important; margin-top: 40px; }

.btn-save {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.btn-save[disabled], .btn-save:disabled {
  background: #e5e7eb !important;
  color: #a1a1aa !important;
  cursor: not-allowed !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0.7;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn-save:hover { background: #c23a63; }

/* Estilos para la nueva vista de perfil del carrier */

.carrier-profile-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 12px;
  margin-top: 80px;
}

.carrier-profile-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
}

.carrier-profile-header {
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.carrier-profile-header h2 {
  margin: 0;
  color: #111827;
  font-size: 1.875rem;
  font-weight: 700;
}

.carrier-profile-section {
  margin-bottom: 32px;
}

.carrier-profile-section:last-child {
  margin-bottom: 0;
}

.carrier-profile-section h3 {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.section-header-with-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header-with-btn h3 {
  margin: 0;
}

.carrier-btn-add-vehicle {
  background: #d84b74;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.carrier-btn-add-vehicle:hover {
  background: #c23a63;
}

.carrier-profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.info-item {
  color: #374151;
  line-height: 1.6;
}

.info-item strong {
  color: #111827;
  margin-right: 8px;
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicle-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.vehicle-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vehicle-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.carrier-btn-edit-vehicle {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.carrier-btn-edit-vehicle:hover {
  background: #059669;
}

.carrier-btn-delete-vehicle {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.carrier-btn-delete-vehicle:hover {
  background: #dc2626;
}

.carrier-btn-delete-vehicle i {
  font-size: 1rem;
}

.vehicle-icon {
  width: 48px;
  height: 48px;
  background: #d84b74;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vehicle-details {
  flex: 1;
}

.vehicle-details strong {
  display: block;
  color: #111827;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  color: #374151;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.spec-badge.aval {
  background: #e0f2f1;
  color: #065f46;
}

.spec-badge i {
  font-size: 0.875rem;
}

.carrier-profile-empty {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
}

.carrier-profile-empty i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

.carrier-profile-empty p {
  margin: 8px 0;
  font-size: 1rem;
  color: #374151;
}

.empty-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
}