.aer-owner-box {
  max-width: 760px;
  margin: 34px auto 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.aer-owner-box h2 {
  margin: 0 0 22px;
}

.aer-owner-name {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.aer-owner-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 9px 16px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 999px;
  line-height: 1;
}

.aer-owner-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  font-size: 14px;
}

.aer-owner-bio {
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

.aer-owner-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px auto;
}

.aer-owner-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.74);
}

.aer-owner-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(100%, 320px);
  margin: 24px auto 0;
}

.aer-owner-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.aer-owner-link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 20, 20, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.aer-owner-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.aer-owner-link span:last-child {
  font-size: 15px;
  font-weight: 600;
}

/* Mi Perfil AER --------------------------------------------------------- */
.aer-user-profile {
  padding: clamp(36px, 6vw, 72px) 20px;
}

.aer-user-profile-inner {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
}

.aer-profile-success {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.04);
  font-weight: 600;
}

.aer-profile-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 980px;
  margin: 30px auto 0;
}

.aer-profile-master-row,
.aer-profile-field {
  box-sizing: border-box;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.aer-profile-master-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.055);
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.aer-profile-master-row.is-active {
  border-color: rgba(20, 20, 20, 0.34);
  background: rgba(255, 255, 255, 0.9);
}

.aer-profile-master-row.is-inactive {
  border-color: rgba(20, 20, 20, 0.12);
  background: rgba(20, 20, 20, 0.025);
}

.aer-profile-master-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.62;
}

.aer-profile-master-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.aer-profile-master-row span:not(.aer-profile-switch-ui):not(.aer-profile-switch-text) {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.72;
}

.aer-profile-master-control {
  display: flex;
  justify-content: flex-end;
}

.aer-profile-fields-panel {
  display: grid;
  gap: 12px;
  transition: opacity .18s ease, filter .18s ease;
}

.aer-profile-fields-panel.is-disabled {
  opacity: 0.38;
  filter: grayscale(1);
  pointer-events: none;
}

.aer-profile-field {
  padding: 14px 16px;
}

.aer-profile-field--inline {
  display: grid;
  grid-template-columns: minmax(135px, 210px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.aer-profile-field--stacked {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.aer-profile-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.aer-profile-label,
.aer-profile-field-head > label {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

.aer-profile-control {
  min-width: 0;
}

.aer-profile-form input[type="text"],
.aer-profile-form input[type="url"],
.aer-profile-form select,
.aer-profile-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.aer-profile-switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.aer-profile-switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.aer-profile-switch-ui {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  transition: background .18s ease, border-color .18s ease;
}

.aer-profile-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform .18s ease;
}

.aer-profile-switch input[type="checkbox"]:checked + .aer-profile-switch-ui {
  border-color: #111;
  background: #111;
}

.aer-profile-switch input[type="checkbox"]:checked + .aer-profile-switch-ui::after {
  transform: translateX(20px);
}

.aer-profile-switch input[type="checkbox"]:focus-visible + .aer-profile-switch-ui {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.aer-profile-switch--large {
  gap: 12px;
}

.aer-profile-switch--large .aer-profile-switch-ui {
  width: 64px;
  height: 34px;
}

.aer-profile-switch--large .aer-profile-switch-ui::after {
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
}

.aer-profile-switch--large input[type="checkbox"]:checked + .aer-profile-switch-ui::after {
  transform: translateX(30px);
}

.aer-profile-switch-text {
  min-width: 50px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.72;
}

.aer-profile-switch--large .aer-profile-switch-text {
  min-width: 62px;
  font-size: 14px;
}

.aer-profile-hint {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.68;
}

.aer-profile-button {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .aer-profile-master-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aer-profile-master-control {
    justify-content: flex-start;
  }

  .aer-profile-field--inline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aer-profile-field-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .aer-profile-switch {
    justify-content: flex-start;
  }
}

/* v1.1.7: RRSS con iconos SVG reales */
.aer-owner-link-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.aer-owner-link-icon {
  font-size: 0;
}
