/* Auth pages */
.auth-page { min-height: calc(100vh - 5rem); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem 4rem; background: linear-gradient(165deg, var(--brand-soft) 0%, #fff 40%, #fafafa 100%); }
.auth-shell { width: 100%; max-width: 440px; }
.auth-shell--wide { max-width: 480px; }
.auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1.5rem; padding: 2rem 1.75rem; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.auth-card__brand-link { display: block; text-align: center; margin-bottom: 0.75rem; text-decoration: none; }
.auth-card__brand { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); margin-bottom: 0.75rem; }
.auth-card__title { font-size: 1.625rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.auth-card__sub { margin-top: 0.5rem; font-size: 0.9375rem; color: #6b7280; line-height: 1.5; }
.auth-card__hint { margin-top: 0.65rem; font-size: 0.8125rem; color: #9ca3af; line-height: 1.45; }
.auth-form { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.125rem; }
.auth-field { display: block; }
.auth-field > span { display: block; font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.auth-field small { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: #9ca3af; }
.auth-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 0.75rem 1rem; font-size: 0.9375rem; transition: border-color 0.15s, box-shadow 0.15s; background: #fff; }
.auth-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,163,93,0.12); }
.auth-input::placeholder { color: #9ca3af; }
.auth-error { margin-top: 0.35rem; font-size: 0.8125rem; color: #dc2626; }
.auth-form-error { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--brand-soft); border: 1px solid var(--brand-muted); color: #b91c1c; font-size: 0.875rem; }
.auth-method { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.25rem; }
.auth-method label { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.625rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; color: #6b7280; cursor: pointer; transition: all 0.15s; }
.auth-method input { position: absolute; opacity: 0; pointer-events: none; }
.auth-method label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-muted); color: var(--brand); }
.auth-method-panel { display: none; }
.auth-method-panel.is-visible { display: block; }
.auth-legal { display: flex; flex-direction: column; gap: 0.625rem; padding: 1rem; border-radius: 0.875rem; background: #f9fafb; border: 1px solid #e5e7eb; }
.auth-legal label { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8125rem; color: #4b5563; cursor: pointer; line-height: 1.45; }
.auth-check { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--brand); }
.auth-legal a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.auth-btn { width: 100%; border: none; border-radius: 9999px; padding: 0.875rem 1.25rem; font-size: 0.9375rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 8px 24px rgba(62,163,93,0.25); }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(62,163,93,0.3); }
.auth-btn--ghost { background: #fff; color: #374151; border: 1px solid #e5e7eb; box-shadow: none; }
.auth-btn--ghost:hover { background: #f9fafb; transform: none; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: #6b7280; }
.auth-footer a { color: var(--brand); font-weight: 600; }
.auth-otp-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: var(--brand-soft); font-size: 1.5rem; }
.auth-otp-input { text-align: center; font-size: 1.5rem; letter-spacing: 0.35em; font-weight: 700; }
.auth-resend { margin-top: 1rem; text-align: center; font-size: 0.8125rem; color: #6b7280; }
.auth-resend button { background: none; border: none; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth-notice { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 0.8125rem; color: #1e40af; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; color: #9ca3af; font-size: 0.75rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

/* Cuenta — perfil y páginas de usuario */
.account-page {
  min-height: calc(100vh - 5rem);
  padding: 2rem 1rem 4rem;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 280px);
}

.account-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.account-breadcrumb {
  margin-bottom: 1rem;
}

.account-breadcrumb a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.account-breadcrumb a:hover {
  text-decoration: underline;
}

.account-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .account-card {
    padding: 2rem 2rem 2.25rem;
  }
}

.account-card__title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.account-card__sub {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
}

.account-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.account-form__grid {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 540px) {
  .account-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.account-form__actions .auth-btn {
  width: auto;
  min-width: 10rem;
  flex: 1 1 auto;
}

.profile-avatar-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem;
  border-radius: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.profile-avatar-preview {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--brand-soft);
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-preview__initials {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.profile-avatar-fields {
  flex: 1 1 12rem;
  min-width: 0;
}

.profile-avatar-input {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  color: #374151;
}

.profile-avatar-input::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid var(--brand-muted);
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #fff;
  cursor: pointer;
}

.profile-avatar-input::file-selector-button:hover {
  background: var(--brand-soft);
}

/* Dashboard — pestaña Anfitrión */
.account-host-panel {
  max-width: 720px;
}

.account-host-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.account-host-banner__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #92400e;
}

.account-host-banner__text {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #b45309;
  line-height: 1.5;
}

.account-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.account-host-actions .auth-btn {
  width: auto;
  min-width: 10rem;
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
}

.account-host-preview {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.account-host-preview__label {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.account-host-preview__more {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.account-host-preview__more a {
  color: var(--brand-dark);
  text-decoration: none;
}

.account-host-preview__more a:hover {
  text-decoration: underline;
}

.account-host-empty {
  margin-top: 1.5rem;
}
