/* ==========================================================================
   L2LATAM — estilos
   ========================================================================== */
:root {
  --ink: #17212c;
  --ink-soft: #465666;
  --muted: #6b7a88;
  --steel: #8fb6d4;
  --steel-strong: #6f9dc2;
  --steel-deep: #4f7ea6;
  --slate: #4b5864;
  --line: #cbd7e2;
  --line-strong: #a9bccd;
  --panel: rgba(249, 251, 253, 0.93);
  --sky-fog: #f3f7fb;
  --ok: #3f9b6a;
  --warn: #c38a2c;
  --bad: #b8514d;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(40, 70, 100, 0.18), 0 2px 8px rgba(40, 70, 100, 0.08);
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --nav-h: 46px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.7, 0, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: #e4edf5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
a { color: var(--steel-deep); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: .03em; margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--steel-deep); outline-offset: 2px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .7em 1.5em;
  border: 1px solid transparent; border-radius: 4px;
  font: 600 14px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--steel); color: #fff; box-shadow: 0 4px 14px rgba(79, 126, 166, .3); }
.btn-primary:hover { background: var(--steel-strong); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: .5em 1em; font-size: 12px; }
.btn-lg { padding: .85em 1.6em; font-size: 16px; }
.btn-block { width: 100%; }
.btn svg { font-size: 1.2em; }

/* ---------------- Ornamentos ---------------- */
.ornament {
  width: 240px; max-width: 70%; height: 16px; margin: 0 auto 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cg fill='none' stroke='%239fb3c6' stroke-width='1'%3E%3Cpath d='M4 8h98M138 8h98'/%3E%3Cpath d='M120 1l7 7-7 7-7-7z'/%3E%3Cpath d='M120 4.5l3.5 3.5-3.5 3.5-3.5-3.5z'/%3E%3Cpath d='M104 8l5-3v6zM136 8l-5-3v6z' fill='%239fb3c6'/%3E%3Ccircle cx='4' cy='8' r='1.5'/%3E%3Ccircle cx='236' cy='8' r='1.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.ornament--small { width: 180px; margin: 14px auto 8px; }

/* ==========================================================================
   Marca (logo con alas)
   ========================================================================== */
.brand { text-align: center; }
.wings {
  position: relative; margin: 0 auto;
  width: clamp(92px, min(15vh, 16vw), 160px); aspect-ratio: 616 / 406;
  animation: glide var(--flap-speed, 3.4s) ease-in-out infinite;
}
.wing { position: absolute; inset: 0; width: 100%; height: 100%; }
.wing--left  { transform-origin: 40% 80%; animation: flap-left var(--flap-speed, 3.4s) ease-in-out infinite; }
.wing--right { transform-origin: 60% 80%; animation: flap-right var(--flap-speed, 3.4s) ease-in-out infinite; }

@keyframes flap-left  { 0%, 100% { transform: rotate(4deg); }  50% { transform: rotate(-14deg) scale(1, .95); } }
@keyframes flap-right { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(14deg) scale(1, .95); } }
@keyframes glide      { 0%, 100% { transform: translateY(4%); } 50% { transform: translateY(-6%); } }

