:root {
  color-scheme: dark;
  --text: #fff8ff;
  --soft: #eadcea;
  --muted: rgba(255, 244, 255, 0.72);
  --line: rgba(255, 255, 255, 0.2);
  --glass: rgba(14, 10, 22, 0.42);
  --glass-strong: rgba(14, 10, 22, 0.68);
  --pink: #ff7ce5;
  --blue: #8fc7ff;
  --gold: #ffe08a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #08070d;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #070610;
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms ease;
}

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

.video-bg video.active {
  opacity: 0.5;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 5, 12, 0.42), rgba(6, 5, 12, 0.76) 64%, #08070d 100%),
    linear-gradient(90deg, rgba(255, 124, 229, 0.14), transparent 36%, rgba(143, 199, 255, 0.12));
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page {
  min-height: 100vh;
}

.nav {
  position: relative;
  z-index: 20;
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 7, 13, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-wiki,
.btn,
.mini-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-wiki:hover,
.btn:hover,
.mini-link:hover,
.project:hover,
.event:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 124, 229, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #160d1b;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  padding: 54px clamp(18px, 5vw, 70px) 62px;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: end;
}

.hero-card {
  max-width: 850px;
}

.sunny-logo {
  width: min(430px, 82vw);
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 48px rgba(255, 124, 229, 0.3));
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 14px 52px rgba(0, 0, 0, 0.58);
}

h2 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.14;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.65;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}

.loader-list {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 7px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.loader-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.actions,
.social-row,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.profile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.scroll-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 76px clamp(18px, 5vw, 70px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.project small,
.event small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
}

.about-block {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.about-block p {
  color: var(--muted);
  line-height: 1.58;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.project {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-featured {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(255, 124, 229, 0.16), rgba(143, 199, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.project img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.project p,
.event p {
  color: var(--muted);
  line-height: 1.5;
}

.mini-link {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.mini-link span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.mini-link.modrinth span {
  background: #1bd96a;
  color: #061006;
}

.mini-link.curseforge span {
  background: #f16436;
  color: #180604;
}

.event-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.event-showcase {
  padding: 16px;
}

.event {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.event.featured,
.hero-event {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 124, 229, 0.2), rgba(143, 199, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.event h3 {
  margin-bottom: 0;
}

.hero-event h3 {
  margin-bottom: 10px;
}

.event-logo {
  min-height: 236px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.event-logo img {
  width: min(178px, 92%);
  height: 126px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.event-logo h3 {
  font-size: 17px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.event-actions a {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.contact p {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  padding: 30px clamp(18px, 5vw, 70px);
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.footer-socials span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.wikis-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 5, 12, 0.22), rgba(6, 5, 12, 0.72)),
    #08070d;
}

.wiki-main {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 54px clamp(18px, 5vw, 70px);
}

.wiki-panel {
  width: min(880px, 100%);
  padding: 28px;
  text-align: center;
}

.wiki-panel h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: 52px;
}

.wiki-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.wiki-card {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
}

.wiki-card img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.wiki-card strong {
  font-size: 24px;
}

.wiki-card span {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
    flex-direction: row;
  }

  .hero-inner,
  .about,
  .projects,
  .contact {
    grid-template-columns: 1fr;
  }

  .profile {
    max-width: 360px;
  }

  .event-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .event-showcase {
    grid-template-columns: 1fr;
  }

  .wiki-list {
    grid-template-columns: 1fr;
  }

  .event.featured,
  .hero-event {
    grid-column: span 1;
  }
}

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.tab-btn.active {
  border-color: var(--pink);
  background: rgba(255, 124, 229, 0.12);
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px;
  align-items: start;
}

/* ─── Collapsible eventos ───────────────────────────────────────────────────── */
.collapsible-head {
  cursor: pointer;
  user-select: none;
}

.collapse-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: transform 0.22s ease, border-color 0.16s ease, color 0.16s ease;
  flex-shrink: 0;
}

.collapse-btn:hover {
  border-color: var(--pink);
  color: var(--text);
}

.collapsible-body {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 2000px;
  opacity: 1;
}

.collapsible-body.collapsed {
  max-height: 0;
  opacity: 0;
}

.collapse-btn.collapsed {
  transform: rotate(-90deg);
}

/* ─── Creadores ────────────────────────────────────────────────────────────── */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, background 0.18s ease;
  text-align: center;
}

.creator-card:hover {
  border-color: rgba(255, 124, 229, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.creator-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  transition: border-color 0.18s ease;
}

.creator-card:hover .creator-avatar {
  border-color: var(--pink);
}

.creator-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.creator-role {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.creator-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.creator-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.creator-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.creator-links a.yt   { border-color: rgba(255, 80,  80,  0.5); color: #ff7070; }
.creator-links a.yt:hover { background: rgba(255, 80, 80, 0.15); border-color: #ff5050; }
.creator-links a.x    { border-color: rgba(255, 255, 255, 0.3); }
.creator-links a.kick { border-color: rgba(83, 252, 103, 0.4); color: #53fc67; }
.creator-links a.kick:hover { background: rgba(83, 252, 103, 0.1); border-color: #53fc67; }
.creator-links a.twitch { border-color: rgba(169, 112, 255, 0.5); color: #a970ff; }
.creator-links a.twitch:hover { background: rgba(169, 112, 255, 0.15); border-color: #a970ff; }

.creator-projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.creator-projects-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.creator-projects a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--soft);
  transition: background 0.16s ease, border-color 0.16s ease;
  text-align: left;
}

.creator-projects a:hover {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.4);
}

.creator-projects a::before {
  content: "▶";
  font-size: 0.65rem;
  color: #ff7070;
  flex-shrink: 0;
}

/* ─── Botón de idioma ──────────────────────────────────────────────────────── */
.lang-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 10, 22, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  padding: 0;
}

.lang-btn:hover {
  transform: scale(1.12);
  border-color: rgba(255, 124, 229, 0.7);
  background: rgba(255, 255, 255, 0.1);
}
