/* ==========================================================================
   MADDI — Servidor PvP de Minecraft
   Sistema de diseño: oscuro / violeta imperial, tipografía elegante y ruda
   ========================================================================== */

:root {
  /* Color */
  --void:        #07050d;   /* fondo base, casi negro */
  --deep:        #120a22;   /* paneles / secciones */
  --deep-2:      #1b0f30;   /* paneles elevados */
  --line:        #2c1d4d;   /* bordes sutiles */
  --violet:      #7c3aed;   /* violeta primario */
  --violet-2:    #a855f7;   /* violeta brillante / glow */
  --violet-soft: rgba(124, 58, 237, 0.18);
  --gold:        #e8b923;   /* acento tienda / CTA cálido */
  --gold-2:      #f7d774;
  --crimson:     #c0293b;   /* acento zona PvP */
  --text:        #efe9fb;
  --text-muted:  #a99bd1;
  --text-faint:  #6c5d92;

  /* Type */
  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  position: relative;
  z-index: 0;
  min-width: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  position: relative;
  min-width: 0;
  overflow: clip;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: #fff;
  letter-spacing: 0.02em;
}

p { margin: 0; }

::selection { background: var(--violet); color: #fff; }

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   FONDO GENERAL — imagen de batalla fija con parpadeo de rayos
   No debe robar foco del contenido: overlays oscuros + blur leve
   ========================================================================== */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--void);
}

.bg-scene__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 1;
  filter: saturate(1.06) contrast(1.08) brightness(0.9);
  transform: scale(1.015);
}

.bg-scene__lightning {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, filter;
}

/* Trazo dentado del rayo: aparece junto con el resplandor del cielo. */
.bg-scene__lightning::before {
  content: "";
  position: absolute;
  top: -3vh;
  left: calc(var(--bolt-x, 50%) - 52px);
  width: 104px;
  height: min(58vh, 620px);
  background: linear-gradient(180deg, #fff 0%, #dfc8ff 18%, #9a5cff 58%, rgba(102,42,190,0.2) 100%);
  clip-path: polygon(49% 0, 61% 0, 52% 19%, 69% 25%, 49% 43%, 62% 48%, 38% 68%, 49% 73%, 25% 100%, 35% 72%, 24% 66%, 45% 47%, 32% 40%, 50% 23%, 40% 18%);
  filter: blur(0.35px) drop-shadow(0 0 7px #fff) drop-shadow(0 0 22px #a855f7) drop-shadow(0 0 46px #6d28d9);
  transform: rotate(var(--bolt-rotate, 0deg));
  transform-origin: top center;
}

.bg-scene__lightning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 34% at var(--flash-x, 50%) 8%, rgba(225,205,255,0.72), rgba(133,77,255,0.22) 42%, transparent 74%);
}

.bg-scene__lightning--a {
  --bolt-x: 67%;
  --bolt-rotate: 8deg;
  --flash-x: 67%;
  animation: lightning-burst-a 7.5s infinite;
}

.bg-scene__lightning--b {
  --bolt-x: 22%;
  --bolt-rotate: -9deg;
  --flash-x: 24%;
  animation: lightning-burst-b 10.5s infinite;
  animation-delay: 2.2s;
}

@keyframes lightning-burst-a {
  0%, 61%, 100% { opacity: 0; }
  61.5% { opacity: 0.82; }
  62% { opacity: 0.12; }
  62.5% { opacity: 0.96; }
  63.2% { opacity: 0.08; }
  64% { opacity: 0.48; }
  65% { opacity: 0; }
}

@keyframes lightning-burst-b {
  0%, 76%, 100% { opacity: 0; }
  76.4% { opacity: 0.68; }
  76.9% { opacity: 0.1; }
  77.4% { opacity: 0.84; }
  78.2% { opacity: 0; }
  79% { opacity: 0.42; }
  79.8% { opacity: 0; }
}

/* ---------- Destellos violeta/celeste sobre las armaduras del fondo ---------- */

