/* DBO Origin - estilos de la web. Paleta del launcher: azul noche + dorado. */
:root {
  --fondo: #080e1e;
  --fondo-2: #0d1630;
  --panel: rgba(13, 22, 48, 0.86);
  --borde: #22325a;
  --borde-oro: #6b5218;
  --texto: #d8e0f0;
  --suave: #9fb0d4;
  --tenue: #7484a8;
  --oro: #e8b240;
  --oro-claro: #ffd982;
  --naranja: #ff8a1e;
  --ok: #2f9a58;
  --error: #b53a4a;
  --human: #4d9bff;
  --namek: #4fcf7a;
  --majin: #ff6fae;
  --radio: 10px;
  --ancho: 1140px;
  --sombra: 0 14px 40px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--oro-claro); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

/* ---------- Cabecera y menu ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 14, 30, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 82, 24, 0.55);
}
.cabecera-in {
  max-width: var(--ancho); margin: 0 auto; padding: 0 16px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: 2px; text-decoration: none; color: #fff; white-space: nowrap;
}
.logo b { color: var(--oro-claro); }
.logo-esfera {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0%, #ffbe3c 35%, #e8771b 70%, #a3420a 100%);
  box-shadow: 0 0 14px rgba(255, 160, 40, 0.7);
  animation: latido 3.2s ease-in-out infinite;
}
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu { display: flex; align-items: center; gap: 18px; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--suave);
  font-weight: 600; transition: color 0.2s, background 0.2s;
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu a.activo { color: var(--oro-claro); }
.menu-extra { display: flex; align-items: center; gap: 10px; }
.idioma { border: 1px solid var(--borde); padding: 4px 10px !important; font-size: 13px; }
.estado { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--suave); white-space: nowrap; }
.estado i { width: 9px; height: 9px; border-radius: 50%; background: var(--tenue); }
.estado-online i { background: #3ddc7a; box-shadow: 0 0 0 0 rgba(61, 220, 122, 0.6); animation: pulso 2s infinite; }
.estado-offline i { background: #e0485c; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--borde); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; background: var(--oro-claro); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 14, 30, 0.97); border-bottom: 1px solid var(--borde-oro);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .menu.abierto { max-height: 420px; }
  .menu ul { flex-direction: column; padding: 8px 12px; }
  .menu a { padding: 12px; font-size: 17px; }
  .menu-extra { justify-content: space-between; padding: 12px 24px 18px; }
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.botones.centro { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 800; font-size: 16px; letter-spacing: 0.5px;
  text-decoration: none; cursor: pointer; border: 0; transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-oro { color: #1a1305; background: linear-gradient(180deg, var(--oro-claro), var(--oro)); box-shadow: 0 6px 22px rgba(232, 178, 64, 0.35); }
.btn-oro:hover { filter: brightness(1.07); box-shadow: 0 8px 28px rgba(232, 178, 64, 0.5); }
.btn-borde { color: var(--oro-claro); background: rgba(8, 14, 30, 0.5); border: 2px solid var(--oro); }
.btn-borde:hover { background: rgba(232, 178, 64, 0.12); }
.btn-ancho { width: 100%; margin-top: 20px; }
.btn-grande { font-size: 19px; padding: 18px 34px; }

/* ---------- Portada ---------- */
/* La imagen de fondo ya lleva el logo: es el titulo visual. El texto y los botones van abajo para no taparlo. */
.hero {
  position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: flex; align-items: flex-end; justify-content: center; text-align: center; overflow: hidden;
}
.hero-fondo {
  position: absolute; inset: -4%;
  background: url(/static/fondo.jpg) center 38% / cover no-repeat;
  animation: zoom-lento 26s ease-in-out infinite alternate;
}
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.25) 0%, rgba(8, 14, 30, 0) 40%, rgba(8, 14, 30, 0.75) 72%, var(--fondo) 100%);
}
.hero-brillo {
  position: absolute; top: 38%; left: 50%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 60, 0.22), transparent 65%);
  animation: brillo 5s ease-in-out infinite;
}
.hero-in { position: relative; padding: 40px 16px 100px; max-width: 760px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-titulo {
  font-size: clamp(46px, 11vw, 104px); font-weight: 900; letter-spacing: 4px; margin: 0; color: #fff;
  text-shadow: 0 4px 0 #8a5a10, 0 0 30px rgba(255, 170, 60, 0.55), 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: entrada 1s ease-out both;
}
.hero-titulo span {
  background: linear-gradient(180deg, #fff5cf, var(--oro) 60%, var(--naranja));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2.6vw, 21px); color: #e6ecfa; margin: 18px auto 0; max-width: 620px; text-shadow: 0 2px 10px #000; animation: entrada 1s 0.2s ease-out both; }
.hero .botones { justify-content: center; animation: entrada 1s 0.4s ease-out both; }
.hero-flecha {
  position: absolute; bottom: 26px; left: 50%; width: 26px; height: 26px; margin-left: -13px;
  border-right: 3px solid var(--oro); border-bottom: 3px solid var(--oro); transform: rotate(45deg);
  animation: rebote 2s ease-in-out infinite; opacity: 0.85;
}

/* ---------- Secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 70px 16px; }
.seccion-estrecha { max-width: 760px; }
.seccion-oscura { max-width: none; background: linear-gradient(180deg, var(--fondo-2), var(--fondo)); }
.seccion-oscura > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.titulo-seccion { text-align: center; font-size: clamp(26px, 4vw, 36px); color: #fff; margin-bottom: 36px; }
.titulo-seccion::after { content: ""; display: block; width: 70px; height: 3px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.centro { text-align: center; }

.rejilla-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tarjeta {
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px 22px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tarjeta:hover { transform: translateY(-6px); border-color: var(--borde-oro); box-shadow: var(--sombra); }
.tarjeta h3 { color: var(--oro-claro); font-size: 20px; }
.tarjeta p { color: var(--suave); margin: 0; }
.tarjeta-ico {
  display: block; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--oro), var(--naranja)); position: relative;
}
.tarjeta-ico::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: #1a1305; }
.ico-1::after { border-radius: 50%; width: 24px; height: 24px; box-shadow: 0 0 0 4px rgba(26, 19, 5, 0.35); }
.ico-2::after { clip-path: polygon(50% 0, 100% 50%, 70% 50%, 70% 100%, 30% 100%, 30% 50%, 0 50%); transform: rotate(180deg); }
.ico-3::after { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 28px; height: 28px; }
.ico-4::after { border-radius: 50%; background: transparent; border: 4px solid #1a1305; width: 26px; height: 26px; }

.pasos { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: paso; }
.paso { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px 22px; position: relative; }
.paso h3 { color: #fff; }
.paso p { color: var(--suave); margin: 0; }
.paso-n {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  font-weight: 900; font-size: 20px; color: #1a1305; margin-bottom: 14px;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffbe3c 45%, #e8771b);
  box-shadow: 0 0 16px rgba(255, 160, 40, 0.45);
}

.noticias { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.noticia { background: var(--panel); border: 1px solid var(--borde); border-left: 4px solid var(--oro); border-radius: var(--radio); padding: 18px 22px; }
.noticia time { font-size: 13px; color: var(--oro); font-weight: 700; }
.noticia h3 { margin: 4px 0 6px; font-size: 19px; color: #fff; }
.noticia p { margin: 0; color: var(--suave); }

/* ---------- Cabecera de paginas internas ---------- */
.pagina-cab { text-align: center; padding: 70px 16px 40px; position: relative; overflow: hidden; }
.pagina-cab-fondo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.6), var(--fondo)), url(/static/fondo.jpg) center 35% / cover;
  opacity: 0.55;
}
.pagina-cab h1 { font-size: clamp(32px, 6vw, 52px); color: #fff; text-shadow: 0 3px 16px #000; animation: entrada 0.8s ease-out both; }
.pagina-cab p { color: var(--suave); max-width: 680px; margin: 0 auto; animation: entrada 0.8s 0.15s ease-out both; }

/* ---------- Cajas, formularios, avisos ---------- */
.caja { background: var(--panel); border: 1px solid var(--borde-oro); border-radius: 12px; padding: 30px 28px; box-shadow: var(--sombra); }
.caja-descarga { text-align: center; margin-bottom: 50px; }
.nota { color: var(--suave); margin: 18px 0 0; }
.formulario label { display: block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--oro); }
.formulario input {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 16px; color: #fff;
  background: #0a1128; border: 1px solid var(--borde); border-radius: 7px; transition: border-color 0.2s, box-shadow 0.2s;
}
.formulario input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(232, 178, 64, 0.2); }
.formulario small { display: block; margin-top: 4px; color: var(--tenue); font-size: 13px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 14px 16px; border-radius: 8px; margin-bottom: 8px; line-height: 1.5; background: var(--fondo-2); border: 1px solid var(--borde); }
.aviso-ok { background: #102e1c; border-color: var(--ok); }
.aviso-error { background: #2e1016; border-color: var(--error); }

.lista-pasos { counter-reset: n; list-style: none; padding: 0; margin: 0 0 50px; }
.lista-pasos li { counter-increment: n; position: relative; padding: 14px 16px 14px 62px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); color: var(--suave); }
.lista-pasos li b { color: #fff; }
.lista-pasos li::before {
  content: counter(n); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: #1a1305;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffbe3c 45%, #e8771b);
}
.tabla { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.tabla th, .tabla td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.tabla th { color: var(--oro); width: 38%; font-weight: 700; }
.tabla tr:last-child th, .tabla tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--oro); transition: transform 0.25s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq[open] { border-color: var(--borde-oro); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--suave); animation: entrada 0.35s ease-out; }

/* ---------- Clases ---------- */
.razas { display: grid; gap: 34px; }
.raza-titulo { font-size: 24px; padding-left: 14px; border-left: 4px solid; }
.raza-titulo.raza-human { border-color: var(--human); }
.raza-titulo.raza-namek { border-color: var(--namek); }
.raza-titulo.raza-majin { border-color: var(--majin); }
.clase-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 760px) { .clase-fila { grid-template-columns: 1fr 1fr; } .clase-base { grid-column: 1 / -1; } }
.clase-btn {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 12px 14px;
  color: var(--texto); font: inherit; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.clase-btn:hover { transform: translateY(-3px); border-color: var(--borde-oro); }
.clase-btn.activo { border-color: var(--oro); background: rgba(232, 178, 64, 0.1); box-shadow: 0 0 0 1px var(--oro) inset; }
.clase-sub { background: rgba(13, 22, 48, 0.6); }
.emblema {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: #fff; border: 2px solid rgba(255, 255, 255, 0.25);
}
.raza-human .emblema { background: radial-gradient(circle at 35% 30%, #9cc8ff, var(--human) 55%, #1d4f9c); }
.raza-namek .emblema { background: radial-gradient(circle at 35% 30%, #a8f0bf, var(--namek) 55%, #1d7a3d); }
.raza-majin .emblema { background: radial-gradient(circle at 35% 30%, #ffc2dd, var(--majin) 55%, #9c2a5f); }
.clase-sub .emblema { width: 38px; height: 38px; font-size: 17px; opacity: 0.92; }
.clase-nombre { display: flex; flex-direction: column; font-weight: 700; line-height: 1.3; }
.clase-nombre small { font-weight: 400; color: var(--tenue); font-size: 13px; }

.arbol { margin-top: 44px; background: var(--panel); border: 1px solid var(--borde-oro); border-radius: 12px; padding: 22px; box-shadow: var(--sombra); scroll-margin-top: 80px; animation: entrada 0.4s ease-out; }
.arbol-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.arbol-cab h2 { margin: 0; color: var(--oro-claro); font-size: 24px; }
.arbol-cab h2 small { display: block; font-size: 14px; color: var(--tenue); font-weight: 400; margin-top: 4px; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--borde); background: transparent; color: var(--suave); cursor: pointer; }
.filtro.activo { background: var(--oro); border-color: var(--oro); color: #1a1305; font-weight: 700; }
.arbol-cuerpo { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .arbol-cuerpo { grid-template-columns: 1fr; } }
.rejilla-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.skill {
  position: relative; aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--borde); background: #0a1128;
  padding: 4px; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; animation: aparecer 0.35s ease-out both;
}
.skill img { width: 100%; height: 100%; border-radius: 6px; display: block; image-rendering: auto; }
.skill:hover, .skill:focus-visible { transform: scale(1.08); border-color: var(--oro); outline: none; z-index: 2; }
.skill.activo { border-color: var(--oro-claro); box-shadow: 0 0 14px rgba(232, 178, 64, 0.6); }
.skill-nv { position: absolute; bottom: -1px; right: -1px; font-size: 11px; font-weight: 800; background: rgba(8, 14, 30, 0.92); color: var(--oro-claro); padding: 0 5px; border-radius: 6px 0 8px 0; }
.skill.tipo-passive { border-style: dashed; }
.skill.tipo-htb { border-color: #b4462e; }
.detalle { position: sticky; top: 84px; background: #0a1128; border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; min-height: 180px; }
.detalle-vacio { color: var(--tenue); margin: 0; }
.detalle-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.detalle-cab img { width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--oro); flex: none; }
.detalle h3 { margin: 0; color: #fff; font-size: 19px; }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-top: 4px; background: var(--borde); color: var(--suave); }
.etiqueta-active { background: #1c3b6e; color: #b9d4ff; }
.etiqueta-passive { background: #1d4a33; color: #b6f0cd; }
.etiqueta-htb { background: #5a2416; color: #ffc8b8; }
.detalle p { color: var(--suave); margin: 0 0 12px; }
.rangos { display: flex; flex-wrap: wrap; gap: 6px; }
.rangos span { font-size: 13px; background: var(--fondo-2); border: 1px solid var(--borde); border-radius: 6px; padding: 2px 8px; color: var(--texto); }
.rangos b { color: var(--oro-claro); }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid rgba(107, 82, 24, 0.5); background: #060b18; }
.pie-in { max-width: var(--ancho); margin: 0 auto; padding: 30px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.pie p { margin: 0; color: var(--tenue); font-size: 13px; flex: 1; min-width: 260px; }
.logo-pie { font-size: 18px; }

/* ---------- Animaciones ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revelar.visible { opacity: 1; transform: none; }
.sin-js .revelar { opacity: 1; transform: none; }
@keyframes zoom-lento { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes brillo { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes latido { 0%, 100% { box-shadow: 0 0 10px rgba(255, 160, 40, 0.55); } 50% { box-shadow: 0 0 20px rgba(255, 180, 60, 0.95); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 122, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 122, 0); } }
@keyframes entrada { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes rebote { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(8px) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
