
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --black: #080808;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--black);
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 12px;
  background: #fff;
  color: #080808;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ENCABEZADO */

.header {
  position: relative;
  z-index: 100;
  height: 85px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #080808;
  border-bottom: 1px solid #303030;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* NAVEGACIÓN */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: color .3s;
}

.nav > a:hover {
  color: #999;
}

/* PERFIL */

.perfil {
  position: relative;
}

.perfil-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border: none;
  border-left: 1px solid #444;
  background: transparent;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.perfil-menu {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: 190px;
  background: #111;
  border: 1px solid #333;
}

.perfil.open .perfil-menu {
  display: block;
}

.perfil-menu a {
  display: block;
  padding: 18px;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

.perfil-menu a:hover {
  background: white;
  color: black;
}

.menu-toggle {
  display: none;
}

/* CARRUSEL */

.hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 520px);
  background: #000;
  overflow: hidden;
}

.discord-announcement {
  display: flex;
  justify-content: center;
  padding: 18px 5%;
  background: var(--black);
}

.discord-announcement img {
  display: block;
  width: min(100%, 850px);
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
}

.carousel {
  position: absolute;
  inset: 0;
}

.hero-welcome {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 5%;
  width: clamp(100px, 16vw, 190px);
  max-height: 42%;
  object-fit: contain;
  object-position: top left;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* MOSTRAR IMAGEN COMPLETA */

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* FLECHAS */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.65);
  color: white;
  border: 1px solid #777;
  font-size: 25px;
  transition: .3s;
}