.bg-scene__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  mix-blend-mode: screen;
  background: radial-gradient(circle, var(--spark-color, rgba(196,140,255,0.92)) 0 2%, rgba(255,255,255,0.54) 3%, transparent 34%);
  filter: drop-shadow(0 0 8px var(--spark-color, #b96cff));
  opacity: 0;
  animation-name: spark-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.98), var(--spark-color, #c084fc), transparent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--spark-color, #a855f7);
}

.spark::before { width: 44%; height: 2px; }
.spark::after  { width: 2px; height: 44%; }

@keyframes spark-twinkle {
  0%, 34%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.55) rotate(0deg); }
  39% { opacity: var(--spark-max, 0.75); transform: translate(-50%, -50%) scale(1.05) rotate(12deg); }
  44% { opacity: 0.12; transform: translate(-50%, -50%) scale(0.72) rotate(20deg); }
  48% { opacity: calc(var(--spark-max, 0.75) * 0.78); transform: translate(-50%, -50%) scale(0.92) rotate(26deg); }
  54% { opacity: 0; transform: translate(-50%, -50%) scale(0.62) rotate(34deg); }
}

/* violeta — lado izquierdo, donde el fondo ya tiene espadas y armaduras moradas */
.spark--v1 {
  top: 63%; left: 7%;
  width: 150px; height: 150px;
  --spark-color: #ca8cff;
  --spark-max: 0.85;
  animation-duration: 4.5s;
  animation-delay: 0.2s;
}
.spark--v2 {
  top: 48%; left: 4%;
  width: 100px; height: 100px;
  --spark-color: #a855f7;
  --spark-max: 0.7;
  animation-duration: 6s;
  animation-delay: 1.8s;
}
.spark--v3 {
  top: 77%; left: 13%;
  width: 90px; height: 90px;
  --spark-color: #daa6ff;
  --spark-max: 0.65;
  animation-duration: 5.2s;
  animation-delay: 3.1s;
}

/* celeste — lado derecho, donde el fondo tiene armadura de diamante */
.spark--c1 {
  top: 66%; left: 91%;
  width: 140px; height: 140px;
  --spark-color: #78e6ff;
  --spark-max: 0.85;
  animation-duration: 4.8s;
  animation-delay: 0.9s;
}
.spark--c2 {
  top: 80%; left: 86%;
  width: 100px; height: 100px;
  --spark-color: #5ed2f5;
  --spark-max: 0.7;
  animation-duration: 5.6s;
  animation-delay: 2.5s;
}
.spark--c3 {
  top: 56%; left: 96%;
  width: 80px; height: 80px;
  --spark-color: #96ebff;
  --spark-max: 0.6;
  animation-duration: 4.2s;
  animation-delay: 1.3s;
}

@media (prefers-reduced-motion: reduce) {
  .bg-scene__lightning--a,
  .bg-scene__lightning--b,
  .spark { animation: none; opacity: 0; }
}

