/* Landing medieval: parallax por capas, revelado al hacer scroll y estandartes */

body.landing {
  min-height: 100vh;
  overflow-x: hidden;
}

body.landing .account-chip,
body.landing .site-account-slot--floating {
  display: none;
}

.lp {
  position: relative;
  overflow: clip;
}

.lp .ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: -0.2em;
}

/* ---------- Revelado al scroll ---------- */

/* translate/scale (no transform) para no pisar el tilt ni el parallax */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease-out),
    translate 0.9s var(--ease-out),
    scale 0.9s var(--ease-out),
    transform 0.35s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s;
}

[data-reveal='up'] {
  translate: 0 36px;
}

[data-reveal='left'] {
  translate: -48px 0;
}

[data-reveal='right'] {
  translate: 48px 0;
}

[data-reveal='fade'] {
  scale: 0.92;
}

[data-reveal].is-in,
html:not(.js-reveal) [data-reveal] {
  opacity: 1;
  translate: none;
  scale: none;
}

/* ---------- Hero ---------- */

.lp-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin-top: -1px;
}

.lp-hero-layers {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lp-layer {
  position: absolute;
  left: 0;
  right: 0;
  will-change: transform;
}

.lp-layer-sky {
  inset: -6% 0 -10%;
}

.lp-layer-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
  transform: scale(1.06);
  animation: lp-breathe 22s ease-in-out infinite alternate;
}

.lp-layer-far {
  bottom: 6%;
  height: 34%;
  background: url('../assets/theme/ridge-far.svg') center bottom / 100% 100% no-repeat;
  opacity: 0.9;
}

.lp-layer-near {
  bottom: -2%;
  height: 26%;
  background: url('../assets/theme/ridge-near.svg') center bottom / 100% 100% no-repeat;
}

.lp-layer-mist {
  bottom: 4%;
  height: 40%;
  background: url('../assets/theme/mist.svg') 0 100% / 1600px 100% repeat-x;
  mix-blend-mode: screen;
  pointer-events: none;
}

.lp-mist-a {
  animation: lp-drift 70s linear infinite;
  opacity: 0.8;
}

.lp-mist-b {
  bottom: -4%;
  animation: lp-drift 48s linear infinite reverse;
  opacity: 0.55;
}

.lp-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lp-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(10, 7, 5, 0.55) 80%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.55) 0%, transparent 22%, transparent 62%, var(--ink) 100%);
}

.lp-hero-inner {
  width: min(960px, calc(100% - 2.5rem));
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(6rem, 14vh, 9rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.lp-crest {
  width: clamp(62px, 8vw, 84px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.lp-kicker,
.lp-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.lp-kicker {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.lp-title {
  margin: 0;
  display: grid;
  line-height: 0.95;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.75);
}

.lp-title-small {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.lp-title-big {
  font-family: var(--font-deco);
  font-weight: 900;
  font-size: clamp(3.1rem, 11vw, 7.5rem);
  line-height: 1.08;
  padding-top: 0.12em;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff1c8 0%, var(--gold-hi) 35%, var(--gold) 62%, #9a6c22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(60, 20, 10, 0.7)) drop-shadow(0 0 30px rgba(200, 50, 31, 0.35));
}

.lp-lead {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-story);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--bone);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.lp-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.lp-hero-facts {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.lp-hero-facts strong {
  color: var(--gold-hi);
  font-size: 1.05rem;
  margin-right: 0.25rem;
}

.lp-scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: 50%;
  translate: -50% 0;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(217, 180, 90, 0.7);
  border-radius: 14px;
}

.lp-scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-hi);
  animation: lp-cue 1.8s ease-in-out infinite;
}

/* ---------- Cinta ---------- */

.lp-ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 0.95rem 0;
  background: linear-gradient(180deg, #7a1e16, #5c120d);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lp-ribbon-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: lp-marquee 42s linear infinite;
}

.lp-ribbon span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-hi);
  white-space: nowrap;
}

.lp-ribbon i {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Secciones ---------- */

.lp-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 3vw, 2rem);
}

.lp-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.75rem, 5vw, 4rem);
  text-align: center;
}