.brand-name {
  font-family: var(--font-title); font-weight: 700; line-height: 1;
  font-size: clamp(46px, min(12vh, 11vw), 110px);
  letter-spacing: .01em; margin: .06em 0 .12em;
}
.brand-name span { font-size: .8em; }
.brand-sub, .brand-tag {
  font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(13px, min(2.6vh, 2.4vw), 21px);
}
.brand-rule {
  width: min(320px, 60vw); height: 1px; margin: .55em auto;
  background: linear-gradient(90deg, transparent, #9fb6ca, transparent);
}
.brand--dark { color: #121b25; }
.brand--light .brand-name {
  background: linear-gradient(180deg, #b7cadb 0%, #7f9bb5 55%, #5f7e9b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .7)) drop-shadow(0 6px 18px rgba(60, 90, 120, .18));
}
.brand--light .brand-sub, .brand--light .brand-tag { color: #25323f; text-shadow: 0 1px 12px rgba(255, 255, 255, .9); }

/* ==========================================================================
   Pantalla de carga
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f1f5f9 60%, #e3ebf2 100%);
  transition: background-color .9s;
}
.loader .brand { --flap-speed: .95s; will-change: transform; }
.loader-progress { width: min(260px, 60vw); height: 2px; background: #dbe4ec; border-radius: 2px; overflow: hidden; }
.loader-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #9fbad0, #5f86a8); transition: width .3s; }
.loader-text { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.loader.is-leaving { background: transparent; pointer-events: none; }
.loader.is-leaving::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f1f5f9 60%, #e3ebf2 100%);
  animation: fade-out 1.2s .25s var(--ease-inout) forwards;
}
.loader > * { position: relative; }
.loader.is-leaving .loader-progress, .loader.is-leaving .loader-text { opacity: 0; transition: opacity .3s; }
.loader.is-leaving .brand { transition: transform 1.3s var(--ease-inout), color 1.3s; color: #6f8ca8; }
.loader.is-leaving .brand .brand-sub, .loader.is-leaving .brand .brand-tag { color: #25323f; }
@keyframes fade-out { to { opacity: 0; } }

body.is-loading #heroBrand { opacity: 0; }
body.is-loading .topnav, body.is-loading .float-actions, body.is-loading .home-cta, body.is-loading .scroll-hint { opacity: 0; transform: translateY(-10px); }

/* ==========================================================================
   Escena y capas
   ========================================================================== */
.stage { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(180deg, #a9c9e6 0%, #b3cde4 30%, #dfe9f2 70%, #eef3f8 100%); }
.layer { position: absolute; inset: 0; transform-origin: 50% 46%; will-change: transform; }
.layer--valley { opacity: 0; }
/* Tamaño y posición los calcula main.js (cover con margen para el parallax) */
.scene-box { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* En pantallas verticales la imagen no cubre todo el alto: se funde con el cielo de fondo */
.scene-box.is-short .scene-bg { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }

/* Personajes: posicionados en % de la imagen del cielo (1379×752).
   left/bottom = punto donde apoyan los pies sobre el pasto de cada isla. */
.hero { position: absolute; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: 50% 100%; animation: breathe 5.5s ease-in-out infinite;
}
.hero-img { filter: drop-shadow(0 6px 6px rgba(40, 60, 40, .25)); }
.hero--mystic .hero-img { animation-duration: 6.2s; animation-delay: -2.5s; }
/* Respiración con leve balanceo, anclada a los pies */
@keyframes breathe {
  0%, 100% { transform: rotate(0deg) scale(1, 1); }
  30%      { transform: rotate(.35deg) scale(.994, 1.014); }
  50%      { transform: rotate(0deg) scale(.992, 1.018); }
  75%      { transform: rotate(-.3deg) scale(.996, 1.008); }
}

/* Chispas que suben desde la mano de la mística */
.spark {
  position: absolute; left: 90.6%; top: 25.7%; width: 3.2%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, rgba(255, 226, 150, .9) 40%, rgba(255, 214, 120, 0) 72%);
  mix-blend-mode: screen; opacity: 0; animation: spark 2.8s ease-out infinite;
}
.s2 { animation-delay: -.7s; --dx: -6px; }
.s3 { animation-delay: -1.4s; --dx: 5px; }
.s4 { animation-delay: -2.1s; --dx: -2px; }
@keyframes spark {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 3px)), -520%) scale(.2); }
}
.hero::before {
  content: ""; position: absolute; left: var(--feet); bottom: -2.5%; width: 55%; height: 6%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(35, 55, 25, .45), rgba(35, 55, 25, 0) 70%);
}
.hero--warrior { left: 39.16%; bottom: 39.89%; height: 24%;   aspect-ratio: 349 / 496; transform: translateX(-61%);   --feet: 61%; }
.hero--mystic  { left: 62.36%; bottom: 39.23%; height: 23.5%; aspect-ratio: 245 / 498; transform: translateX(-45.5%); --feet: 45.5%; }
.mystic-orb {
  position: absolute; left: 90.6%; top: 25.7%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0%, rgba(255, 236, 170, .85) 22%, rgba(255, 214, 120, .35) 48%, rgba(255, 214, 120, 0) 70%);
  mix-blend-mode: screen; animation: orb 2.6s ease-in-out infinite;
}
@keyframes orb {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.85); filter: brightness(1); }
  50%      { opacity: 1;  transform: translate(-50%, -56%) scale(1.25); filter: brightness(1.25); }
}

