/* ==============================
   COMPANY INFO
================================ */

.company-page {
  padding: 16px;
  padding-top: 8px; /* evita que el título quede pegado */
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.company-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.company-card label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 12px;
}

.company-card input {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.company-card input:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.hint {
  font-size: 11px;
  color: #9ca3af;
}

/* CONTACTS */
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge.principal {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
}

/* SWITCH */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--color-primary);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* ONBOARDING */
.onboarding-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.onboarding-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.ok {
  color: #16a34a;
}

.no {
  color: #dc2626;
}

.progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
}

.progress-text {
  font-size: 12px;
  color: #6b7280;
}

/* SAVE */
.btn-primary {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.company-card select {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #ffffff;
}

/* ==============================
   CARD HEADER ACTIONS
================================ */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  gap: 6px;
}

/* Base */
.card-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.address-actions {
  display: flex;
  gap: 6px;
}

.badge-principal {
  color: #ca8a04;
  font-weight: 600;
}

.badge-secondary {
  color: #6b7280;
  font-weight: 500;
}

/* ==============================
   COMPANY ADDRESS LIST
================================ */
.address-view {
  padding: 10px 0;
}

.address-view + .address-view {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 14px;
}

.address-switches {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* ==============================
   ADDRESS SWITCHES INLINE
================================ */
.address-switches-inline {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.switch-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

/* Ajuste fino de alineación texto vs switch */
.switch-inline .switch {
  transform: translateY(7px);
}

/* ==============================
   ADDRESS DISABLED STATE
================================ */
.address-disabled {
  opacity: 0.5;
}

.address-disabled .address-main {
  pointer-events: none;
}

.address-disabled .global-btn-edit {
  opacity: 0.6;
}
