/* ==========================================================================
   PERFILES (/perfiles.html) - Full-bleed derecho de identidad latino.gg
   ========================================================================== */
.profile-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 46% 60% at 76% 52%, rgba(223, 202, 159, 0.075), transparent 64%),
    radial-gradient(ellipse 52% 62% at 74% 52%, rgba(201, 189, 223, 0.08), transparent 70%),
    #070709;
  padding: 36px max(48px, calc((100vw - var(--container)) / 2)) 72px;
  display: flex;
  flex-direction: column;
}

.profile-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(213, 186, 255, 0.7) 1px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1.5px);
  background-size: 96px 96px, 152px 152px;
  background-position: 14px 20px, 52px 84px;
  opacity: 0.08;
}

.profile-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(46px, 6.5vh, 84px);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.profile-brand em {
  font-style: normal;
  color: var(--lav);
  font-weight: 600;
}

.back-home-link {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(13, 13, 17, 0.75);
  backdrop-filter: blur(10px);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.back-home-link:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.profile-layout {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.profile-form-col {
  position: relative;
  z-index: 4;
  width: min(500px, 100%);
}

.profile-form-col h1 {
  font-size: clamp(54px, 4.9vw, 82px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.058em;
  margin: 0 0 26px;
  color: #fff;
}

.profile-form-col h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, var(--lav-bright) 48%, var(--imperial) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-intro {
  font-size: 16px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 32px;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.name-field {
  position: relative;
  height: 62px;
  border: 1px solid #35303f;
  border-radius: 13px;
  background: #121116;
  display: flex;
  align-items: center;
  padding: 0 48px 0 18px;
  gap: 2px;
  font-size: 17.5px;
  color: #9e95aa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.name-field:focus-within {
  border-color: var(--lav);
}

.name-field input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  width: 100%;
  min-width: 0;
}

.name-field input::placeholder {
  color: #6a6375;
}

.name-field.checking::after,
.name-field.available::after,
.name-field.unavailable::after {
  position: absolute;
  right: 18px;
  font-weight: 800;
  font-size: 20px;
}

.name-field.checking::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #8f879b;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.name-field.available {
  border-color: var(--ok);
  box-shadow: 0 0 0 3px rgba(43, 212, 143, 0.14);
}

.name-field.available::after {
  content: "✓";
  color: var(--ok);
}

.name-field.unavailable {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.14);
}

.name-field.unavailable::after {
  content: "×";
  color: var(--err);
}

.name-rule {
  display: block;
  margin: 11px 0 20px;
  font-size: 12px;
  color: var(--muted-2);
}

.name-rule.available {
  color: var(--ok);
}

.name-rule.unavailable {
  color: #ff8e99;
}

.name-rule a {
  color: var(--lav-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-terms {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.btn-create-profile {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  background: linear-gradient(135deg, #faf8fd 0%, #dcd0ef 55%, #e3cc9d 100%);
  color: #100e16;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-create-profile:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(223, 202, 159, 0.18);
}

.profile-benefits {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 18px 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.profile-benefits span b {
  color: var(--lav);
  margin-right: 4px;
}

.profile-import-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.profile-import-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.055);
}

.profile-signin {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 24px;
}

.profile-signin button {
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.profile-feedback {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201, 189, 223, 0.28);
  background: rgba(201, 189, 223, 0.07);
  font-size: 13px;
  line-height: 1.55;
  color: var(--lav-bright);
  display: none;
}

.profile-feedback.visible {
  display: block;
  animation: fadeSlide 0.24s ease-out;
}

/* Full-bleed right artwork for perfiles page */
.profile-art-col {
  position: absolute;
  top: -110px;
  right: calc(-1 * max(48px, calc((100vw - var(--container)) / 2)));
  bottom: -72px;
  width: 66vw;
  max-width: 1260px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-art-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  mix-blend-mode: lighten;
  filter: brightness(0.88) contrast(1.28);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 5%, rgba(0, 0, 0, 0.45) 22%, #000 42%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, transparent 4%, #000 16%, #000 86%, transparent 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 5%, rgba(0, 0, 0, 0.45) 22%, #000 42%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, transparent 4%, #000 16%, #000 86%, transparent 97%, transparent 100%);
  mask-composite: intersect;
}

.bottom-tag-wrap {
  position: absolute;
  right: 22%;
  bottom: 9%;
  text-align: center;
  transform: rotate(-7deg);
  z-index: 3;
}

.bottom-tag {
  padding: 14px 24px;
  border-radius: 99px;
  border: 1px solid var(--imperial-border);
  background: rgba(16, 14, 21, 0.92);
  backdrop-filter: blur(12px);
  color: var(--imperial);
  font: 500 15px var(--font-mono);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.bottom-tag-sub {
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ==========================================================================
   TIENDA & TIENDA-PERFILES PAGES
   ========================================================================== */
.store-page-hero {
  position: relative;
  margin-top: 122px;
  margin-bottom: 30px;
  padding: clamp(36px, 4.5vw, 58px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(ellipse 46% 65% at 78% 50%, rgba(223, 202, 159, 0.085), transparent 68%),
    linear-gradient(135deg, #111017 0%, #09080c 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
}

.store-page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(223, 202, 159, 0.42) 50%, transparent 100%);
}

.store-hero-copy {
  position: relative;
  z-index: 2;
}

.store-hero-art {
  position: relative;
  height: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.store-hero-art img {
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: min(115%, 520px);
  max-height: 360px;
  object-fit: cover;
  mix-blend-mode: lighten;
  filter: brightness(0.9) contrast(1.24) saturate(1.05);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.28) 16%, #000 32%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 14%, #000 28%, #000 78%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.28) 16%, #000 32%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 14%, #000 28%, #000 78%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
  mask-composite: intersect;
}

.store-page-hero h1 {
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

.store-page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, var(--lav-bright) 48%, var(--imperial) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-page-hero p.lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.66;
  color: var(--muted);
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.store-tabs a {
  padding: 11px 17px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.store-tabs a:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.store-tabs a.selected {
  background: #f2eef8;
  color: #0b0a0f;
  border-color: #f2eef8;
}

.store-notice {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 68px;
}

.rank-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
  border-color: rgba(201, 189, 223, 0.34);
  transform: translateY(-2px);
}

.rank-card.featured {
  border-color: rgba(201, 189, 223, 0.45);
  background: linear-gradient(160deg, #16141d 0%, #0f0e14 100%);
}

.rank-card:last-child {
  border-color: var(--imperial-border);
  background: linear-gradient(160deg, #181512 0%, #0d0c10 100%);
}

.rank-card:last-child .rank-price {
  color: var(--imperial);
}

.rank-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  padding: 5px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, #faf8fd 0%, #e3cc9d 100%);
  color: #0b0a0f;
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.08em;
}

.rank-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
}

.rank-desc {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
  margin-bottom: 20px;
}

.rank-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.rank-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.rank-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-perks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.rank-perks li::before {
  content: "✓";
  color: var(--lav);
  font-weight: 700;
}

.rank-btn {
  margin-top: auto;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rank-card.featured .rank-btn {
  background: #f2eef8;
  color: #0b0a0f;
  border-color: #f2eef8;
}

.rank-btn:hover {
  background: #f2eef8;
  color: #0b0a0f;
}

.profile-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 68px;
}

.profile-product-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(155deg, #131118 0%, #0c0b0f 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.profile-product-card h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 16px 0 10px;
}

.profile-product-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 460px;
}

.short-name-box {
  margin: 16px 0 12px;
  border: 1px solid rgba(201, 189, 223, 0.35);
  border-radius: 11px;
  padding: 13px 16px;
  background: #0a090d;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15.5px;
  color: var(--muted);
}

.short-name-box input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  width: 100px;
}

.short-avail {
  font-size: 12.5px;
  color: var(--lav);
  margin: 0 0 16px;
}

.product-buy-btn {
  align-self: flex-start;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #f2eef8;
  color: #0b0a0f;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.product-buy-btn:disabled {
  background: #272330;
  color: #716a7d;
  cursor: not-allowed;
}

.product-card-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
}

.product-card-foot span:last-child {
  color: var(--lav);
}

@media (max-width: 1024px) {
  .profile-page {
    padding: 24px 24px 60px;
  }

  .profile-layout {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .profile-art-col {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 380px;
    margin-top: 32px;
  }

  .ranks-grid,
  .profile-products-grid,
  .store-page-hero {
    grid-template-columns: 1fr;
  }

  .store-hero-art {
    min-height: 210px;
  }

  .store-hero-art img {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
  }

  .bottom-tag-wrap {
    right: 12%;
    bottom: 8%;
  }
}
