/**
 * Hello Plataforma · My Account + Legal Styles
 *
 * Pantalla /mi-cuenta/ del fan + pantalla /avisos-legales/
 */


/* ============================================================
   ACCOUNT WRAPPER
   ============================================================ */

.hp-account-wrapper,
.hp-legal-wrapper {
  background: var(--hp-bg-secondary);
  min-height: 100vh;
}

.hp-account,
.hp-legal {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}


/* ============================================================
   HERO (avatar + nombre)
   ============================================================ */

.hp-account-hero {
  text-align: center;
  padding: 12px 0 24px;
}

.hp-account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--hp-gradient-purple-button);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #FFFFFF;
  font-family: var(--hp-font-base);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px -4px rgba(105, 73, 158, 0.40);
}

.hp-account-name {
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.hp-account-email {
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-tertiary);
  margin: 4px 0 0;
}


/* ============================================================
   WALLET SHORTCUT CARD
   ============================================================ */

.hp-account-wallet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hp-gradient-dark-card);
  color: #FFFFFF;
  text-decoration: none !important;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px -6px rgba(15, 14, 22, 0.30);
  transition: transform var(--hp-duration-normal) var(--hp-ease);
}

.hp-account-wallet-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 135, 208, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hp-account-wallet-card:hover {
  transform: translateY(-2px);
}

.hp-account-wallet-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.25) 0%, rgba(168, 135, 208, 0.12) 100%);
  border: 0.5px solid rgba(212, 191, 232, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.hp-account-wallet-icon i {
  font-size: 22px;
  color: #FFFFFF;
}

.hp-account-wallet-content {
  flex: 1;
  position: relative;
}

.hp-account-wallet-label {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: rgba(212, 191, 232, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin: 0;
}

.hp-account-wallet-amount {
  font-family: var(--hp-font-base);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 2px 0 0;
  letter-spacing: -0.5px;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-account-wallet-chevron {
  font-size: 22px;
  color: rgba(212, 191, 232, 0.65);
  position: relative;
}


/* ============================================================
   SECTION (form cards)
   ============================================================ */

.hp-account-section {
  margin-bottom: 24px;
}

.hp-account-card {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 12px -2px rgba(105, 73, 158, 0.04);
  margin-top: 12px;
}


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */

.hp-pw-input-wrap {
  position: relative;
}

.hp-pw-input-wrap .hp-input {
  padding-right: 44px;
}

.hp-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-text-tertiary);
  padding: 0;
  transition: color var(--hp-duration-normal) var(--hp-ease);
}

.hp-pw-toggle:hover {
  color: var(--hp-purple-deep);
}

.hp-pw-toggle i {
  font-size: 18px;
}


/* ============================================================
   HISTORY TABS
   ============================================================ */

.hp-history-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hp-history-tabs::-webkit-scrollbar {
  display: none;
}

.hp-history-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-subtle);
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--hp-font-base);
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text-secondary);
  transition: all var(--hp-duration-normal) var(--hp-ease);
  white-space: nowrap;
}

.hp-history-tab:hover {
  border-color: var(--hp-purple);
  color: var(--hp-purple-deep);
}

.hp-history-tab.is-active {
  background: var(--hp-gradient-purple-button);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 2px 8px -2px rgba(149, 117, 205, 0.40);
}


/* ============================================================
   HISTORY PANE (lista de items)
   ============================================================ */

.hp-history-content {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 16px;
  overflow: hidden;
}

.hp-history-pane {
  display: none;
}

.hp-history-pane.is-active {
  display: block;
}

.hp-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--hp-border-subtle);
}

.hp-history-item:last-child {
  border-bottom: none;
}

.hp-history-item-info {
  flex: 1;
  min-width: 0;
}

.hp-history-item-label {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-primary);
  margin: 0;
  line-height: 1.3;
}

.hp-history-item-date {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  margin: 2px 0 0;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-history-item-amount {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  flex-shrink: 0;
}


/* ============================================================
   HISTORY EMPTY STATE
   ============================================================ */

.hp-history-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--hp-text-tertiary);
}

.hp-history-empty i {
  font-size: 32px;
  display: block;
  margin: 0 auto 8px;
  opacity: 0.6;
}

.hp-history-empty p {
  font-family: var(--hp-font-base);
  font-size: 13px;
  margin: 0;
}


/* ============================================================
   LEGAL CARD (destacada en mi-cuenta)
   ============================================================ */

.hp-legal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.18) 0%, rgba(168, 135, 208, 0.08) 100%);
  border: 0.5px solid rgba(149, 117, 205, 0.30);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  text-decoration: none !important;
  transition: transform var(--hp-duration-normal) var(--hp-ease),
              box-shadow var(--hp-duration-normal) var(--hp-ease);
}

.hp-legal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(105, 73, 158, 0.15);
}

.hp-legal-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9575CD 0%, #69499E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hp-legal-card-icon i {
  font-size: 24px;
  color: #FFFFFF;
}

.hp-legal-card-content {
  flex: 1;
  min-width: 0;
}

