/* SIXMA dentro del portfolio: usa los colores y las letras de styles.css */

/* Bloque destacado de la portada del portfolio */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%);
  overflow: hidden;
}
.feature h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 300;
  margin: 10px 0 18px;
}
.feature p {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 18px;
}
.feature .ticks {
  margin-bottom: 26px;
}
.feature__card {
  display: grid;
  place-items: center;
}
.float-card {
  width: min(460px, 100%);
  border-radius: 5%;
  transform: rotate(-4deg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: sx-float 6s ease-in-out infinite;
}
@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Portada de SIXMA */
.sx-hero {
  padding-block: 96px 24px;
}
.sx-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.sx-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  margin: 14px 0 22px;
}
.sx-hero h1 em {
  color: var(--jade);
  font-style: italic;
}
.sx-lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 44ch;
  margin-bottom: 30px;
}
.sx-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 36px;
  perspective: 1100px;
}
.sx-halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 184, 230, 0.32), transparent 66%);
  filter: blur(10px);
}
.sx-float {
  position: relative;
  animation: sx-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.sx-card {
  width: min(520px, 92vw);
  border-radius: 5%;
  transform: rotate(-4deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.15s ease-out;
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.sx-stage {
  grid-auto-flow: row;
}
.sx-stage__btns {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
/* Presentación de Juan al comienzo de la página */
.sx-me {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 8px 20px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(15, 22, 34, 0.7);
  transition: border-color 0.2s;
}
.sx-me:hover {
  border-color: var(--jade);
}
.sx-me__photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
}
.sx-me__photo img {
  width: 240%;
  max-width: none;
  margin: -4% 0 0 -70%;
}
.sx-me__text {
  display: grid;
  line-height: 1.25;
}
.sx-me__text b {
  font-weight: 500;
}
.sx-me__text small {
  color: var(--muted);
  font-size: 13px;
}
@keyframes sx-float {
  50% {
    transform: translateY(-10px);
  }
}
@media (min-width: 960px) {
  .sx-hero__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

/* Lo que ganás */
.sx-gains {
  display: grid;
  gap: 14px;
}
.sx-gain {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}
.sx-gain__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--jade);
}
.sx-gain h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  margin: 12px 0 10px;
  line-height: 1.1;
}
.sx-gain p {
  color: var(--muted);
  max-width: 46ch;
}
@media (min-width: 720px) {
  .sx-gains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sx-gain--wide {
    grid-column: 1 / -1;
  }
}

/* Pasos */
.sx-steps {
  display: grid;
  gap: 14px;
}
.sx-steps li {
  display: grid;
  gap: 4px;
  padding: 24px 26px;
  border-left: 2px solid var(--jade);
  background: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sx-steps span {
  font-family: var(--mono);
  color: var(--jade);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.sx-steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}
.sx-steps p {
  color: var(--muted);
}
@media (min-width: 720px) {
  .sx-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Carrusel */
.sx-car__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.sx-car__track::-webkit-scrollbar {
  display: none;
}
.sx-slide {
  flex: 0 0 min(940px, 88%);
  scroll-snap-align: center;
  margin: 0;
}
.sx-slide__frame {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050a13;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.sx-slide__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.sx-slide__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.sx-slide img,
.sx-slide video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050a13;
}
.sx-slide figcaption {
  display: grid;
  gap: 2px;
  padding: 14px 4px 0;
}
.sx-slide figcaption b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
}
.sx-slide figcaption span {
  color: var(--muted);
  font-size: 15px;
}
.sx-car--videos .sx-slide {
  flex-basis: min(420px, 82%);
}
.sx-car__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.sx-car__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.sx-car__btn:hover:not(:disabled) {
  background: var(--jade);
  color: var(--ink);
  border-color: var(--jade);
}
.sx-car__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.sx-car__count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  min-width: 64px;
  text-align: center;
}

/* Gimnasio */
.sx-gym {
  display: grid;
  gap: 44px;
  align-items: center;
}
.sx-gym h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 10px 0 18px;
  line-height: 1.04;
}
.sx-gym__text p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 52ch;
}
.sx-gym__text .ticks {
  margin-bottom: 22px;
}
.sx-rubros {
  font-family: var(--mono);
  font-size: 13px;
}
.sx-rubros b {
  color: var(--cream);
  font-weight: 500;
}
.sx-gym__media {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sx-gym figure {
  margin: 0;
}
.sx-gym figcaption {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 12px;
}
.sx-phone {
  width: min(250px, 44vw);
}
.sx-phone__screen {
  height: 470px;
  overflow: hidden;
  border-radius: 34px;
  border: 8px solid #1b2433;
  background: var(--ink);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--line-2);
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.sx-phone__screen img {
  width: 100%;
  height: auto;
}
.sx-share {
  width: min(290px, 48vw);
  margin-top: 40px;
}
.sx-share img {
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--line-2);
  transform: rotate(3deg);
}
@media (min-width: 960px) {
  .sx-gym {
    grid-template-columns: 1fr 1fr;
  }
}