.lp-head::after {
  content: '';
  display: block;
  height: 28px;
  margin: 1.4rem auto 0;
  max-width: 420px;
  background: var(--divider) center / contain no-repeat;
}

.lp-head h2 {
  margin: 0.6rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  color: var(--cream);
}

.lp-head p {
  margin: 0;
  font-family: var(--font-story);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--bone-dim);
}

/* ---------- Actos ---------- */

.lp-act {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.lp-act:last-child {
  margin-bottom: 0;
}

.lp-act-rev .lp-act-art {
  order: 2;
}

.lp-act-art {
  position: relative;
  margin: 0;
  padding: 10px;
  background: linear-gradient(145deg, #f3d58a, #8a6420 45%, #d9b45a 70%, #6e4b17);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease-out);
}

.lp-act-art::after {
  content: '';
  position: absolute;
  inset: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.lp-act-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lp-act-copy {
  position: relative;
}

.lp-act-num {
  display: block;
  font-family: var(--font-deco);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 180, 90, 0.6);
  margin-bottom: 0.25rem;
}

.lp-act-copy h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--gold-hi);
}

.lp-act-copy p {
  margin: 0 0 1.2rem;
  font-family: var(--font-story);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--bone);
}

.lp-link {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(217, 180, 90, 0.5);
  padding-bottom: 0.2rem;
}

/* ---------- Estandartes de gremio ---------- */

.lp-guilds {
  max-width: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(143, 29, 22, 0.22), transparent 60%),
    linear-gradient(180deg, transparent, rgba(10, 7, 5, 0.6) 30%, rgba(10, 7, 5, 0.6) 70%, transparent);
}

.lp-guild-rail {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lp-guild-rail > .lp-banner {
  flex: 0 1 205px;
}

.lp-banner {
  position: relative;
  padding: 0 0.9rem 2.6rem;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 32%, #3a0d09) 0%, #2a0b08 100%);
  border: 1px solid rgba(217, 180, 90, 0.55);
  border-top: 6px solid #6e4b17;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 26px), 0 100%);
  box-shadow: inset 0 0 0 3px rgba(10, 7, 5, 0.4);
  transition: transform 0.45s var(--ease-out), filter 0.45s ease;
  animation: lp-sway 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
  transform-origin: 50% 0;
}

.lp-banner:hover {
  transform: translateY(-8px);
  filter: brightness(1.12);
  animation-play-state: paused;
}

.lp-banner-art {
  margin: 0 -0.9rem 0.85rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 2px solid rgba(217, 180, 90, 0.55);
}

.lp-banner-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-banner-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.lp-banner:hover .lp-banner-art img {
  transform: scale(1.07);
}

.lp-banner h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-hi);
}

.lp-banner p {
  margin: 0 0 0.6rem;
  font-family: var(--font-story);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--bone);
}

.lp-banner-hint {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Cifras ---------- */

.lp-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(217, 180, 90, 0.25);
  border-bottom: 1px solid rgba(217, 180, 90, 0.25);
}

.lp-stat {
  text-align: center;
  padding: 0.5rem;
}

.lp-stat + .lp-stat {
  border-left: 1px solid rgba(217, 180, 90, 0.18);
}

.lp-stat strong {
  display: block;
  font-family: var(--font-deco);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--gold-hi);
  text-shadow: 0 0 24px rgba(217, 180, 90, 0.25);
  font-variant-numeric: tabular-nums;
}

.lp-stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- Pantallas ---------- */

.lp-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.lp-screen {
  display: block;
  color: inherit;
  background: linear-gradient(180deg, rgba(40, 29, 19, 0.95), rgba(20, 14, 9, 0.96));
  border: 1px solid rgba(217, 180, 90, 0.38);
  box-shadow: inset 0 0 0 3px rgba(10, 7, 5, 0.55), var(--shadow);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0s),
    translate 0.9s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.35s var(--ease-out),
    border-color 0.25s ease;
}

.lp-screen:hover {
  border-color: var(--gold);
  color: inherit;
}

.lp-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(217, 180, 90, 0.38);
  filter: sepia(0.15) saturate(1.05);
  transition: filter 0.4s ease;
}

.lp-screen:hover img {
  filter: none;
}

.lp-screen div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.85rem;
  align-items: center;
  padding: 1.3rem 1.4rem 1.5rem;
}

