:root {
  --mt-black: #0a0a0a;
  --mt-black-pure: #000000;
  --mt-white: #ffffff;
  --mt-silver-100: #f7f7f8;
  --mt-silver-200: #ececee;
  --mt-silver-300: #d6d6da;
  --mt-silver-400: #b4b4ba;
  --mt-graphite: #5b5b62;
  --mt-graphite-dark: #2a2a2e;
  --mt-gradient-silver: linear-gradient(160deg, #fdfdfd 0%, #e4e4e7 45%, #bfbfc5 78%, #dedee2 100%);
  --mt-gradient-onyx: linear-gradient(160deg, #262629 0%, #0a0a0a 60%);
  --mt-accent: #b08d57;
  --mt-accent-soft: #f3eada;
  --mt-accent-dark: #8a6d3f;
  --mt-radius-sm: 6px;
  --mt-radius-md: 10px;
  --mt-radius-lg: 14px;
  --mt-radius-xl: 20px;
  --mt-radius-full: 999px;
  --mt-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --mt-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mt-space-2: 8px;
  --mt-space-3: 12px;
  --mt-space-4: 16px;
  --mt-space-5: 24px;
  --mt-space-6: 32px;
  --mt-shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --mt-shadow-md: 0 8px 24px rgba(10, 10, 10, 0.18);
  --mt-focus-ring-inverse: 0 0 0 3px rgba(255, 255, 255, 0.35);

  --bg: var(--mt-black);
  --text: var(--mt-white);
  --text-muted: var(--mt-silver-400);
  --text-faint: rgba(255, 255, 255, 0.45);
  --ink: var(--mt-black-pure);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --cta-gradient: var(--mt-gradient-silver);
  --profile-bg-image: none;
  --profile-bg-overlay: rgba(10, 10, 10, 0.84);
}

/* Foto de fondo: agregar background.jpg en apps/web/ y descomentar:
:root { --profile-bg-image: url("background.jpg"); }
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--mt-font-ui);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: var(--profile-bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(42, 42, 46, 0.65) 0%, transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, var(--profile-bg-overlay) 50%, rgba(10, 10, 10, 0.97) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: var(--mt-space-5) var(--mt-space-4) var(--mt-space-6);
}

/* ---- hero ---- */
.hero {
  text-align: center;
  margin-bottom: var(--mt-space-5);
}

.logo-shell {
  width: min(92vw, 280px);
  margin: 0 auto var(--mt-space-4);
  filter: drop-shadow(var(--mt-shadow-md));
}

.logo-shell .logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  margin: 0 auto var(--mt-space-3);
  max-width: 360px;
  font-family: var(--mt-font-display);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--mt-silver-200);
}

.badge-18 {
  display: inline-block;
  margin-bottom: var(--mt-space-4);
  padding: 4px 10px;
  border-radius: var(--mt-radius-full);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mt-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--mt-space-3);
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--mt-radius-full);
  border: 1px solid var(--hairline-strong);
  background: var(--mt-gradient-onyx);
  color: var(--mt-white);
  text-decoration: none;
  box-shadow: var(--mt-shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--mt-silver-300);
  box-shadow: var(--mt-shadow-md);
}

.social-icon-link:focus-visible {
  outline: none;
  box-shadow: var(--mt-focus-ring-inverse);
}

.social-icon-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.social-icon-link svg path[stroke="none"] {
  stroke: none;
  fill: currentColor;
}

/* ---- OnlyFans featured CTA ---- */
.of-feature {
  display: flex;
  align-items: center;
  gap: var(--mt-space-3);
  width: 100%;
  margin-top: var(--mt-space-4);
  padding: 12px var(--mt-space-4);
  border-radius: var(--mt-radius-lg);
  border: 1px solid rgba(176, 141, 87, 0.55);
  background:
    linear-gradient(135deg, rgba(243, 234, 218, 0.2) 0%, rgba(176, 141, 87, 0.1) 35%, rgba(10, 10, 10, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(176, 141, 87, 0.18) inset,
    0 12px 32px rgba(176, 141, 87, 0.14);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.of-feature:hover {
  transform: translateY(-2px);
  border-color: var(--mt-accent);
  box-shadow:
    0 0 0 1px rgba(176, 141, 87, 0.28) inset,
    0 16px 36px rgba(176, 141, 87, 0.22);
}

.of-feature:focus-visible {
  outline: none;
  box-shadow: var(--mt-focus-ring-inverse);
}

.of-feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--mt-radius-md);
  background: var(--mt-accent-soft);
  color: var(--mt-accent-dark);
  box-shadow: 0 2px 8px rgba(176, 141, 87, 0.25);
}

.of-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.of-feature-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.of-feature-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 2px 8px;
  border-radius: var(--mt-radius-full);
  background: var(--cta-gradient);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.of-feature-title {
  display: block;
  font-family: var(--mt-font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.of-feature-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

/* ---- sections ---- */
.section {
  margin-top: var(--mt-space-5);
}

.section-label {
  margin: 0 0 var(--mt-space-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mt-graphite);
  text-align: center;
}

.section-custom {
  margin-top: var(--mt-space-4);
}

.custom-card {
  display: flex;
  align-items: center;
  gap: var(--mt-space-3);
  padding: var(--mt-space-3) var(--mt-space-4);
  border-radius: var(--mt-radius-lg);
  border: 1px solid rgba(176, 141, 87, 0.35);
  background: linear-gradient(135deg, rgba(243, 234, 218, 0.12) 0%, rgba(10, 10, 10, 0.6) 100%);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-card:hover {
  transform: translateY(-1px);
  border-color: var(--mt-accent);
  box-shadow: 0 10px 28px rgba(176, 141, 87, 0.15);
}

.custom-card:focus-visible {
  outline: none;
  box-shadow: var(--mt-focus-ring-inverse);
}

.custom-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--mt-radius-md);
  background: var(--mt-accent-soft);
  color: var(--mt-accent-dark);
}

.custom-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.custom-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.custom-card-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.custom-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.custom-card-handle {
  color: var(--mt-accent);
  font-weight: 500;
}

/* ---- telegram cards ---- */
.telegram-stack {
  display: flex;
  flex-direction: column;
  gap: var(--mt-space-2);
}

.telegram-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mt-space-2);
}

