/* ==========================================================================
   Chat With Your Main — stylesheet
   Futuristic · glassmorphism · dark with neon (Empyrean-inspired)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --cyan: #36d1dc;
  --magenta: #ff3fa4;
  --accent: var(--cyan);

  --bg: #05060a;
  --bg-2: #0a0d16;
  --text: #e8ecf4;
  --text-muted: #ffffff;
  --border: rgba(255, 255, 255, 0.08);

  --glass-bg: rgba(18, 22, 34, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.1);
  --glass-blur: 18px;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1320px;

  --glow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  /* Fallback si el video no carga: un degradado oscuro */
  
  overflow-x: hidden;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grad-text {
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   3. Video de fondo (NUEVO, CORREGIDO)
   -------------------------------------------------------------------------- */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  object-fit: cover;
  pointer-events: none;
  /* Aseguramos visibilidad */
  visibility: visible;
  opacity: 1;
}



/* En móviles, puedes optar por ocultar el video para ahorrar datos */
@media (max-width: 768px) {
  /* .bg-video { display: none; } */ /* Descomenta si quieres ocultarlo en móvil */
}

/* --------------------------------------------------------------------------
   4. Animated background layers (orbes, grid, noise)
   -------------------------------------------------------------------------- */
.bg-grid,
.bg-orb,
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;   /* Por encima del overlay pero debajo del contenido */
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
  animation: grid-drift 24s linear infinite;
}

.bg-orb {
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.bg-orb--cyan {
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(54, 209, 220, 0.55), transparent 70%);
  animation: float-a 18s ease-in-out infinite;
}

.bg-orb--magenta {
  bottom: -16%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 63, 164, 0.45), transparent 70%);
  animation: float-b 22s ease-in-out infinite;
}

.bg-noise {
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5. Layout shell (header, main, footer, ad rails)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  margin: 0.75rem auto;
  max-width: var(--maxw);
  border-radius: var(--radius);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.brand__text {
  font-size: 1.05rem;
}

.brand__accent {
  color: var(--cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.site-nav__link i {
  font-size: 1.05rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--maxw)) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 0 clamp(0.75rem, 3vw, 2rem) 2rem;
}

.content {
  grid-column: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.ad-rail {
  position: sticky;
  top: 96px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.ad-rail--left {
  grid-column: 1;
  justify-self: end;
}
.ad-rail--right {
  grid-column: 3;
  justify-self: start;
}

/* --------------------------------------------------------------------------
   6. Buttons & shared atoms
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, opacity 0.2s;
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn--primary {
  color: var(--bg);
  background: linear-gradient(120deg, var(--cyan), color-mix(in srgb, var(--accent) 70%, var(--magenta)));
  box-shadow: var(--glow);
}
.btn--primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.btn--loading .btn__icon {
  animation: spin 0.8s linear infinite;
}

.back-link {
  margin-top: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-subtitle {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.tag i {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Glass surfaces
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   8. View: Search / Hero
   -------------------------------------------------------------------------- */
.view {
  display: none;
}
.view--active {
  display: block;
  animation: fade-up 0.5s ease both;
}

.hero {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1rem 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(54, 209, 220, 0.08);
  border: 1px solid rgba(54, 209, 220, 0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin: 1.2rem 0 0.8rem;
  text-wrap: balance;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

.search {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  margin: 2.2rem auto 0;
  max-width: 620px;
  border-radius: 999px;
}

.search__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
}
.search__input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  outline: none;
  transition: box-shadow 0.2s;
}
.search__input::placeholder {
  color: var(--text-muted);
}
.search__input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent);
}

.search__select {
  padding: 0 0.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  outline: none;
  font-weight: 600;
}

.search__feedback {
  min-height: 1.4rem;
  margin-top: 1rem;
  font-weight: 600;
}
.search__feedback--error {
  color: var(--magenta);
}
.search__feedback--info {
  color: var(--cyan);
}

.hero__hints {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero__hints i {
  color: var(--accent);
  margin-right: 0.4rem;
}

/* --------------------------------------------------------------------------
   9. View: Champion select
   -------------------------------------------------------------------------- */
.summoner-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.summoner-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: var(--glow);
}
.summoner-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
}
.summoner-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}
.summoner-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.select__heading {
  margin-bottom: 1.4rem;
}

.champion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.champion-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  animation: fade-up 0.5s ease both;
  animation-delay: var(--delay, 0ms);
}
.champion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.champion-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.champion-card:hover::before {
  opacity: 1;
}
.champion-card > * {
  position: relative;
  z-index: 1;
}
.champion-card__rank {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--accent) 80%, white);
  z-index: 2;
}
.champion-card__portrait {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.champion-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.champion-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.champion-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.champion-card__title {
  font-size: 0.85rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.champion-card__mastery {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--accent) 75%, white);
  margin-top: 0.3rem;
}
.champion-card__mastery i {
  margin-right: 0.3rem;
}
.champion-card__cta {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.champion-card:hover .champion-card__cta {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   10. View: Chat
   -------------------------------------------------------------------------- */
.chat {
  display: flex;
  flex-direction: column;
  height: min(72vh, 720px);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--glass-stroke);
  overflow: hidden;
}
.chat__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--splash);
  background-size: cover;
  background-position: center 22%;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.chat__header > * {
  position: relative;
  z-index: 1;
}

.chat__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: visible;
}
.chat__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: var(--glow);
}
.chat__status {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2fe089;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 8px #2fe089;
}