.bg-scene__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,5,13,0.18) 0%, rgba(7,5,13,0.4) 45%, rgba(7,5,13,0.8) 82%, var(--void) 100%),
    radial-gradient(ellipse 90% 55% at 50% 0%, transparent 55%, rgba(7,5,13,0.6) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-scene__lightning { animation: none; opacity: 0; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 5, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__brand-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.nav__brand-ip {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  right: 0;
}

.nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 18px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--violet {
  background: linear-gradient(135deg, var(--violet), #5b21b6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.35), 0 10px 24px -8px rgba(124,58,237,0.7);
}
.btn--violet:hover { box-shadow: 0 0 0 1px rgba(168,85,247,0.6), 0 14px 30px -6px rgba(168,85,247,0.85); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241205;
  box-shadow: 0 10px 24px -8px rgba(232,185,35,0.65);
}
.btn--gold:hover { filter: brightness(1.08); box-shadow: 0 14px 30px -6px rgba(232,185,35,0.85); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-muted);
}
.btn--ghost:hover { color: #fff; border-color: var(--violet-2); }

.btn--icon img { height: 20px; width: 20px; }

/* ==========================================================================
   HERO (Inicio)
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(82svh, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 24px 90px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,5,13,0.35) 0%, rgba(7,5,13,0.55) 55%, var(--void) 96%),
    linear-gradient(90deg, rgba(7,5,13,0.55), transparent 30%, transparent 70%, rgba(7,5,13,0.55));
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 10px;
  height: 10px;
  border-radius: 60% 0 60% 0;
  background: linear-gradient(135deg, #f0abfc, var(--violet-2));
  opacity: 0.75;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(var(--drift, 40px)) rotate(340deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; display: none; }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-2);
}

.hero__logo {
  width: min(420px, 70vw);
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 34px rgba(124,58,237,0.5)) drop-shadow(0 14px 18px rgba(0,0,0,0.5));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 54px rgba(168,85,247,0.75)) drop-shadow(0 22px 22px rgba(0,0,0,0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; filter: drop-shadow(0 0 40px rgba(124,58,237,0.55)); }
}

.hero__tagline {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.hero--compact {
  min-height: 46vh;
  padding-top: 150px;
  padding-bottom: 60px;
}

.hero__status {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3fce6a;
  box-shadow: 0 0 10px #3fce6a;
}
.status-dot--off { background: #6c5d92; box-shadow: none; }

/* ==========================================================================
   IP BOX
   ========================================================================== */

.ip-panel {
  position: relative;
  z-index: 3;
  margin: -46px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}

.ip-panel__main {
  background: var(--deep);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ip-panel__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ip-panel__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.03em;
}

.ip-panel__copy {
  margin-left: auto;
  background: var(--violet-soft);
  border: 1px solid var(--violet);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ip-panel__copy:hover { background: rgba(124,58,237,0.35); }
.ip-panel__copy[data-copied="true"] { background: #21593a; border-color: #3fce6a; }

.ip-panel__stats {
  background: var(--deep-2);
  display: flex;
  align-items: stretch;
}

.ip-stat {
  padding: 16px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-left: 1px solid var(--line);
  min-width: 130px;
}

.ip-stat__value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-2);
}

.ip-stat__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .ip-panel { grid-template-columns: 1fr; }
  .ip-panel__stats { flex-direction: row; min-width: 0; }
  .ip-stat { flex: 1 1 0; min-width: 0; }
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */

.section {
  padding-top: clamp(76px, 8vw, 110px);
  position: relative;
}

/* Mantiene el aire lateral incluso cuando una sección también es container. */
.section.container {
  width: 100%;
  padding-right: 24px;
  padding-left: 24px;
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
  display: block;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
}

.section__lede {
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 14px;
  font-size: 16px;
}

.section__head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 700px;
}

/* Divisor con forma de rayo, elemento distintivo de la marca */
.divider {
  width: 100%;
  height: 46px;
  margin: 0 auto;
  display: block;
  color: var(--violet);
  opacity: 0.55;
}

/* ==========================================================================
   NOSOTROS (about) — panel presentación
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  background: linear-gradient(155deg, var(--deep), var(--deep-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.panel--glow {
  border-color: rgba(168,85,247,0.35);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12), 0 25px 60px -30px rgba(124,58,237,0.6);
}

.panel h3 {
  font-size: 18px;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.panel p + p { margin-top: 14px; }

.panel p { color: var(--text-muted); }

.featured-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.featured-shot img { width: 100%; height: 100%; object-fit: cover; }

.featured-shot__tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(7,5,13,0.7);
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   ZONAS (banner de zonas del servidor)
   ========================================================================== */

.zones {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050309;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.9), 0 0 34px rgba(124,58,237,0.12);
}

.zones img {
  width: 100%;
  display: block;
}

.zones__video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050309;
}

@media (max-width: 600px) {
  .zones {
    width: 100%;
    border-radius: 12px;
  }
}

.zones__caption {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 12px;
}

/* ==========================================================================
   COMPRAS RECIENTES — cuadro fijo arriba a la izquierda (datos reales de Tebex)
   ========================================================================== */

.recent-buyers {
  position: static;
  top: 80px;
  left: 20px;
  z-index: 60;
  width: 148px;
  background: rgba(18, 10, 34, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 20px 45px -18px rgba(0,0,0,0.75);
}

.recent-buyers[hidden] { display: none; }

.recent-buyers__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recent-buyers__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3fce6a;
  box-shadow: 0 0 8px #3fce6a;
  flex-shrink: 0;
  animation: recent-buyers-pulse 1.8s ease-in-out infinite;
}