.tg-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--mt-radius-md);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tg-card:focus-visible {
  outline: none;
  box-shadow: var(--mt-focus-ring-inverse);
}

.tg-card:hover {
  transform: translateY(-1px);
}

.tg-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--mt-radius-sm);
}

.tg-card-icon svg {
  width: 18px;
  height: 18px;
}

.tg-card-body {
  flex: 1;
  min-width: 0;
}

.tg-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.tg-card-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.tg-card-price {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tg-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tg-chip {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: var(--mt-radius-full);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Canal gratis — plata / grafito */
.tg-card--free {
  background: var(--mt-silver-100);
  border-color: var(--mt-silver-300);
  color: var(--ink);
}

.tg-card--free:hover {
  border-color: var(--mt-graphite);
  box-shadow: var(--mt-shadow-md);
}

.tg-card--free .tg-card-icon {
  background: var(--mt-white);
  color: var(--mt-graphite-dark);
  border: 1px solid var(--mt-silver-300);
}

.tg-card--free .tg-card-icon svg {
  fill: var(--mt-graphite-dark);
}

.tg-card--free .tg-card-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--mt-graphite);
}

.tg-card--free .tg-card-price {
  color: var(--mt-graphite-dark);
  font-size: 12px;
}

/* VIP — onyx + acento */
.tg-card--vip {
  background: var(--mt-gradient-onyx);
  border-color: var(--hairline-strong);
}

.tg-card--vip:hover {
  border-color: var(--mt-silver-400);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tg-card--vip .tg-card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mt-white);
  border: 1px solid var(--hairline-strong);
}

.tg-card--vip .tg-card-icon svg {
  fill: var(--mt-white);
}

.tg-card--vip.featured {
  border-color: rgba(176, 141, 87, 0.5);
  background: linear-gradient(160deg, rgba(38, 38, 41, 0.95) 0%, rgba(10, 10, 10, 0.98) 60%);
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.2) inset;
}

.tg-chip.savings {
  color: var(--mt-accent-dark);
  background: var(--mt-accent-soft);
}

.tg-chip.bonus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--hairline);
}

.tg-chip.popular {
  color: var(--ink);
  background: var(--cta-gradient);
}

.tg-card-per {
  margin-top: 3px;
  font-size: 9px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.profile-footer {
  margin-top: var(--mt-space-5);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
}

/* ---- Desktop: compacto, centrado, sin scroll ---- */
@media (min-width: 768px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .wrap {
    max-width: 460px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--mt-space-4) var(--mt-space-4) var(--mt-space-3);
  }

  .hero {
    margin-bottom: var(--mt-space-3);
  }

  .logo-shell {
    width: 260px;
    margin-bottom: var(--mt-space-3);
  }

  .hero-copy {
    font-size: 16px;
    margin-bottom: var(--mt-space-2);
  }

  .badge-18 {
    margin-bottom: var(--mt-space-3);
  }

  .of-feature {
    margin-top: var(--mt-space-3);
    padding: 10px 14px;
  }

  .of-feature-desc {
    display: none;
  }

  .section {
    margin-top: var(--mt-space-3);
  }

  .section-custom {
    margin-top: var(--mt-space-3);
  }

  .custom-card {
    padding: 10px 14px;
  }

  .tg-card--free .tg-card-desc,
  .tg-card-per {
    display: none;
  }

  .profile-footer {
    margin-top: var(--mt-space-3);
  }
}

@media (max-width: 767px) {
  body {
    min-height: 100dvh;
  }

  .logo-shell {
    width: min(88vw, 240px);
  }
}