.cloud { position: absolute; left: 0; will-change: transform; pointer-events: none; }
.layer--clouds-back .cloud { animation: drift linear infinite; }
.c1 { top: 4%;  width: 34vw; opacity: .9;  animation-duration: 140s !important; animation-delay: -30s !important; }
.c2 { top: 20%; width: 24vw; opacity: .75; animation-duration: 180s !important; animation-delay: -120s !important; }
.c3 { top: 36%; width: 30vw; opacity: .85; animation-duration: 120s !important; animation-delay: -70s !important; animation-direction: reverse !important; }
.c4 { top: 0;   width: 22vw; opacity: .6;  animation-duration: 200s !important; animation-delay: -160s !important; animation-direction: reverse !important; }


.layer--clouds-front .cloud { animation: drift linear infinite; }
.f1 { bottom: -15vh; width: 70vw; animation-duration: 95s !important;  animation-delay: -10s !important; }
.f2 { bottom: -20vh; width: 62vw; animation-duration: 120s !important; animation-delay: -70s !important; animation-direction: reverse !important; }
.f3 { bottom: -12vh; width: 55vw; animation-duration: 105s !important; animation-delay: -45s !important; }
.f4 { bottom: -22vh; width: 66vw; animation-duration: 135s !important; animation-delay: -100s !important; animation-direction: reverse !important; }
.fog {
  position: absolute; left: -10%; right: -10%; bottom: -6vh; height: 30vh;
  background: linear-gradient(to top, var(--sky-fog) 22%, rgba(243, 247, 251, .75) 55%, rgba(243, 247, 251, 0));
}
@keyframes drift { from { transform: translateX(-75vw); } to { transform: translateX(110vw); } }

.stage-light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

/* ==========================================================================
   Cortina de nubes (transiciones)
   ========================================================================== */