.hp-legal-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.hp-legal-card-title {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.hp-legal-card-badge {
  font-family: var(--hp-font-base);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #D97757 0%, #B85B40 100%);
  padding: 2px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  line-height: 1;
}

.hp-legal-card-sub {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.hp-legal-card-chevron {
  font-size: 20px;
  color: var(--hp-purple-deep);
  flex-shrink: 0;
}


/* ============================================================
   SUPPORT CARD
   ============================================================ */

.hp-account-support {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none !important;
  margin-top: 12px;
  transition: transform var(--hp-duration-normal) var(--hp-ease),
              border-color var(--hp-duration-normal) var(--hp-ease);
}

.hp-account-support:hover {
  transform: translateY(-2px);
  border-color: var(--hp-purple);
}

.hp-account-support-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--hp-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-account-support-icon i {
  font-size: 20px;
  color: var(--hp-purple-deep);
}

.hp-account-support-content {
  flex: 1;
  min-width: 0;
}

.hp-account-support-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
}

.hp-account-support-email {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  margin: 2px 0 0;
  word-break: break-all;
}

.hp-account-support-chevron {
  font-size: 16px;
  color: var(--hp-text-tertiary);
}


/* ============================================================
   LOGOUT BUTTON
   ============================================================ */

.hp-account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-top: 32px;
  background: transparent;
  border: 0.5px solid var(--hp-border-subtle);
  border-radius: 12px;
  text-decoration: none !important;
  color: #C04545;
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 600;
  transition: background-color var(--hp-duration-normal) var(--hp-ease),
              border-color var(--hp-duration-normal) var(--hp-ease);
}

.hp-account-logout:hover {
  background: rgba(192, 69, 69, 0.05);
  border-color: rgba(192, 69, 69, 0.30);
}

.hp-account-logout i {
  font-size: 18px;
}


/* ============================================================
   ============================================================
   LEGAL SCREEN
   ============================================================
   ============================================================ */


/* ============================================================
   HERO LEGAL
   ============================================================ */

.hp-legal-hero {
  text-align: center;
  padding: 16px 0 32px;
}

.hp-legal-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #9575CD 0%, #69499E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 32px -4px rgba(105, 73, 158, 0.40);
}

.hp-legal-hero-icon i {
  font-size: 36px;
  color: #FFFFFF;
}

.hp-legal-hero-title {
  font-family: var(--hp-font-base);
  font-size: 26px;
  font-weight: 800;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.hp-legal-hero-sub {
  font-family: var(--hp-font-base);
  font-size: 14px;
  color: var(--hp-text-secondary);
  margin: 10px auto 0;
  line-height: 1.5;
  max-width: 320px;
}


/* ============================================================
   LEGAL SECTION
   ============================================================ */

.hp-legal-section {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.hp-legal-section--alert {
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.06) 0%, rgba(217, 119, 87, 0.02) 100%);
  border-color: rgba(217, 119, 87, 0.25);
}

.hp-legal-section-title {
  font-family: var(--hp-font-base);
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.hp-legal-section-title i {
  font-size: 20px;
  color: var(--hp-purple-deep);
  flex-shrink: 0;
}

.hp-legal-section--alert .hp-legal-section-title i {
  color: #D97757;
}


/* ============================================================
   LEGAL TEXT
   ============================================================ */

.hp-legal-p {
  font-family: var(--hp-font-base);
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-text-secondary);
  margin: 0 0 12px;
}

.hp-legal-p:last-child {
  margin-bottom: 0;
}

.hp-legal-p strong {
  color: var(--hp-text-primary);
  font-weight: 700;
}

.hp-legal-emphasis {
  background: rgba(149, 117, 205, 0.08);
  border-left: 3px solid var(--hp-purple-deep);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  color: var(--hp-text-primary);
}


/* ============================================================
   LEGAL LIST
   ============================================================ */

.hp-legal-list {
  margin: 0 0 12px;
  padding-left: 18px;
  list-style: none;
}

.hp-legal-list li {
  font-family: var(--hp-font-base);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hp-text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 4px;
}

.hp-legal-list li::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hp-purple-deep);
}

.hp-legal-section--alert .hp-legal-list li::before {
  background: #D97757;
}

.hp-legal-list li strong {
  color: var(--hp-text-primary);
  font-weight: 700;
}


/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.hp-legal-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 0.5px solid var(--hp-border-subtle);
  text-align: center;
}

.hp-legal-footer p {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-tertiary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.hp-legal-footer-note a {
  color: var(--hp-purple-deep);
  font-weight: 600;
  text-decoration: none;
}

.hp-legal-footer-note a:hover {
  text-decoration: underline;
}


/* ============================================================
   READ-ONLY FIELD (celular bloqueado)
   ============================================================ */

.hp-acc-readonly-field {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.12) 0%, rgba(168, 135, 208, 0.04) 100%);
  border: 1.5px solid rgba(149, 117, 205, 0.20);
  border-radius: 12px;
}

.hp-acc-readonly-value {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text-primary);
  letter-spacing: 0.5px;
}

.hp-acc-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--hp-purple-deep);
  background: rgba(149, 117, 205, 0.15);
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.hp-acc-readonly-badge i {
  font-size: 11px;
}

.hp-form-hint a {
  color: var(--hp-purple-deep);
  font-weight: 600;
  text-decoration: none;
}

.hp-form-hint a:hover {
  text-decoration: underline;
}