.lp-screen .ico {
  grid-row: span 2;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--gold);
}

.lp-screen h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-hi);
}

.lp-screen p {
  margin: 0;
  font-family: var(--font-story);
  font-size: 1.02rem;
  color: var(--bone-dim);
}

/* ---------- Virtudes ---------- */

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.lp-feature {
  position: relative;
  padding: 2rem 1.3rem 1.6rem;
  text-align: center;
  background: var(--tex-parchment) 0 0 / 512px repeat, var(--parchment);
  color: var(--sepia);
  border: 1px solid #b89a63;
  box-shadow: inset 0 0 0 5px rgba(233, 220, 192, 0.6), inset 0 0 0 6px rgba(138, 100, 32, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lp-feature .ico {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.lp-feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--crimson);
}

.lp-feature p {
  margin: 0;
  font-family: var(--font-story);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--sepia);
}

/* ---------- Preguntas ---------- */

.lp-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.lp-faq-list details {
  background: linear-gradient(180deg, rgba(40, 29, 19, 0.92), rgba(20, 14, 9, 0.94));
  border: 1px solid rgba(217, 180, 90, 0.32);
  box-shadow: inset 0 0 0 3px rgba(10, 7, 5, 0.5);
  transition: border-color 0.2s ease;
}

.lp-faq-list details[open] {
  border-color: var(--gold);
}

.lp-faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem;
}

.lp-faq-list summary::-webkit-details-marker {
  display: none;
}

.lp-faq-list summary::after {
  content: '';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}

.lp-faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.lp-faq-list summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold-hi);
}

.lp-faq-list details p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  font-family: var(--font-story);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--bone);
}

.lp-more {
  text-align: center;
  margin: 2rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* ---------- Final ---------- */

.lp-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
  background:
    linear-gradient(180deg, rgba(15, 11, 8, 0.6), rgba(15, 11, 8, 0.92)),
    url('../assets/theme/scene-dragon.webp') center 40% / cover no-repeat;
  border-top: 2px solid rgba(217, 180, 90, 0.4);
}

.lp-final-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(200, 50, 31, 0.35), transparent 60%);
  animation: lp-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.lp-final > *:not(.lp-final-glow) {
  position: relative;
}

.lp-final-seal {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}

.lp-final h2 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-deco);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  color: var(--gold-hi);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}

.lp-final p {
  margin: 0 auto 1.8rem;
  max-width: 36ch;
  font-family: var(--font-story);
  font-size: 1.2rem;
  color: var(--bone);
}

.lp-cta-center {
  justify-content: center;
}

/* ---------- Animaciones ---------- */

@keyframes lp-breathe {
  from { transform: scale(1.06); }
  to { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}

@keyframes lp-drift {
  from { background-position-x: 0; }
  to { background-position-x: -1600px; }
}

@keyframes lp-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

@keyframes lp-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes lp-sway {
  0%, 100% { rotate: -0.6deg; }
  50% { rotate: 0.6deg; }
}

@keyframes lp-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .lp-act,
  .lp-act-rev {
    grid-template-columns: 1fr;
  }

  .lp-act-rev .lp-act-art {
    order: 0;
  }

  .lp-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }

  .lp-stat:nth-child(3) {
    border-left: 0;
  }

  .lp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-guild-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 1.25rem 1.5rem;
    margin: 0 -1.25rem;
    scrollbar-width: thin;
  }

  .lp-banner {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .lp-screen-grid,
  .lp-feature-grid {
    grid-template-columns: 1fr;
  }
  .lp-hero,
  .lp-layer,
  .lp-layer-sky,
  .lp-layer-sky img {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .lp-act-art img,
  .lp-banner-art img,
  .lp-screen img,
  .lp-layer-sky img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .lp-screen img,
  .lp-act-art img {
    object-fit: contain;
    background: #0b0610;
  }

  .lp-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .lp-layer-sky img {
    object-position: 70% 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-layer-sky img,
  .lp-mist-a,
  .lp-mist-b,
  .lp-ribbon-track,
  .lp-banner,
  .lp-final-glow,
  .lp-scroll-cue span {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }

  .lp-embers {
    display: none;
  }
}