.curtain { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.curtain-side {
  position: absolute; top: -15%; bottom: -15%; width: 80vw;
  transition: transform .8s var(--ease-inout);
}
.curtain-side--left  { left: -12vw;  transform: translateX(-175%) scale(1.3); }
.curtain-side--right { right: -12vw; transform: translateX(175%) scale(1.3); }
.curtain-side { z-index: 1; }
.curtain-side img { position: absolute; width: 115vw; max-width: none; }
.curtain-side--left img  { right: -30vw; }
.curtain-side--right img { left: -30vw; }
.curtain-side img:nth-child(1) { top: -4%; }
.curtain-side img:nth-child(2) { top: 20%; width: 125vw; }
.curtain-side img:nth-child(3) { top: 45%; }
.curtain-side img:nth-child(4) { top: 68%; width: 130vw; }
.curtain-fog {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, #f7fafd 25%, #dce7f1 100%);
  transition: opacity .45s ease;
}
.curtain.is-closed .curtain-side { transform: translateX(0) scale(1); }
.curtain.is-closed .curtain-fog { opacity: 1; transition-delay: .3s; }
.curtain.is-opening .curtain-side { transition-duration: 1.1s; transition-timing-function: var(--ease-out); }
.curtain.is-opening .curtain-fog { transition-duration: .5s; }

/* ==========================================================================
   Navegación
   ========================================================================== */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  background: rgba(252, 253, 255, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(190, 206, 221, .7);
  box-shadow: 0 2px 16px rgba(60, 90, 120, .08);
  transition: opacity .8s, transform .8s var(--ease-out);
}
.topnav-logo {
  position: absolute; left: 20px; font: 700 18px var(--font-title); color: var(--ink); text-decoration: none;
  opacity: 0; transition: opacity .4s;
}
.topnav-logo span { font-size: .8em; }
body:not(.view-inicio) .topnav-logo { opacity: 1; }
.topnav-menu { display: flex; align-items: center; gap: 4px; height: 100%; }
.topnav-menu > a {
  position: relative; display: flex; align-items: center; height: var(--nav-h); padding: 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  transition: color .2s;
}
.topnav-menu > a small { font-size: 11px; margin-left: 4px; color: var(--ink-soft); }
.topnav-menu > a:hover { color: var(--steel-deep); }
.topnav-menu a.is-active:not(.btn) { color: var(--steel-strong); }
.topnav-menu a.is-active:not(.btn)::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--steel);
}
.topnav-menu .btn { margin-left: 14px; height: 30px; padding: 0 14px; color: #fff; }
.topnav-menu .btn.is-active { background: var(--steel-strong); }

/* Selector de idioma */
.lang { position: relative; margin-left: 6px; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  font: 600 12px var(--font-body); letter-spacing: .05em; color: var(--ink);
}
.lang-toggle:hover { background: #fff; }
.lang-toggle svg { font-size: 14px; transition: transform .2s; }
.lang.is-open .lang-toggle svg { transform: rotate(180deg); }
.flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); object-fit: cover; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: rgba(252, 253, 255, .98); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 3px;
  background: none; font: 14px var(--font-body); color: var(--ink); text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: #edf3f8; }
.lang-menu li[aria-selected="true"] button { font-weight: 700; background: #e6eff7; }

.nav-toggle { display: none; }

/* ==========================================================================
   Vistas
   ========================================================================== */
#views { position: fixed; inset: 0; z-index: 30; }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: calc(var(--nav-h) + 28px) 16px 90px;
  visibility: hidden; opacity: 0;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.view.is-active { visibility: visible; opacity: 1; }
.view.is-entering > * { animation: ride-in 1.05s var(--ease-out) both; }
.view.is-entering > *:nth-child(2) { animation-delay: .08s; }
@keyframes ride-in {
  from { opacity: 0; transform: translateY(60px) scale(.9); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.view.is-leaving { visibility: visible; opacity: 0; transform: scale(1.12); transition: opacity .45s, transform .8s var(--ease-inout); }

/* ---------------- Inicio ---------------- */
.view--home { padding: 0; }
.home-hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--nav-h) + 3vh);
}
.home-cta {
  position: absolute; bottom: 9vh; left: 0; right: 0;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  transition: opacity .8s .3s, transform .8s .3s var(--ease-out);
}
.scroll-hint {
  position: absolute; bottom: 2.4vh; left: 50%; width: 26px; height: 40px; margin-left: -13px;
  border: 2px solid rgba(79, 110, 140, .55); border-radius: 14px; transition: opacity .8s .5s;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: rgba(79, 110, 140, .7); animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.home-servers, .home-news {
  position: relative; padding: 70px 16px 40px;
  background: linear-gradient(to bottom, rgba(243, 247, 251, 0), rgba(243, 247, 251, .9) 90px, rgba(243, 247, 251, .9));
}
.home-news { padding-top: 30px; background: rgba(243, 247, 251, .9); }
.site-footer { background: rgba(243, 247, 251, .9); padding: 20px 16px 90px; text-align: center; font-size: 12px; color: var(--muted); }
.site-footer p { max-width: 720px; margin: 0 auto; }

.section-head, .panel-head { text-align: center; margin-bottom: 30px; }
.section-head h2, .panel-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: #1d2935; }
.section-head p, .panel-head p { margin: 8px auto 0; max-width: 560px; color: var(--ink-soft); }
.panel-head--sub { margin: 36px 0 18px; }
.panel-head--sub h3 { font-size: 21px; }

/* ---------------- Panel ---------------- */
.panel {
  position: relative; max-width: 780px; margin: 0 auto;
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 48px 44px;
}
.panel--wide { max-width: 1000px; }
.panel::before, .server-card::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid var(--line); border-radius: 3px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 22px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 1px 22px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 22px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 1px 22px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 22px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 1px 22px no-repeat;
}
.panel > * { position: relative; }
.subhead { font-size: 21px; text-align: center; margin: 40px 0 18px; }

/* ---------------- Tarjetas de servidor ---------------- */
.server-grid {
  display: grid; gap: 22px; max-width: 900px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.server-grid.is-single { grid-template-columns: minmax(0, 360px); justify-content: center; }
.server-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 34px 26px 28px; text-align: center; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .95); border-radius: 4px; box-shadow: 0 10px 30px rgba(60, 90, 120, .12);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.server-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(60, 90, 120, .2); }
.server-card > * { position: relative; }
.server-rate { font-size: 46px; line-height: 1; font-weight: 400; letter-spacing: -.01em; }
.server-chronicle { font-size: 22px; margin-top: 4px; }
.server-card .ornament { width: 140px; margin: 14px auto 16px; }
.server-card ul { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; font-size: 14px; }
.server-card li { display: flex; gap: 10px; align-items: center; padding: 3px 0; }
.server-card li svg { color: #7d97ae; flex: none; }
.server-card .btn { margin-top: auto; }
.status {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--online { color: var(--ok); }
.status--pronto { color: var(--warn); }
.status--offline { color: var(--bad); }

/* ---------------- Detalle servidor ---------------- */
.detail-head { text-align: center; }
.detail-head .server-rate { font-size: 64px; }
.detail-head .server-chronicle { font-size: 28px; }
.detail-head p { color: var(--ink-soft); margin: 10px auto 0; max-width: 540px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin: 22px 0 6px; }
.countdown div { min-width: 70px; padding: 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.countdown strong { display: block; font: 600 26px var(--font-title); }
.countdown small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 28px 0; }
.rate-tile { padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.rate-tile strong { display: block; font: 600 26px var(--font-title); color: var(--steel-deep); }
.rate-tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list svg { color: var(--steel-strong); flex: none; }
.detail-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.detail-other { text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted); }
.detail-other a { margin: 0 6px; font-weight: 600; }

/* ---------------- Noticias ---------------- */
.news-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.news-item { background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; }
.news-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.news-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-deep); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------------- Comunidad ---------------- */
.community-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.community-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 26px 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.community-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60, 90, 120, .15); }
.community-card strong { font: 600 19px var(--font-title); }
.community-card span:last-child { font-size: 14px; color: var(--ink-soft); }
.community-icon { font-size: 34px; color: var(--steel-strong); height: 38px; }