@keyframes recent-buyers-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Grilla de 3x3 — solo el busto, el nombre queda como tooltip (title) */
.recent-buyers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.recent-buyers__item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--deep-2);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.recent-buyers__item:hover {
  border-color: var(--violet-2);
  transform: translateY(-2px);
}

.recent-buyers__avatar {
  display: block;
  width: 100%;
  height: 100%;
}
.recent-buyers__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  .recent-buyers__dot { animation: none; }
}

/* En pantallas chicas se achica un poco más, pero se mantiene SIEMPRE fijo (nunca vuelve al flujo normal) */
@media (max-width: 860px) {
  .recent-buyers {
    top: 68px;
    left: 12px;
    width: 128px;
    padding: 8px;
  }
}

/* ==========================================================================
   TIENDA CTA
   ========================================================================== */

.shop-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: radial-gradient(ellipse 120% 140% at 0% 0%, rgba(232,185,35,0.12), transparent 60%), var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
}

.shop-cta img { width: 84px; height: 84px; }

.shop-cta h3 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.shop-cta p { color: var(--text-muted); font-size: 14px; }

@media (max-width: 700px) {
  .shop-cta { grid-template-columns: auto 1fr; }
  .shop-cta .btn { grid-column: 1 / -1; }
}

/* ==========================================================================
   COMPRAS RECIENTES / COLABORADORES (placeholder, listo para Tebex)
   ========================================================================== */

.purchases {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.purchases__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.purchases__head span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.purchases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.purchases__avatar {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--deep-2), #241540);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.purchases__avatar img { width: 100%; height: 100%; object-fit: cover; }

.purchases__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 140px;
  border-top: 1px solid var(--line);
  background: rgba(7,5,13,0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

.footer-grid h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 14px; }
.footer-grid a:hover { color: #fff; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-note { color: var(--text-faint); font-size: 13px; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   RESPONSIVE NAV
   ========================================================================== */

@media (max-width: 400px) {
  .nav__brand-ip { display: none; }
}

@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .nav {
    padding: 11px 18px;
    gap: 12px;
  }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: 0;
    min-width: 42px;
    min-height: 42px;
  }
  .nav__actions {
    order: 2;
    margin-left: auto;
  }
  .nav__actions .btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(12, 7, 23, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 42px rgba(0,0,0,0.52);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 24px; width: 100%; }
  .nav__links a::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .shop-cta { grid-template-columns: 1fr; text-align: center; }
  .shop-cta img { margin: 0 auto; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }

  .site-header { background: rgba(7,5,13,0.9); }
  .nav { padding: 9px 14px; }
  .nav__actions { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__brand img { height: 30px; }
  .nav__brand-title { font-size: 14px; }

  .hero {
    min-height: calc(100svh - 58px);
    padding: 90px 16px 76px;
  }
  .hero--compact {
    min-height: 48svh;
    padding-top: 92px;
    padding-bottom: 52px;
  }
  .hero__content { gap: 16px; width: 100%; }
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.24em; }
  .hero__logo { width: min(360px, 86vw); }
  .hero__tagline { font-size: 15px; max-width: 34rem; }
  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
  .hero__actions .btn {
    width: min(100%, 320px);
    min-height: 46px;
  }

  .ip-panel { margin-top: -34px; border-radius: 14px; }
  .ip-panel__main { padding: 18px; gap: 12px; }
  .ip-panel__value { font-size: 18px; }
  .ip-panel__copy { padding: 9px 13px; font-size: 11px; }
  .ip-stat { padding: 14px 12px; }
  .ip-stat__value { font-size: 17px; }

  .section.container {
    padding-right: 16px;
    padding-left: 16px;
  }
  .section__head { margin-bottom: 34px; }
  .section__title { font-size: clamp(24px, 8.2vw, 31px); line-height: 1.22; }
  .section__lede { font-size: 14px; }
  .section__eyebrow { font-size: 10px; letter-spacing: 0.23em; }

  .about-grid { gap: 18px; }
  .panel,
  .form-panel,
  .purchases,
  .shop-cta { padding: 20px; }
  .shop-cta { gap: 15px; }
  .shop-cta img { width: 66px; height: 66px; }

  .news-grid,
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .field-row { gap: 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { margin-top: 90px; }
  .section--end { padding-bottom: 78px; }

  .bg-scene__image { object-position: center 22%; }
  .bg-scene__lightning::before { height: 44vh; width: 72px; left: calc(var(--bolt-x, 50%) - 36px); }
  .spark { transform: translate(-50%, -50%) scale(0.6); }
}

@media (max-width: 380px) {
  .nav__brand-ip { display: none; }
  .btn { padding: 11px 18px; font-size: 12px; }
  .ip-panel__main { flex-wrap: wrap; }
  .ip-panel__copy { margin-left: auto; }
  .ip-stat__label { font-size: 9px; }
  .panel h3 { font-size: 16px; }
}

/* ==========================================================================
   FORO — formulario de contacto y novedades
   ========================================================================== */

.form-panel {
  background: linear-gradient(155deg, var(--deep), var(--deep-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet-2);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { color: #6ee19b; }
.form-status--err { color: #f28b8b; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.news-card:hover { border-color: rgba(168,85,247,0.5); transform: translateY(-4px); }

.news-card__img { aspect-ratio: 16/9; background: var(--deep-2); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }

.news-card__body { padding: 20px; }
.news-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.news-card__title { margin-top: 8px; font-size: 17px; color: #fff; }
.news-card__excerpt { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.news-card__date { margin-top: 14px; font-size: 12px; color: var(--text-faint); }

/* ==========================================================================
   NOSOTROS — equipo
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
}

.team-card {
  position: relative;
  background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card::before {
  /* halo de color detrás del busto, tipo vitrina iluminada */
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--team-tint, var(--violet)) 0%, transparent 68%);
  opacity: 0.35;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.team-card:hover {
  border-color: var(--team-tint, var(--violet-2));
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.7), 0 0 0 1px var(--team-tint, var(--violet-2)) inset;
}
.team-card:hover::before { opacity: 0.55; }

/* Tintes por miembro — coinciden con el material del busto (oro / amatista) */
.team-card--gold   { --team-tint: var(--gold); }
.team-card--violet { --team-tint: var(--violet-2); }

.team-card__rank {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--team-tint, var(--gold-2));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.team-card__avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.55));
}

/* línea de "pedestal" bajo el busto, como una vitrina de museo */
.team-card__plinth {
  position: relative;
  width: 74px;
  height: 6px;
  margin: -6px auto 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse, var(--team-tint, var(--violet-2)) 0%, transparent 75%);
  opacity: 0.65;
}

