﻿/* crear-perfil.html — hub Modelo 3 compacto (cabe en viewport) */

body[data-seo-page="crear-perfil"] {
  background: #050506;
  color: var(--jjp-text, #f3ebe4);
  min-height: 100vh;
}

.perfil-hub-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  background: #050506;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1.25rem;
  box-sizing: border-box;
}

.perfil-hub-page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050506;
}

.perfil-hub-page__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(calc(100% - 2rem), 1100px);
  height: 38vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(201, 162, 39, 0.08) 0%,
    rgba(201, 162, 39, 0.03) 38%,
    transparent 72%
  );
  filter: blur(8px);
}

.perfil-hub-page__dust {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.07), transparent 22%),
    radial-gradient(circle at 88% 22%, rgba(201, 162, 39, 0.06), transparent 24%),
    radial-gradient(circle at 70% 78%, rgba(201, 162, 39, 0.04), transparent 28%);
}

.perfil-hub-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--header-height) + 0.65rem) clamp(1rem, 3vw, 1.5rem) 0.85rem;
}

.perfil-hub-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.perfil-hub-ornament__line {
  width: clamp(2.5rem, 10vw, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55));
}

.perfil-hub-ornament__line:last-child {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.55), transparent);
}

.perfil-hub-ornament__gem {
  width: 6px;
  height: 6px;
  background: var(--color-gold, #c9a227);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
  flex-shrink: 0;
}

.perfil-hub-title {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  font-family: 'Oswald', Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
}

.perfil-hub-title__main {
  color: #f5f5f5;
}

.perfil-hub-title__accent {
  color: var(--color-gold, #c9a227);
  text-shadow: 0 0 22px rgba(201, 162, 39, 0.2);
}

.perfil-hub-subtitle {
  margin: 0.45rem auto 0;
  width: max-content;
  max-width: min(calc(100% - 2rem), 52rem);
  padding-inline: 1rem;
  box-sizing: border-box;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  white-space: nowrap;
}

/* Tablet estrecho / móvil: puede partir, pero con ritmo limpio */
@media (max-width: 900px) {
  .perfil-hub-subtitle {
    white-space: normal;
    width: auto;
    max-width: min(34rem, calc(100% - 2rem));
    font-size: clamp(0.74rem, 2.4vw, 0.86rem);
    line-height: 1.4;
    text-wrap: balance;
  }
}

.perfil-hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, 17rem);
  max-width: calc(4 * 17rem + 3 * 1rem);
  justify-content: center;
  align-items: start;
  gap: clamp(0.65rem, 1.2vw, 1rem);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.perfil-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  flex: 0 0 17rem;
  width: 17rem;
  height: 17rem;
  min-width: 17rem;
  min-height: 17rem;
  max-width: 17rem;
  max-height: 17rem;
  padding: 0.95rem 0.75rem 0.85rem;
  background:
    radial-gradient(ellipse 75% 40% at 50% 0%, rgba(201, 162, 39, 0.10), transparent 62%),
    linear-gradient(175deg, rgba(74, 24, 20, 0.96) 0%, rgba(42, 18, 16, 0.98) 55%, rgba(30, 12, 10, 1) 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.3s ease;
}

.perfil-hub-card__glow {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 197, 71, 0.95) 22%,
    rgba(201, 162, 39, 1) 50%,
    rgba(232, 197, 71, 0.95) 78%,
    transparent
  );
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
  pointer-events: none;
}

.perfil-hub-card__art {
  width: min(100%, 6.5rem);
  height: 6.5rem;
  margin: 0.15rem 0 0.55rem;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.perfil-hub-card__title {
  margin: 0 0 0.35rem;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.perfil-hub-card__pitch {
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(243, 235, 228, 0.62);
  max-width: none;
  text-align: center;
  white-space: nowrap;
}

.perfil-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(201, 162, 39, 0.1);
}

.perfil-hub-card:hover .perfil-hub-card__art {
  transform: scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(201, 162, 39, 0.16));
}

.perfil-hub-card:hover .perfil-hub-card__pitch {
  color: rgba(255, 255, 255, 0.66);
}

.perfil-hub-card:hover .perfil-hub-card:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.7);
  outline-offset: 3px;
}

.perfil-hub-footer {
  position: relative;
  z-index: 1;
  margin: 0.95rem auto 0;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
}

.perfil-hub-footer a {
  color: var(--color-gold, #c9a227);
  text-decoration: none;
}

.perfil-hub-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .perfil-hub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }
}

@media (max-width: 768px) {
  .perfil-hub-page {
    justify-content: flex-start;
  }

  .perfil-hub-grid {
    grid-template-columns: repeat(2, 17rem);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .perfil-hub-title {
    white-space: normal;
    flex-wrap: wrap;
    font-size: clamp(1.4rem, 7.5vw, 1.85rem);
  }

  .perfil-hub-grid {
    grid-template-columns: min(17rem, 88vw);
    max-width: none;
  }

  .perfil-hub-card {
    flex: 0 0 auto;
    width: min(17rem, 88vw);
    height: min(17rem, 88vw);
    min-width: 0;
    min-height: 0;
    max-width: min(17rem, 88vw);
    max-height: min(17rem, 88vw);
  }

  .perfil-hub-card__art {
    width: 6rem;
    height: 6rem;
  }

  .perfil-hub-card__pitch {
    max-width: none;
  }
}

/* Volver — mismo criterio fino que Acceso (marco + panel vino) */
.perfil-hub-back {
  position: absolute;
  z-index: 2;
  top: clamp(0.85rem, 2vh, 1.35rem);
  left: clamp(1rem, 2.5vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  background: rgba(30, 12, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--jjp-text-muted, rgba(243, 235, 228, 0.72));
  text-decoration: none;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.perfil-hub-back__arrow {
  color: var(--jjp-oro, #c9a227);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.perfil-hub-back:hover {
  color: var(--jjp-text, #f3ebe4);
  border-color: rgba(201, 162, 39, 0.48);
  background: rgba(201, 162, 39, 0.09);
  box-shadow:
    0 0 22px rgba(201, 162, 39, 0.1),
    0 4px 18px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.perfil-hub-back:hover .perfil-hub-back__arrow {
  color: var(--jjp-oro-light, #e8c547);
  transform: translateX(-2px);
}

@media (max-width: 768px) {
  .perfil-hub-back {
    top: 0.65rem;
    left: 0.75rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }
}

/* Contenido interno: +1rem arriba, mismo tamaño y centrado horizontal */
.perfil-hub-card__art,
.perfil-hub-card__title,
.perfil-hub-card__pitch {
  position: relative;
  top: -1rem;
}

.perfil-hub-card:hover .perfil-hub-card__art {
  transform: scale(1.04);
}


/* 4 tarjetas hub — ritmo móvil app (no PC) */
@media (max-width: 640px) {
  .perfil-hub-page {
    padding-top: 3.1rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .perfil-hub-hero {
    margin-bottom: 0.85rem;
  }

  .perfil-hub-subtitle {
    max-width: min(22rem, calc(100% - 2rem));
    margin-inline: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: normal;
    text-wrap: balance;
  }

  .perfil-hub-grid {
    grid-template-columns: min(15.5rem, 86vw);
    justify-content: center;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
  }

  .perfil-hub-card {
    width: min(15.5rem, 86vw);
    height: min(15.5rem, 86vw);
    max-width: min(15.5rem, 86vw);
    max-height: min(15.5rem, 86vw);
    border-radius: 1.1rem;
  }

  .perfil-hub-card__title {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .perfil-hub-card__pitch {
    font-size: 0.78rem;
  }
}