.chat__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.chat__title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 1.2rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 50%, transparent) transparent;
}
.chat__log::-webkit-scrollbar {
  width: 8px;
}
.chat__log::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 82%;
  animation: pop-in 0.32s ease both;
}
.msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg--champion {
  align-self: flex-start;
}

.msg__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-stroke);
}

.msg__bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  line-height: 1.45;
  word-wrap: break-word;
}
.msg--champion .msg__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-stroke);
  border-bottom-left-radius: 4px;
}
.msg--user .msg__bubble {
  color: var(--bg);
  background: linear-gradient(120deg, var(--cyan), color-mix(in srgb, var(--accent) 65%, var(--magenta)));
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.typing {
  display: flex;
  gap: 0.35rem;
  padding: 0 1.6rem 0.6rem;
}
.typing__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: blink 1.2s infinite ease-in-out;
}
.typing__dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing__dot:nth-child(3) {
  animation-delay: 0.4s;
}

.chat__composer {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--glass-stroke);
  background: rgba(0, 0, 0, 0.18);
}
.chat__input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--glass-stroke);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.chat__input:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.chat__send {
  padding: 0.85rem 1.2rem;
  border-radius: 50%;
  aspect-ratio: 1;
}

/* --------------------------------------------------------------------------
   11. Ads
   -------------------------------------------------------------------------- */
.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 12px,
    transparent 12px,
    transparent 24px
  );
  color: var(--text-muted);
}
.ad-slot__label {
  position: absolute;
  top: 0.5rem;
  left: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.55;
}
.ad-slot--vertical {
  width: 180px;
  min-height: 600px;
}
.ad-slot--horizontal {
  width: 100%;
  min-height: 120px;
  margin-top: 2rem;
}
.adsbygoogle {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   12. Footer — full width, más visible y que tapa el watermark
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;                     /* ocupa todo el ancho */
  max-width: 100%;                 /* sin límite */
  margin: 0;                       /* sin margen */
  padding: 2.8rem clamp(1.5rem, 5vw, 4rem); /* más padding lateral */
  border-radius: 0;                /* sin esquinas redondeadas */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  z-index: 10;
  background: rgba(10, 13, 22, 0.85); /* más opaco aún */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: none;                    /* sin borde para que se fusione */
  border-top: 1px solid var(--glass-stroke); /* solo línea superior */
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.7);
}

/* Contenedor de apoyo ocupa toda la fila */
.footer__support {
  flex: 0 0 100%;
  text-align: center;
}

.footer__support-text {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Botones más grandes y con efecto llamativo */
.footer__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.btn--patreon,
.btn--coffee, .btn--isnta {
  padding: 1rem 2.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--patreon {
  color: #fff;
  background: #f1465a;
}

.btn--isnta {
  color: #fff;
  background: #dc3972;
}
.btn--coffee {
  color: #1a1207;
  background: #ffdd00;
}

.btn--patreon:hover,
.btn--coffee:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* Meta (créditos) también centrado y con separación */
.footer__meta {
  flex: 0 0 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-stroke);
}

.footer__meta a {
  color: var(--cyan);
  font-weight: 600;
}

.footer__legal {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   13. Animations
   -------------------------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes grid-drift {
  to {
    background-position: 54px 54px;
  }
}
@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, 30px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -30px);
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .content {
    grid-column: 1;
  }
  .ad-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-nav__link span {
    display: none;
  }
  .site-nav__link {
    padding: 0.55rem;
  }
  .search {
    flex-direction: column;
    border-radius: var(--radius);
  }
  .search__field,
  .search__input,
  .search__select,
  .search .btn {
    width: 100%;
  }
  .search__select {
    padding: 0.75rem 1rem;
  }
  .champion-grid {
    grid-template-columns: 1fr;
  }
  .summoner-card {
    flex-direction: column;
    text-align: center;
  }
  .summoner-card__tags {
    justify-content: center;
  }
  .footer__meta {
    text-align: left;
  }
  .chat {
    height: 78vh;
  }
  .msg {
    max-width: 90%;
  }
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1rem 1.5rem;   /* reducido verticalmente */
  margin: 0.1rem auto;      /* menos margen */
  max-width: var(--maxw);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  background: rgba(18, 22, 34, 0.4); /* más transparente para que se vea el video */
  border: 1px solid var(--glass-stroke);
}

.brand__mark {
  width: 34px;      /* antes 42px */
  height: 34px;
  font-size: 0.9rem;
}
.brand__text {
  font-size: 0.9rem;  /* antes 1.05rem */
}
.site-nav__link {
  padding: 0.3rem 0.7rem; /* menos padding */
  font-size: 0.85rem;
}

.hero-glass {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2rem 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Efecto de salpicadura de pintura fluorescente
   -------------------------------------------------------------------------- */
.paint-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  filter: blur(0.5px);
  mix-blend-mode: screen; /* para que se mezclen con el fondo oscuro */
}


.legal-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
}

.legal-content {
  padding: 2rem;
  border-radius: var(--radius);
}

.legal-content h1 {
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  margin: 2rem 0 1rem;
  color: var(--cyan);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer__links a:hover {
  color: var(--cyan);
}

.language-switcher {
  position: relative;
}

.language-switcher__button {
  width: 100%;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
  z-index: 100;
}

.language-switcher:hover .language-switcher__menu,
.language-switcher:focus-within .language-switcher__menu {
  display: flex;
}

.language-switcher__menu a {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  transition: background 0.2s ease;
}

.language-switcher__menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}