.arrow:hover {
  background: white;
  color: black;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* INDICADORES */

.carousel-bottom {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.counter-line {
  width: 35px;
  height: 1px;
  background: #aaa;
}

.indicators {
  display: flex;
  gap: 8px;
}

.indicator {
  width: 25px;
  height: 3px;
  border: 0;
  background: #666;
  transition: .3s;
}

.indicator.active {
  width: 50px;
  background: #fff;
}

/* SECCIONES */

.info-section {
  position: relative;
  isolation: isolate;
  padding: 110px 10%;
  background: white;
  color: black;
  border-bottom: 1px solid #ddd;
}

.info-section::before,
.info-section::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  border: 4px solid var(--black);
}

.info-section::before {
  inset: 24px 4%;
  transform: rotate(-0.9deg);
}

.info-section::after {
  inset: 31px 4.5%;
  border-width: 2px;
  transform: rotate(0.65deg);
}

.info-section > * {
  position: relative;
  z-index: 1;
}

.info-section.dark {
  background: #0d0d0d;
  color: white;
  border-bottom-color: #333;
}

.section-number {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 25px;
  opacity: .6;
}

.about-content {
  display: flex;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
}

.about-copy {
  flex: 1 1 55%;
}

.info-section h2 {
  font-size: clamp(32px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.info-section p {
  font-size: 15px;
  line-height: 1.9;
  max-width: 600px;
  opacity: .7;
}

.about-image {
  display: block;
  flex: 1 1 45%;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
}

.monark-content {
  display: flex;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
}

.monark-image {
  display: block;
  flex: 1 1 45%;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
}

.monark-copy {
  flex: 1 1 55%;
}

.protocol-content {
  display: flex;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
}

.protocol-copy {
  flex: 1 1 55%;
}

.protocol-image {
  display: block;
  flex: 1 1 45%;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
}

.featured-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);column-gap:clamp(28px,4vw,56px);align-items:center;overflow:hidden}
.featured-section>.section-number{grid-column:1/-1}
.featured-section>.about-content,.featured-section>.monark-content,.featured-section>.protocol-content{min-width:0;width:100%;gap:clamp(22px,3vw,48px)}
.featured-section .about-copy,.featured-section .monark-copy,.featured-section .protocol-copy{min-width:0}
.featured-section .about-image,.featured-section .monark-image,.featured-section .protocol-image{min-width:0;max-width:44%}
.featured-section h2{font-size:clamp(34px,4.2vw,62px);overflow-wrap:break-word}
.home-highlight{align-self:center;width:100%;min-height:0;height:330px;padding:15px;border:3px solid #9d31dc;background:linear-gradient(145deg,rgba(145,45,190,.2),rgba(55,15,75,.92));color:#f8f0ff;box-shadow:7px 7px 0 #000;overflow:hidden}
.info-section:not(.dark) .home-highlight{background:linear-gradient(145deg,#f0dcfa,#c87de7);color:#1b0b27}
.home-highlight-heading{display:flex;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:2px solid currentColor;font-size:9px;font-weight:900;letter-spacing:.08em}.home-highlight-heading small{opacity:.55;font-size:8px}
.home-highlight-card{display:flex;flex-direction:column;height:calc(100% - 28px);min-height:0;color:inherit}.home-highlight-card img{display:block;width:100%;height:140px;min-height:110px;margin-top:12px;object-fit:cover;background:#161019}
.home-highlight-copy{display:flex;flex-direction:column;flex:1;padding-top:14px}.home-highlight-copy>span{color:#a331e8;font-size:8px;font-weight:900;letter-spacing:.12em}.home-highlight-copy h3{margin:7px 0;font:900 26px/1 'Barlow Condensed',Arial,sans-serif}.home-highlight-copy p{display:-webkit-box;margin:0!important;max-width:none!important;font-size:11px!important;line-height:1.55!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;opacity:.75!important}.home-highlight-copy small{margin-top:auto;padding-top:12px;font-size:7px;font-weight:700;letter-spacing:.06em;opacity:.55}
.home-highlight-empty{display:grid;min-height:250px;place-items:center;padding:20px;text-align:center;font-size:11px;line-height:1.7;opacity:.65}
.home-highlight-skeleton{min-height:270px;margin-top:13px;background:linear-gradient(110deg,rgba(120,120,120,.12) 20%,rgba(208,92,255,.25) 40%,rgba(120,120,120,.12) 60%);background-size:220% 100%;animation:home-shimmer 1.4s linear infinite}
@keyframes home-shimmer{to{background-position-x:-220%}}

.info-section .home-highlight[data-highlight="forum"],
.info-section .home-highlight[data-highlight="shop"] {
  position:relative;
  height:auto;
  min-height:360px;
  padding:18px;
  border:3px solid #120718;
  background-color:#f1ddff;
  background-image:radial-gradient(#c385e0 1px, transparent 1px);
  background-size:9px 9px;
  color:#1b0b27;
  box-shadow:9px 9px 0 #9d31dc, 13px 13px 0 #080808;
  overflow:visible;
}
.info-section .home-highlight[data-highlight="shop"] {
  background-color:#260e34;
  background-image:radial-gradient(#59316b 1px, transparent 1px);
  color:#fff;
  border-color:#080808;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-heading {
  align-items:center;
  position:relative;
  z-index:1;
  padding:8px 10px;
  border:2px solid #080808;
  background:#080808;
  color:#fff;
  box-shadow:4px 4px 0 #b046ef;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-heading small { opacity:.8 }
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-card {
  height:auto;
  outline-offset:8px;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-card:focus-visible {
  outline:3px solid #d05cff;
}
.home-highlight-media {
  position:relative;
  width:calc(100% + 50px);
  margin:20px -25px 0;
  border:4px solid #080808;
  background:#161019;
  box-shadow:6px 6px 0 #a637df, 10px 10px 0 #080808;
  transform:rotate(-3deg) translateY(-2px);
  transition:transform .2s ease, box-shadow .2s ease;
}
.home-highlight[data-highlight="shop"] .home-highlight-media { transform:rotate(3deg) translateY(-2px) }
.home-highlight-card .home-highlight-media img {
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:4/3;
  margin:0;
  object-fit:cover;
}
.home-highlight-card:hover .home-highlight-media,
.home-highlight-card:focus-visible .home-highlight-media {
  transform:rotate(0) translateY(-7px);
  box-shadow:8px 10px 0 #a637df, 12px 14px 0 #080808;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-copy {
  position:relative;
  padding:22px 0 0;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-copy > span {
  align-self:flex-start;
  padding:5px 8px;
  background:#9d31dc;
  color:#fff;
  border:2px solid #080808;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-copy h3 {
  display:-webkit-box;
  margin:10px 0 8px;
  font:900 clamp(24px,2.1vw,30px)/1 'Montserrat',sans-serif;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-copy p {
  overflow-wrap:anywhere;
}
.home-highlight:is([data-highlight="forum"],[data-highlight="shop"]) .home-highlight-copy small {
  margin-top:12px;
  padding-top:10px;
  border-top:2px solid currentColor;
}
@media (prefers-reduced-motion: reduce) {
  .home-highlight-media { transition:none }
}

footer {
  padding: 35px 5%;
  display: flex;
  justify-content: space-between;
  background: #000;
  color: #999;
  font-size: 10px;
  letter-spacing: 2px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .featured-section{grid-template-columns:1fr}.featured-section>.section-number{grid-column:auto}.home-highlight{width:min(100%,520px);height:360px;margin-top:35px;justify-self:center}.featured-section .about-image,.featured-section .monark-image,.featured-section .protocol-image{max-width:100%}
  .nav {
    gap: 15px;
  }

  .nav > a {
    font-size: 10px;
  }

  .logo span {
    font-size: 15px;
  }
}

@media (max-width: 950px) {
  .header {
    height: 75px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 32px;
    border: none;
    background: transparent;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
  }

  .nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 20px 5%;
    background: #090909;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #444;
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    padding: 19px 0;
    font-size: 12px;
    border-bottom: 1px solid #252525;
  }

  .perfil {
    padding: 20px 0;
  }

  .perfil-link {
    padding-left: 0;
    border-left: none;
  }

  .perfil-menu {
    position: static;
    width: 100%;
    margin-top: 15px;
  }

  .hero {
    height: clamp(250px, 48vw, 440px);
  }

  .about-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-image {
    width: min(100%, 500px);
    align-self: center;
  }

  .monark-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .monark-image {
    width: min(100%, 560px);
    align-self: center;
  }

  .protocol-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .protocol-image {
    width: min(100%, 500px);
    align-self: center;
  }

  .arrow {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .hero {
    height: clamp(220px, 58vw, 280px);
  }

  .hero-welcome {
    top: 10px;
    width: clamp(80px, 25vw, 110px);
    max-height: 30%;
  }

  .carousel-bottom {
    bottom: 10px;
  }

  .indicator {
    width: 13px;
  }

  .indicator.active {
    width: 25px;
  }

  .info-section {
    padding: 75px 8%;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

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

  .slide {
    transition: none;
  }
  .home-highlight-skeleton{animation:none}
}

/* GUÍA DE INICIO */
.guide-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 200;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.guide-widget [hidden] {
  display: none;
}

.guide-panel,
.guide-launcher {
  pointer-events: auto;
}

.guide-panel {
  background: #111;
  color: #fff;
  border: 1px solid #777;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .45);
  margin-bottom: 12px;
}

.guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.guide-close {
  background: transparent;
  border: 0;
  color: white;
  font-size: 27px;
  line-height: 1;
  padding: 4px;
}

.guide-content {
  padding: 16px;
}

.guide-progress {
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.guide-content h2 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.guide-description {
  color: #ddd;
  font-size: 12px;
  line-height: 1.6;
}

.guide-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 16px;
}

.guide-actions button,
#guideToggle {
  min-height: 40px;
  border: 1px solid #888;
  background: transparent;
  color: white;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
}

.guide-actions button:last-child,
#guideToggle {
  background: #fff;
  color: #080808;
  border-color: #fff;
}

.guide-actions button:disabled {
  opacity: .4;
  cursor: default;
}

.guide-launcher {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.guide-kimba {
  position: fixed;
  z-index: 199;
  width: 65px;
  height: 75px;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
}

.guide-kimba[hidden] {
  display: none;
}

#guideToggle span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  margin-right: 5px;
}

.guide-highlight {
  outline: 3px solid #ffd75e !important;
  outline-offset: 4px;
}

.guide-widget button:focus-visible {
  outline: 2px solid #ffd75e;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .guide-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .guide-kimba {
    width: 52px;
    height: 58px;
  }
  .guide-content {
    padding: 12px 14px;
  }
  .guide-actions {
    padding: 0 14px 12px;
  }
}

@media (max-width: 950px) {
  .nav > a.guide-highlight {
    width: fit-content;
    max-width: 100%;
  }
}