.team-card__name {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.03em;
}
.team-card__role {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--team-tint, var(--gold-2));
  margin: 6px 0 12px;
}
.team-card__desc { position: relative; font-size: 13px; color: var(--text-muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border-left: 2px solid var(--violet);
  padding-left: 18px;
}
.pillar h4 { font-size: 15px; color: var(--gold-2); letter-spacing: 0.06em; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--text-muted); }

.section--end { padding-bottom: clamp(78px, 8vw, 110px); }

/* ==========================================================================
   PLACEHOLDER DE IMAGEN
   Usado donde el usuario va a pegar sus propias imágenes/capturas más
   adelante. Reemplazar el <div class="img-placeholder"> por un <img>.
   ========================================================================== */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, rgba(124,58,237,0.06) 0 10px, transparent 10px 20px), var(--deep);
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 20px;
}

/* Overrides finales para componentes declarados después del bloque responsive. */
@media (max-width: 640px) {
  .form-panel { padding: 20px; }
  .field-row { gap: 0; }
  .news-grid,
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ==========================================================================
   LEGAL — aviso legal / términos y copyright
   ========================================================================== */

.legal { max-width: 780px; margin: 0 auto; }

.legal .panel + .panel { margin-top: 22px; }

.legal h4 {
  font-size: 15px;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.legal ul,
.legal ol {
  color: var(--text-muted);
  padding-left: 20px;
  margin-top: 8px;
}

.legal li { margin-bottom: 8px; line-height: 1.6; }

.legal .legal-updated {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}