/* ---------------- Descargas ---------------- */
.launcher { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.launcher-meta { display: flex; gap: 18px; font-size: 12px; color: var(--ink-soft); }
.launcher-meta > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.launcher-meta svg { font-size: 26px; color: #7d97ae; stroke-width: 1.6; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 34px; }
.req-grid h4 { margin: 0 0 6px; font-size: 15px; }
.req-grid table { width: 100%; border-collapse: collapse; font-size: 14px; }
.req-grid th, .req-grid td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-grid th { width: 40%; font-weight: 400; color: var(--ink-soft); padding-right: 10px; }

/* ---------------- Soporte ---------------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--steel-strong); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); }
.support-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------------- Cuenta ---------------- */
.panel--auth { max-width: 470px; padding: 0; margin-top: 46px; overflow: visible; }
.panel--auth::before { top: 7px; }
.auth-emblem { position: absolute; top: -44px; left: 50%; width: 110px; aspect-ratio: 616 / 406; transform: translateX(-50%); }
.auth-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.auth-emblem::before, .auth-emblem::after {
  content: ""; position: absolute; top: 58%; width: 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong));
}
.auth-emblem::before { right: 100%; }
.auth-emblem::after { left: 100%; transform: scaleX(-1); }
.auth-title { text-align: center; font-size: clamp(20px, 3vw, 26px); padding: 48px 24px 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.auth-tabs a {
  padding: 12px; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 16px;
  background: var(--slate); color: #f4f7fa; transition: background .2s, color .2s;
}
.auth-tabs a:first-child { border-radius: 8px 0 0 0; }
.auth-tabs a:last-child  { border-radius: 0 8px 0 0; }
.auth-tabs a[aria-selected="true"] { background: #fff; color: var(--ink); }
.auth-form { padding: 26px 36px 30px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.input {
  display: flex; align-items: center; height: 48px; margin-bottom: 14px;
  background: #fff; border: 1px solid #b9c8d6; border-radius: 4px; transition: border-color .2s, box-shadow .2s;
}
.input:focus-within { border-color: var(--steel-strong); box-shadow: 0 0 0 3px rgba(143, 182, 212, .3); }
.input.is-invalid { border-color: var(--bad); }
.input-icon { width: 46px; display: flex; justify-content: center; color: #8d9cab; font-size: 19px; flex: none; }
.input-icon svg { fill: currentColor; stroke: none; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 16px var(--font-body); color: var(--ink); padding-right: 12px; }
.input input::placeholder { color: #8390a0; }
.form-msg { min-height: 1.2em; margin: 0 0 10px; font-size: 13px; color: var(--bad); }
.form-msg.is-ok { color: var(--ok); }
.auth-note { text-align: center; font-size: 13px; margin: 14px 0 0; }
.auth-subtitle { font-size: 19px; text-align: center; margin-bottom: 8px; }
.auth-help { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 0 0 18px; }
.auth-extra { margin-top: 22px; padding: 16px 16px 14px; background: #f3f7fb; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.auth-extra h4 { margin: 0 0 6px; font: 600 16px var(--font-title); }
.auth-extra p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.auth-switch { text-align: center; font-size: 14px; margin: 0; }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* ==========================================================================
   Botones flotantes y toast
   ========================================================================== */
.float-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 65; display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  transition: opacity .8s .6s, transform .8s .6s;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 3px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 6px 18px rgba(60, 90, 120, .2); transition: transform .2s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn--chat { background: var(--steel); color: #fff; }
.float-btn--forum { background: #fff; color: var(--ink); }
.float-btn svg { fill: currentColor; stroke: none; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 4px; background: rgba(23, 33, 44, .92); color: #fff; font-size: 14px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; right: 12px; top: 5px; width: 36px; height: 36px; padding: 8px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topnav { justify-content: flex-start; }
  .topnav-logo { opacity: 1; }
  .topnav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0; height: auto; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: #fbfcfe; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .topnav.is-open .topnav-menu { transform: none; opacity: 1; visibility: visible; }
  .topnav-menu > a { height: 44px; padding: 0 4px; border-bottom: 1px solid #e6edf3; }
  .topnav-menu a.is-active:not(.btn)::after { display: none; }
  .lang { margin: 10px 0 0; }
  .lang-toggle { height: 38px; }
  .lang-menu { position: static; transform: none; box-shadow: none; display: none; margin-top: 6px; }
  .lang.is-open .lang-menu { display: block; }
  .topnav-menu .btn { margin: 14px 0 0; height: 44px; }
  .panel { padding: 30px 20px 34px; }
  .auth-form { padding: 22px 20px 26px; }
  .countdown div { min-width: 60px; }
}
@media (max-width: 560px) {
  .home-cta { bottom: 13vh; }
  .scroll-hint { display: none; }
  .float-actions { flex-direction: row; right: 12px; bottom: 12px; }
  .float-btn { padding: 7px 10px; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .curtain { display: none; }
}