/* Planes */
.sx-plans {
  display: grid;
  gap: 14px;
}
.sx-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.sx-plan--best {
  border-color: var(--jade);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.sx-plan__tag {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--jade);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sx-plan__tag--soft {
  background: var(--ink-3);
  color: var(--amber);
  border: 1px solid var(--amber);
}
.sx-plan h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
}
.sx-plan__price {
  font-family: var(--serif);
  font-size: 34px;
  margin-top: 4px;
  white-space: nowrap;
}
.sx-plan__sub {
  color: var(--jade);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.sx-plan ul {
  display: grid;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.sx-plan li {
  padding-left: 20px;
  position: relative;
}
.sx-plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--jade);
}
.sx-terms {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}
.sx-terms b {
  color: var(--cream);
  font-weight: 500;
}
@media (min-width: 720px) {
  .sx-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .sx-plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Preguntas y cierre */
.sx-faq {
  max-width: 820px;
}
.sx-faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.sx-faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.sx-faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 24px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.sx-faq summary::-webkit-details-marker {
  display: none;
}
.sx-faq summary::after {
  content: '+';
  color: var(--jade);
}
.sx-faq details[open] summary::after {
  content: '–';
}
.sx-faq p {
  color: var(--muted);
  padding-bottom: 18px;
  max-width: 60ch;
}
.sx-cta {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  text-align: center;
}
.sx-cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 12px;
}
.sx-cta p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 46ch;
}
.sx-cta .system__actions {
  justify-content: center;
}
.sx .brand img {
  border-radius: 6px;
}
.sx .footer__inner img {
  border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .sx-float,
  .float-card {
    animation: none;
  }
  .sx-card {
    transition: none;
  }
  .sx-car__track {
    scroll-behavior: auto;
  }
}
.sx-terms .btn {
  justify-self: start;
  margin-top: 6px;
}

/* Botones de la barra y formulario "Pedir una cuenta" */
.nav .btn--small {
  white-space: nowrap;
}
.nav__inner > .btn--ghost {
  margin-left: auto;
}
.nav__inner > .btn--ghost + .btn {
  margin-left: 8px;
}
@media (min-width: 720px) {
  .nav__inner > .btn--ghost {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .nav .brand__name {
    display: none;
  }
}
.acct {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--ink-2);
  color: var(--cream);
  overflow: auto;
}
.acct::backdrop {
  background: rgba(3, 7, 14, 0.72);
}
.acct h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin-bottom: 6px;
}
.acct__lead {
  color: var(--muted);
  margin-bottom: 18px;
}
.acct__x {
  position: absolute;
  top: 10px;
  right: 12px;
}
.acct__x button {
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: var(--muted);
}
.acct label {
  display: block;
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 500;
}
.acct input,
.acct select,
.acct textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
}
.acct input:focus,
.acct select:focus,
.acct textarea:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
}
.acct__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.acct__err {
  margin: 12px 0 0;
  color: var(--danger);
}
.acct__err a {
  color: var(--jade);
}
.acct form[data-acct] .btn {
  margin-top: 18px;
  width: 100%;
}
.acct [data-acct-done] .btn {
  width: 100%;
  margin-top: 6px;
}
