/* VARIABLES Y TOKENS DE DISEÑO */
:root {
  --bg-dark: #000000;
  --bg-surface: #1A1A1A;
  --border-color: #4D4D4D;
  --primary-purple: #450F96;
  --primary-purple-hover: #5B16C8;
  --secondary-hover: #0D0D0D;

  --text-primary: #FFFFFF;
  --text-secondary: #BFBFBF;
  --text-secondary-secondary: #aa8bde;

  --red-secondary: #E30613;
  --red-secondary-hover: #961712;
  --yellow-secondary: #FFD600;
  --yellow-secondary-hover: #f5b041;
  --green-secondary: #00c853;
  --green-secondary-hover: #009624;
  
  --font-heading: 'Syne', sans-serif; /* Para titulos */
  --font-subtitle: 'Sora', sans-serif; /* Para Subtitulos */
  --font-body: 'Plus Jakarta Sans', sans-serif; /* Para texto normal */
  
  --radius-btn: 40px;
  --radius-card: 20px;
  --radius-input: 12px;
}

/* Transiciones en la pagina */

body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-loaded {
  opacity: 1;
}

body.page-exiting {
  opacity: 0;
}


/* Al hacer scroll sale */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto escalonado */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* TIPOGRAFÍA Y ENCABEZADOS */

/*  Texto normal (plus jakarta sans) */
body, p, span, li, a, button {
  font-family: var(--font-body);
  font-size: 1rem;          
  font-weight: 400;          
  line-height: 1.5;          
  color: #E2E8F0;           
}

/*  Titulos Principales (syne) */
h1 {
  font-family: var(--font-heading);
  font-weight: 800;           
  font-size: clamp(2.5rem, 5vw, 4rem); 
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

/*  Subtitulos y Secciones sora semiBold) */
h2, h3, .subtitle {
  font-family: var(--font-subtitle);
  font-weight: 600;           /* SemiBold */
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.3;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-top: 80px; /* espacio para el navbar fijo */
}

/* ===================================================
   NAVBAR BASE
   =================================================== */
.navbar {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;    
  z-index: 1000;
}

.nav-container {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.logo-img {
  width: 40px; 
  height: 40px;
  object-fit: contain;
  display: block;
}

.educativo-page .navbar .logo-img {
  width: auto;
  height: 45px;
  transform: scale(2.8);
  transform-origin: left center;
}

.educativo-page .navbar .nav-container {
  height: 74px;
}

.educativo-page .footer .logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  object-position: center;
}

.game-logo-img {
  width: 135px;
  height: 56px;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* ===================================================
   ENLACES SUPERIORES
   =================================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto; /* Alinea los links a la derecha */
}

.nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nav-link-icon {
  width: 28px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-auth-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================================================
   BOTÓN MENÚ HAMBURGUESA & SIDEBAR
   =================================================== */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 38px;
  height: 38px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  z-index: 1200;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100vh;
  padding: 72px 18px 34px;
  background: #0b0b0b;
  border-right: 1px solid var(--border-color);
  box-shadow: 18px 0 45px rgba(0, 0, 0, 0.45);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 1100;
  overflow-y: auto;
  overflow-y: auto;
  scrollbar-width: none;        /* Oculta la barra */
  -ms-overflow-style: none;
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.side-menu-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.side-menu-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.side-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 10px 24px;
}

.side-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-menu-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 6px;
  color: var(--text-primary);
  font-family: var(--font-subtitle);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.side-menu-group-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.side-menu-links a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.side-menu-links a:hover,
.side-menu-links a.active {
  color: var(--text-primary);
  background: rgba(69, 15, 150, 0.3);
}

.side-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}

.side-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* CONTROL POR TIPO DE PÁGINA (BODY CLASSES) */

/* En Inicio, Servicios y Nosotros */
body.has-navbar-links .nav-container {
  padding: 16px 32px;
}
body.has-navbar-links .nav-links {
  display: flex;
}
body.has-navbar-links .menu-toggle,
body.has-navbar-links .side-menu,
body.has-navbar-links .side-menu-backdrop {
  display: none !important;
}

/* En Juegos */
body.has-sidebar .nav-container {
  padding: 16px 24px 16px 75px;
}
body.has-sidebar .nav-links {
  display: none !important;
}
body.has-sidebar .menu-toggle {
  display: flex;
}

/* Educativo */

.educativo-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 4.7rem);   /* antes: 3.1rem, 6vw, 5.4rem */
  line-height: 1.05;
  text-wrap: balance;
}

.educativo-page {
  min-height: calc(100vh - 80px);
}

.educativo-page .navbar {
  border-bottom-color: rgba(202, 167, 255, 0.18);
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html {
  scroll-behavior: smooth;
}

.educativo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 480px;
  align-items: center;
  padding: 70px max(7vw, 28px) 66px;
  border-bottom: 1px solid rgba(210, 174, 255, 0.18);
  background:
    radial-gradient(ellipse at 80% 45%, rgba(104, 42, 191, 0.28), transparent 44%),
    radial-gradient(ellipse at 8% 110%, rgba(69, 15, 150, 0.42), transparent 55%),
    #08060d;
}

.educativo-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  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: 56px 56px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 75%);
}

.educativo-hero-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(7vw, 28px);
  width: min(38vw, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(195, 154, 255, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 44px rgba(195, 154, 255, 0.025), 0 0 0 92px rgba(195, 154, 255, 0.02);
}

.educativo-hero-logo {
  position: absolute;
  top: 50%;
  right: max(9vw, 42px);
  width: min(50vw, 450px);  
  height: auto;
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%) rotate(-8deg);
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.45));
}

.educativo-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0;
  padding-left: clamp(0px, 3vw, 24px);
}

.educativo-page.page-loaded .educativo-hero-content > * {
  animation: educativo-content-enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.educativo-page.page-loaded .educativo-hero-content > :nth-child(2) { animation-delay: 100ms; }
.educativo-page.page-loaded .educativo-hero-content > :nth-child(3) { animation-delay: 180ms; }
.educativo-page.page-loaded .educativo-hero-content > :nth-child(4) { animation-delay: 260ms; }
.educativo-page.page-loaded .educativo-hero-content > :nth-child(5) { animation-delay: 340ms; }

@keyframes educativo-content-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.educativo-hero-highlight {
  font: inherit;
  color: #cba7ff;
}

.educativo-hero .educativo-eyebrow span {
  padding-inline: 6px;
  color: #a98ad6;
}

.educativo-platforms-content {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.educativo-eyebrow {
  margin: 0 0 16px;
  color: var(--yellow-secondary);
  font-family: var(--font-subtitle);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(90deg, var(--text-secondary-secondary), var(--primary-purple-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.educativo-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: #c8c1d2;
  font-size: 1.06rem;
  line-height: 1.75;
}

.educativo-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 14px 24px;
  background: #6f32c7;
  box-shadow: 0 10px 28px rgba(82, 30, 156, 0.32);
}

.educativo-hero-cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.educativo-hero-cta:hover {
  background: #8547df;
}

.educativo-hero-cta:hover span {
  transform: translateY(3px);
}

body.has-navbar-links .nav-links a {
  position: relative;
}

body.has-navbar-links .nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #cba7ff;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

body.has-navbar-links .nav-links a:hover::after,
body.has-navbar-links .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.educativo-page .nav-links a:focus-visible,
.educativo-hero-cta:focus-visible,
.educativo-page .about-us-cta-actions .btn:focus-visible {
  outline: 2px solid #d7bdff;
  outline-offset: 4px;
}

.educativo-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.educativo-hero-highlights li {
  padding: 7px 12px;
  border: 1px solid rgba(202, 167, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 14, 29, 0.72);
  color: #ded4eb;
  font-size: 0.78rem;
}

.educativo-hero-note {
  position: absolute;
  right: 7vw;
  bottom: 28px;
  color: rgba(231, 220, 246, 0.48);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.educativo-platforms {
  padding: 82px 24px 96px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(62, 30, 102, 0.16), transparent 55%),
    #050505;
}

.educativo-platforms-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.educativo-platforms-summary {
  display: flex;
  align-items: center;
  gap: 24px;
}

.educativo-platforms-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

#educativo-platforms-title {
  scroll-margin-top: 96px;
}

.educativo-platforms-heading .educativo-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.educativo-platforms-heading .educativo-eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #a66cf0;
  content: "";
}

.educativo-platforms-heading p {
  margin: 0;
  color: #aaa2b5;
  font-size: 0.95rem;
}

.educativo-platforms-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(202, 167, 255, 0.2);
  border-radius: 12px;
  background: rgba(202, 167, 255, 0.06);
}

.educativo-platforms-count strong {
  color: #d7bdff;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.educativo-platforms-count span {
  color: #aaa2b5;
  font-size: 0.67rem;
  line-height: 1.35;
}

.educativo-page .about-us-cta {
  width: 100%;
  max-width: none;
  margin: 0 auto 88px;
  padding: 0 clamp(18px, 5vw, 80px);
  box-sizing: border-box;
}

.educativo-page .about-us-cta-card {
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(202, 167, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(135, 76, 210, 0.35), transparent 45%),
    linear-gradient(125deg, #25123e, #120d1a 70%);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
}

.educativo-page .about-us-cta-content {
  position: relative;
  z-index: 1;
}

.educativo-page .about-us-cta h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
  text-wrap: balance;
}

.educativo-page .about-us-cta p {
  color: #d2c7df;
}

.educativo-page .about-us-cta-actions .btn-primary {
  height: auto;
  min-height: 48px;
  border: 0;
  background: #fff;
  color: #21132f;
}

.educativo-page .about-us-cta-actions .btn-primary:hover {
  background: #eadfff;
  box-shadow: 0 10px 26px rgba(5, 0, 12, 0.24);
  transform: translateY(-2px);
}

.educativo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.educativo-card {
  --platform-accent: var(--primary-purple-hover);
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 360px;
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 85% 110%, color-mix(in srgb, var(--platform-accent) 9%, transparent), transparent 52%),
    linear-gradient(145deg, #15131a, #0d0c11);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.educativo-card-visual {
  position: relative;
  display: flex;
  width: calc(100% + 40px);
  height: 138px;
  flex: 0 0 138px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: -20px -20px 20px;
  background:
    radial-gradient(circle at 22% 42%, color-mix(in srgb, var(--platform-accent) 34%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--platform-accent) 20%, #17141c), #111015 72%);
}

.educativo-card-visual::before,
.educativo-card-visual::after {
  position: absolute;
  content: "";
  border: 1px solid color-mix(in srgb, var(--platform-accent) 30%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.educativo-card-visual::before {
  width: 150px;
  height: 150px;
  right: -26px;
  bottom: -100px;
}

.educativo-card-visual::after {
  width: 92px;
  height: 92px;
  right: 3px;
  bottom: -71px;
}

.educativo-card-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--platform-accent) 32%, transparent);
  border-radius: 19px;
  background: color-mix(in srgb, var(--platform-accent) 9%, #121016);
  color: var(--platform-accent);
  filter: drop-shadow(0 12px 20px color-mix(in srgb, var(--platform-accent) 22%, transparent));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  box-sizing: content-box;
}

.educativo-card:hover .educativo-card-icon {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 0 28px color-mix(in srgb, var(--platform-accent) 22%, transparent);
}

.educativo-card-category {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--platform-accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-surface) 84%, transparent);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.educativo-card-visual .educativo-card-number {
  position: absolute;
  top: 14px;
  left: 16px;
  color: color-mix(in srgb, var(--platform-accent) 75%, white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.educativo-card:nth-child(2) { --platform-accent: var(--green-secondary); }
.educativo-card:nth-child(3) { --platform-accent: var(--red-secondary); }
.educativo-card:nth-child(4) { --platform-accent: var(--yellow-secondary); }
.educativo-card:nth-child(5) { --platform-accent: var(--text-secondary-secondary); }

.educativo-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--platform-accent) 62%, transparent);
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--platform-accent) 42%, transparent), 0 14px 30px rgba(0, 0, 0, 0.26);
}

.educativo-card:active {
  transform: translateY(-2px);
}

.educativo-card:focus-visible {
  outline: 3px solid var(--platform-accent);
  outline-offset: 4px;
}

.educativo-card-number {
  position: relative;
  z-index: 1;
  color: var(--platform-accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
}

.educativo-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
}

.educativo-card-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
}

.educativo-card-domain {
  position: relative;
  z-index: 1;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #aaa2b5;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.educativo-card-action {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.educativo-card-action > span {
  color: var(--platform-accent);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.educativo-card:hover .educativo-card-action > span {
  transform: translate(3px, -3px);
}

.educativo-contact {
  padding: 48px 24px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(100deg, color-mix(in srgb, var(--primary-purple) 22%, transparent) 0%, transparent 60%), var(--bg-dark);
}

.educativo-contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.educativo-contact-content h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 1.6rem;
}

.educativo-contact-content p {
  margin: 0;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.educativo-contact-cta {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .educativo-contact-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  padding: 40px 20px;
}
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;  
  min-height: calc(68vh - 40px); 
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;         
  margin: 0 auto;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}


.hero-description {
  max-width: 650px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 0 auto; 
}

.hero-logo {
  display: block;
  max-width: 595px;
  width: 90%;
  height: auto;
 margin: 0 auto 24px;  
}


/* Juegos populares */

.popular-section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  max-width: 1150px;  
  margin: 0 auto 20px;  
}

.featured-game-banner-section {
  padding: 100px 120px; /*espacio entre secciones */
  background-color: var(--bg-dark);
  position: relative;
}

.featured-game-banner-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-game-wrap {
  position: relative;
}

.featured-badge-wrapper {
  position: absolute;
  top: -50px;
  right: -98px;
  z-index: 2;
}

.featured-badge {
  width: 205px;
  height: auto;
  display: block;
  transform: rotate(35deg);
  cursor: pointer;
}

.featured-badge:hover {
  animation: shake-tilted 0.4s ease forwards; /*infinite para que dure siempre*/
}

@keyframes shake-tilted { /*se especifican los grados*/
  0%   { transform: rotate(35deg); }
  20%  { transform: rotate(30deg) translate(-2px, -2px); }
  40%  { transform: rotate(39deg) translate(2px, 2px); }
  60%  { transform: rotate(32deg) translate(-1px, 1px); }
  80%  { transform: rotate(37deg) translate(1px, -1px); }
  100% { transform: rotate(35deg); }
}

/*Sección de dtrail educativo*/

.dtrail-banner-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 100px 0 10px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(69, 15, 150, 0.45), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(91, 22, 200, 0.3), transparent 50%),
    var(--bg-dark);

  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 92%, transparent 100%);
}

.dtrail-banner-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.dtrail-banner-content {
  min-width: 0;
}

.dtrail-banner-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--yellow-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dtrail-banner-badge-icon {
  width: 350px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.dtrail-banner-title {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  text-transform: none; 
}

.dtrail-banner-desc {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.dtrail-banner-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dtrail-banner-cta {
  background: var(--primary-purple-hover);
  color: var(--text-primary);
  border: none;
}

.dtrail-banner-cta:hover {
  background: var(--primary-purple);
}

.dtrail-banner-actions-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
}

.dtrail-banner-actions-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.dtrail-banner-actions-note strong {
  color: var(--text-primary);
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  font-weight: 600;
}

.dtrail-banner-actions-note span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* Radar circular */

.dtrail-banner-radar-core {
  position: relative;
  left: 190px;
  display: grid;
  place-items: center;
  padding: 52px;
  gap: 14px;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  
  /* Degradado de fondo con tonos morados/rosas más llamativos */
  background: #5a2da8;
  
  /* Borde con más brillo */
  border: 1px solid rgba(200, 150, 255, 0.4);
  
  /* Opcional: Un sombreado tipo brillo (glow) */
  box-shadow: 0 0 40px rgba(115, 30, 240, 0.15);
}

.dtrail-banner-radar-icon {
  max-width: none;
  width: 98%;
  height: auto;
  object-fit: contain;
}

.dtrail-banner-corner {
  position: absolute;
  bottom: 16px;
  right: clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .dtrail-banner-card {
    grid-template-columns: 1fr;
    padding: 0 28px;
  }

  .dtrail-banner-corner {
    display: none;
  }
}

/* Título de Seccion */


/* Tarjeta Principal */
.featured-game-card {
  display: flex;
  align-items: center;
  gap: 26px;
  background: radial-gradient(circle at center, #2B0B63 0%, #120429 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(69, 15, 150, 0.25);
  overflow: hidden;
}

.featured-game-card .game-card-media { min-width: 250px; }

.popular-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  max-width: 1150px;   /* equivale aprox. a 3×350px + 2×50px de gap */
  margin: 0 auto;
}


.game-card-media {
  flex: 1;
  min-width: 300px;
}

.game-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Contenido */
.game-card-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-tagline {
  font-family: var(--font-subtitle); /* Sora */
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
}

.game-description {
  font-family: var(--font-body); /* Plus Jakarta Sans */
  font-size: 1.1rem;
  color: #A1A1AA;
  line-height: 2;
}

/* Boton de Steam */
.btn-steam {
 display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 28px;

  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px; 
  color: #FFFFFF;
  font-family: var(--font-subtitle); 
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;;
}

.btn-steam:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.steam-icon {
  width: 40px;
  height: 40px;
}


/* SECCION DE SERVICIOS */

.services-section {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 8vw, 110px) clamp(12px, 4vw, 20px) clamp(60px, 10vw, 180px);   
  overflow: hidden;
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/images/fondo_demoncitos.png');
  background-size: 240%;
  background-position: center center;
  background-attachment: fixed;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
}

.services-section .container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 2;
  margin: 0 0 4px 0;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  font-family: var(--font-subtitle); /* Sora */
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-secondary-secondary);
  line-height: 1.2;
  margin: 0 0 24px 0;
  transition: color 0.2s ease;
}

.section-description {
  font-family: var(--font-body); /* Plus Jakarta Sans */
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.services-action {
  margin-top: 20px;
}

/* carrusel de marcas */

.carousel-section {
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
  align-items: center;
  
}

.carousel-track {
  display: flex;
  width: max-content;  
  animation: scroll-infinite 25s linear infinite;
  align-items: center;
}

.carousel-slide {
  display: flex;
  align-items: center;
  gap: 50px;  /* Espacio entre logos */
  padding-right: 40px;
}

.carousel-slide img {
  height: 60px;
  width: 100px;
  object-fit: contain;
  flex-shrink: 0;

  filter: grayscale(100%) brightness(0) invert(50%);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.carousel-slide img:hover { /*al pasar el cursor por encima*/
  filter: grayscale(100%) brightness(0) invert(85%);
  opacity: 2;
}
/* Animación fluida al -50% */
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CTA CONTACTO (antes de footer) */

.cta-section {
  max-width: 1200px;
  margin: 100px auto 40px;   
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/*Footer demon games*/

.footer-games {
  border-top: 1px solid var(--border-color);
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px) 32px;
  background-color: var(--bg-dark);
}

.games-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 6vw, 96px) clamp(24px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
}

.footer-games-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-games-logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.footer-games-logo-link:hover {
  opacity: 0.8;
}

.footer-games-logo-img {
  width: auto;
  height: min(180px, 28vw);
  display: block;
}

.footer-games-social {
  display: flex;
  gap: 12px;
}

.footer-games-social .social-btn {
  width: 28px;
  height: 28px;
}

.footer-games-social .social-icon-img {
  width: 28px;
  height: 28px;
}

/* Nuevas columnas de navegación */
.footer-games-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-games-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-games-col a {
  min-height: 28px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-games-col a:hover {
  color: var(--primary-purple-hover);
}

.demon-points-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  gap: 3px;
  min-width: 210px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 207, 64, 0.55);
  border-radius: var(--radius-card);
  background: rgba(24, 18, 34, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demon-points-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demon-points-notification strong {
  color: #ffd34e;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.demon-points-notification span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
}

.sections-info {
  display: flex;
  gap: 10px;
}

.sections-info a {
  color: var(--text-primary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.sections-info a:hover {
  color: var(--primary-purple-hover);
  text-decoration: underline;
}

.footer-logo {
  height: 70px;
  margin-bottom: 20px;
}

.copyright {
  color: var(--text-primary);
  font-size: 0.80rem;
}

.privacy-link {
  color: var(--red-secondary);
  text-decoration: none;
}

.privacy-link:hover {
  color: var(--red-secondary-hover);
  text-decoration: underline;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.social-icons {
  display: flex;
  flex-direction: row; /* vertical */
  gap: 15px;          /* hace espacio en los iconos */
  align-items: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease; 
}

.social-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.social-btn:hover {
  border-color: #450F96;
  box-shadow: 0 0 12px rgba(69, 15, 150, 0.8),
              0 0 20px rgba(69, 15, 150, 0.4);
  transform: translateY(2px); /* effecto para abajo */
}

.location-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.80rem;
  text-align: justify;
}

/*Footer en juegos (solo los botones)*/
.games-footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}


/*Seccion de sobre nosotros*/

.about-us-section {
  background-size: 230%;
  background-position: center center;
  padding-left: 150px; 
}

.about-us-intro h1,
.about-us-intro h2,
.about-us-title {
  margin: 0 auto;
  max-width: 2000px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.5rem);   
  line-height: 1.2;
}

/* --- Cuadrícula de Fotos Grupales (Estilo Bento Grid) --- */
.team-group-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: none;     
  margin: 0;         
}

.team-group-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.group-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-surface);
  background: rgba(16, 5, 37, 0.6);
  aspect-ratio: 16 / 10;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}

.group-photo-card:hover {
  transform: translateY(2px);
  border-color: var(--primary-purple-hover);
  box-shadow: 0 12px 28px rgba(122, 50, 214, 0.25);
}

.group-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-us-description {
  margin-top: 20px;
  color: var(--text-secondary);
}


.team-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 28px 100px;
  text-align: center;
}

.team-section .team-divider:last-child {
  margin-bottom: 0;
  margin-top: 60px;
}


.team-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  margin: 0 0 56px;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.team-grid {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  animation: team-carousel-scroll var(--team-carousel-duration, 48s) linear infinite;
  will-change: transform;
}

.team-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.team-carousel.is-dragging { cursor: grabbing; }

.team-carousel-group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 28px;
  padding: 12px 14px 24px;
}

@keyframes team-carousel-scroll {
  to { transform: translateX(-50%); }
}

/* Para la foto de los miembros del equipo */

.team-member {
  flex: 0 0 clamp(240px, 24vw, 290px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 24px 20px 34px;
  border: 1px solid rgba(198, 167, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 19, 48, 0.96), rgba(17, 17, 20, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}


.team-member:hover {
  transform: translateY(-6px);
  border-color: rgba(186, 126, 255, 0.46);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(167, 113, 255, 0.18);
}

.team-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(186, 126, 255, 0.42);
  box-shadow: 0 10px 28px rgba(88, 46, 160, 0.3);
}


.team-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #6323c9 0%, #450f96 100%);
  box-shadow: 0 0 20px rgba(69, 15, 150, 0.5);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.team-role {
  font-family: var(--font-subtitle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-purple-hover);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.team-name {
  font-family: var(--font-subtitle);
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  max-width: 240px;
}


.team-linkedin {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid rgba(198, 167, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-linkedin:hover {
  color: var(--text-secondary);
  border-color: var(--primary-purple-hover);
  background: var(--primary-purple);
}

/* Página Sobre Nosotros */

.about-us-page {
  overflow: hidden;
}

.about-us-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 24px 100px;
  background: var(--bg-dark); /* negro/morado muy oscuro, mismo tono donde está el texto */
}

.about-us-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
  90deg,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, 0.5) 48%,
    black 68%,
    black 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.5) 48%,
    black 68%,
    black 100%
  );
}

.mission-title {
  font-size: 2.5rem;
}

.about-us-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  align-items: center;
  gap: 48px;
  max-width: 1000px;
}

.about-us-hero-copy { position: relative; z-index: 1; }
.about-us-hero-image { justify-self: end; display: block; width: min(100%, 280px); max-height: 450px; object-fit: contain; transform: translate(480px, -10px); filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.45)); }
.about-us-eyebrow {
  margin: 0 0 14px;
  color: var(--primary-purple-hover);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-us-eyebrow-history {
  margin: 0 0 24px;
  color: var(--primary-purple-hover);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

.about-us-hero h1 { max-width: 1000px; margin: 0; color: var(--text-primary); font-family: var(--font-heading); font-size: clamp(1rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: 0; word-spacing: 0.08em; }
.about-us-lead { max-width: 1000px; margin: 28px 0 0; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }
.about-us-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.about-us-intro, .about-us-values { padding: 94px 24px; }

.about-us-history-content {
  max-width: 1100px;
  margin-inline: auto;
}

.eyebrow-date {
  margin-left: 380px;   
  color: var(--primary-purple-hover);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-us-history .about-us-eyebrow {
  color: var(--secondary-purple);
  font-family: var(--font-subtitle);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);   
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.about-us-history h2 {
  max-width: 1000px;
  margin: 0 0 16px;                         
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);      /* antes: 2.8rem–5.8rem */
  line-height: 1.05;
  letter-spacing: 0;
}

.about-us-history p:not(.about-us-eyebrow) {
  max-width: 1000px;
  margin: 0;
  color: #d9cde7;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);     /* antes: 1.05rem–1.42rem */
  line-height: 1.5;
  text-align: justify;
}

.about-us-history p + p {
  margin-top: 4px;
}

.about-us-cta {
  max-width: 1400px;     
  margin: 40px auto;
  padding: 0;
}

.about-us-cta-card {
  width: 100%;
  max-width: 1300px;      
  margin: 0 auto;
  padding: 20px 48px;     
  box-sizing: border-box;
  border-radius: var(--radius-card);   
  background: url('../assets/images/fondo_sobre_nosotros.png') center / cover no-repeat;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.about-us-cta-content {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.about-us-cta h1 {
  max-width: 100%;
  margin: 0 0 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 2.4rem;    
  line-height: 1.2;
  letter-spacing: 0;
}

.about-us-cta p {
  max-width: 650px;
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.about-us-cta-actions {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 0;
}

.about-us-cta-actions .btn {
  min-width: 0;
  min-height: 0;
  height: 42px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.about-us-cta-actions .btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.about-us-cta-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}


.about-us-intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);  /* antes: minmax(0, 1fr) solo */
  align-items: center;
  gap: 40px;
  max-width: 1250px;
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px solid rgba(210, 174, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(73, 22, 137, 0.38), rgba(16, 5, 37, 0.76));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.about-us-intro-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(#ca9dff, #7a32d6);
}
.about-us-intro h2, .about-us-section-title { margin: 0; color: var(--text-primary); font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; }
.about-us-intro h2 { max-width: 650px; margin-inline: auto; }
.about-us-copy { max-width: 720px; margin-inline: auto; }
.about-us-copy p { margin: 0 0 22px; color: #e6dcef; font-size: 1.04rem; line-height: 1.8; }
.about-us-copy p:last-child { margin-bottom: 0; }

.about-us-values { background: rgba(76, 22, 142, 0.16); border-block: 1px solid rgba(202, 157, 255, 0.13); }
.about-us-values .container { max-width: 1120px; margin-inline: auto; }
.about-us-section-title { margin-bottom: 36px; }
.about-us-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-us-value-card { min-height: 220px; padding: 28px; border: 1px solid rgba(210, 174, 255, 0.2); border-radius: 18px; background: linear-gradient(145deg, rgba(75, 20, 142, 0.55), rgba(20, 5, 47, 0.7)); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.about-us-value-card:hover, .about-us-value-card:focus-visible { transform: translateY(-8px); border-color: rgba(216, 177, 255, 0.65); box-shadow: 0 18px 32px rgba(8, 2, 22, 0.35), 0 0 22px rgba(143, 67, 229, 0.2); }
.about-us-value-card > span { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(186, 126, 255, 0.18); color: #d9b9ff; font-size: 1.3rem; }
.about-us-value-card h3 { margin: 24px 0 10px; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.12rem; }
.about-us-value-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.team-section { width: 100%; max-width: none; padding: 94px 0; }
.team-section > .about-us-eyebrow { display: block; text-align: center; }
.team-section > .team-title { text-align: center; }
.team-title { margin-bottom: 56px; }
.team-member { width: auto; }
.team-icon { display: grid; place-items: center; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.1rem; }
.team-name { font-size: 1rem; color: var(--text-primary); }

.interns-section {
  padding: 80px 24px;
  background: rgba(76, 22, 142, 0.12);
  border-block: 1px solid rgba(202, 157, 255, 0.13);
}
.interns-section-inner { max-width: 1520px; margin: 0 auto; text-align: center; }
.interns-section-inner > .about-us-eyebrow { display: block; text-align: center; }
.interns-title { margin-bottom: 14px; }
.interns-intro { max-width: 620px; margin: 0 auto 32px; color: var(--text-secondary); line-height: 1.7; }
.interns-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.interns-gallery-item { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border: 1px solid rgba(198, 167, 255, 0.2); border-radius: 18px; background: var(--bg-surface); }
.interns-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.interns-gallery-item:nth-child(2) img { object-position: 20% center; }
.interns-gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .about-us-hero { padding: 82px 20px 76px; }
  .about-us-hero::after { inset: 22px -20% auto auto; width: 300px; }
  .about-us-hero-content { grid-template-columns: 1fr; gap: 36px; }
  .about-us-hero-image { justify-self: center; width: min(72vw, 250px); max-height: 360px; order: -1; transform: none; }
  .about-us-intro, .about-us-values { padding: 66px 20px; }
  .about-us-history { padding: 66px 20px 72px; background-size: 1000px auto; }
  .about-us-cta { padding: 12px 20px 66px; }
  .about-us-cta-card { border-radius: 24px; }
  .about-us-cta-actions { gap: 14px; margin-top: 34px; }
  .about-us-cta-actions .btn { width: 100%; }
  .about-us-history h2 { font-size: clamp(2.7rem, 14vw, 4.4rem); line-height: 1; }
  .about-us-history p:not(.about-us-eyebrow) { font-size: 1rem; line-height: 1.55; }
  .about-us-intro-grid { padding: 38px 30px 38px 34px; }
  .about-us-copy { padding-left: 0; border-left: 0; }
  .about-us-intro-grid, .about-us-values-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-carousel-group { gap: 20px; }
  .team-member { flex-basis: min(78vw, 300px); }
  .about-us-value-card { min-height: 0; }
  .team-section { padding: 66px 20px; }
  .team-member { min-height: 240px; padding: 22px 18px 32px; }
  .team-avatar { width: 96px; height: 96px; }
  .interns-section { padding: 66px 20px; }
  .interns-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 420px) {
  .interns-gallery { grid-template-columns: 1fr; }
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  max-width: 1200px; 
  margin: 0 auto;
}


/* Card para sobre nosotros eventos — FLIP CARD */

.event-spotlight-card {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 5 / 3.9; 
  text-decoration: none;
  perspective: 1800px;
}
.events-section {
  padding: 60px 20px 100px; 
  background-color: var(--bg-dark);
}

.events-section .section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.3rem;
  margin: 0; /* resetea cualquier margen por defecto del h1 */
}

.events-subtitle {
  max-width: 1060px;
  margin: 8px auto 40px; /* el "8px" de arriba controla la cercanía al título */
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

h1.section-title.section-title {
  font-weight: 800 !important;
}

.events-section {
  padding: 100px 20px;
  background-color: var(--bg-dark);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px; /* más pegadas entre sí */
}

.event-spotlight-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--bg-dark), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.event-spotlight-card:hover .event-spotlight-card-inner {
  transform: rotateY(180deg);
  box-shadow: var(--primary-purple-hover) 0px 0px 20px, rgba(0, 0, 0, 0.4) 0px 10px 30px;
}

.event-spotlight-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  backface-visibility: hidden;
}

.event-spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(69, 15, 150, 0.3) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.event-spotlight-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-purple);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
}

.event-spotlight-front .event-spotlight-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
}

.event-spotlight-preview {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-spotlight-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(145deg, var(--primary-purple), var(--primary-purple-dark));
  transform: rotateY(180deg);
}

.event-spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.event-spotlight-back .event-spotlight-title {
  margin-bottom: 4px;
}

.event-spotlight-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.event-spotlight-back .event-spotlight-desc {
  display: block;
  overflow: visible;
}

.event-spotlight-cta {
  margin-top: 8px;
  color: var(--text-secondary-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Sección de juegos */



.game-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #050505;
  margin-top: 40px; 
}

.banner-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  height: 100%;
  padding: 20px 0 48px;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.banner-track.is-snapping {
  transition: none;
}

.banner-slide {
  position: relative;
  flex: 0 0 min(82vw, 1520px);
  height: 450px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  background: #111;
  opacity: 0.38;
  filter: brightness(0.45);
  transform: scale(0.96);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.banner-slide.active {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1);
  z-index: 1;
}

.banner-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  display: block;
}

.banner-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.82) 27%, rgba(8, 8, 8, 0.18) 68%, rgba(8, 8, 8, 0.04) 100%);
}

.banner-slide-content {
  position: absolute;
  top: 60%;
  left: clamp(24px, 3vw, 56px);
  transform: translateY(-50%);
  width: min(38%, 480px);
  z-index: 1;
}

.banner-slide-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner-slide-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin: 0 0 16px;
  font-weight: 800;
}

.banner-slide-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 24px;
}

.banner-game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -10px 0 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.banner-game-stat {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1.2;
}

.banner-game-stat-icon {
  grid-row: span 2;
  color: #ffd54a;
  font-size: 1rem;
}

.banner-game-stat:nth-child(2) .banner-game-stat-icon {
  color: #57e6a1;
  font-size: 0.7rem;
}

.banner-game-stat:nth-child(3) .banner-game-stat-icon {
  color: #b9a3ff;
}

.banner-game-stat strong {
  font-size: 0.88rem;
}

.banner-game-stat span:last-child {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

/* Indicadores (puntos) para saber en qué slide estás */
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 10px;
  z-index: 4;
  transform: translateX(-50%);
}

.banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.banner-dot.active {
  background: #ffd400;
  transform: scale(1.2);
}

.banner-dot[aria-current="true"] {
  background: #ffd400;
  transform: scale(1.2);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.06);
}

.banner-arrow-prev {
  left: 18px;
}

.banner-arrow-next {
  right: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .banner-track,
  .banner-slide {
    transition-duration: 0.01ms;
  }
}


/*diseño de pantalla completa juegos*/

.game-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #17002f;

  transform: translateZ(0);
  will-change: transform;
  contain: paint;
}

.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  transform: translateZ(0);
}

@media (max-width: 700px) {
  .game-frame {
    height: min(80vh, 720px);
    min-height: 500px;
    aspect-ratio: auto;
  }
}

.game-controls-bar {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 74px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: #17002f;
}

.game-controls-bar::before {
  position: absolute;
  inset: 8px 8px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  content: '';
  pointer-events: none;
}

.game-controls-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.game-controls-back,
.game-toolbar-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.game-controls-back:hover,
.game-toolbar-action:hover {
  background: var(--primary-purple-hover);
}

.game-toolbar-action.active {
  background: var(--primary-purple);
  color: #fff;
}

.game-controls-back svg,
.game-toolbar-action svg {
  width: 25px;
  height: 25px;
}

.game-toolbar-action.active svg {
  fill: currentColor;
}

.game-controls-back:focus-visible,
.game-toolbar-action:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.game-controls-label {
  font-family: var(--font-subtitle);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.game-fullscreen-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.game-fullscreen-btn:hover {
  background: var(--primary-purple-hover);
}

.game-fullscreen-btn:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.game-fullscreen-btn svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .game-controls-bar {
    min-height: 64px;
    padding: 8px 10px;
  }

  .game-controls-bar::before {
    inset: 6px 6px;
  }

  .game-controls-back,
  .game-toolbar-action,
  .game-fullscreen-btn {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .game-controls-actions {
    gap: 2px;
  }

  .game-controls-back svg,
  .game-toolbar-action svg,
  .game-fullscreen-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* En pantalla completa, el iframe llena todo y la barra se queda pegada abajo */
.game-frame-wrapper:fullscreen {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: var(--bg-dark);
}

.game-frame-wrapper:fullscreen .game-frame {
  flex: 1;
  aspect-ratio: auto;
}

.game-frame-wrapper:fullscreen .game-controls-bar {
  flex-shrink: 0;
}

.game-controls-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

#game-details {
  scroll-margin-top: 96px;
}


/* Buscador */

/* CATÁLOGO: sección, título */
.catalog-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 20px);
  background-size: 100%;
  background-position: center center;
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 40px;
}



/*FILTROS DE CATEGORÍA */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/*Vista de cada juego*/

.game-player-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 40px 20px;
  box-sizing: border-box;
  will-change: transform;

  background: 
    linear-gradient(180deg, rgba(11, 11, 14, 0.85) 0%, rgba(16, 8, 31, 0.95) 100%),
    url('/assets/images/degradado_demontrail.png') center/cover no-repeat;
}

.game-player-section .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.game-player-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 0 auto 24px;
}


.game-coming-soon {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.game-coming-soon-image,
.game-coming-soon-overlay {
  position: absolute;
  inset: 0;
}

.game-coming-soon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-coming-soon-overlay {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(8, 5, 17, 0.78), rgba(27, 10, 38, 0.58));
  color: var(--text-primary);
  font-family: var(--font-body);
  text-align: center;
  z-index: 1;
}

.game-coming-soon-kicker {
  margin: 0 0 10px;
  color: #ffd54a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-coming-soon-overlay h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.game-coming-soon-overlay > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.muffin-details {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.muffin-overview-card,
.muffin-info-card,
.muffin-tutorial-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  background: rgba(22, 15, 35, 0.8);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.muffin-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.muffin-section-kicker {
  margin: 0 0 8px;
  color: #c4a6ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.muffin-overview-heading h2,
.muffin-info-card h2,
.muffin-download-card h2,
.muffin-tutorial-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.muffin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.muffin-meta span:first-child { color: #ffd54a; }
.muffin-meta span { display: inline-flex; align-items: center; gap: 5px; }
.muffin-meta img { width: 17px; height: 17px; object-fit: contain; }

.muffin-cover-art {
  width: min(180px, 33%);
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
}

.muffin-copy {
  display: grid;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.muffin-copy h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.muffin-copy p { margin: 0 0 8px; }
.muffin-copy strong { color: var(--text-primary); }

.muffin-benefits {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.muffin-info-card h2,
.muffin-tutorial-card h2 { margin-bottom: 18px; }

.muffin-info-list { margin: 0; }
.muffin-info-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1.2fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.muffin-info-list dt { color: var(--text-secondary); }
.muffin-info-list dd { margin: 0; color: var(--text-primary); font-weight: 600; }

.muffin-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(183, 128, 255, 0.4);
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, rgba(87, 42, 142, 0.85), rgba(35, 17, 58, 0.9));
}

.muffin-store-links { display: flex; flex-wrap: wrap; gap: 10px; }
.muffin-store-links a,
.muffin-store-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.muffin-store-links img { width: 22px; height: 22px; object-fit: contain; }
.muffin-store-disabled { color: rgba(255, 255, 255, 0.6); }

.muffin-tutorial-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: 12px;
}
.muffin-tutorial-preview img { width: 100%; height: 100%; object-fit: cover; }
.muffin-tutorial-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 25, 0.3);
}
.muffin-tutorial-preview span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  z-index: 1;
}

.flappy-trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  background: #000;
}

.flappy-tutorial-card .muffin-tutorial-preview {
  display: none;
}

@media (max-width: 700px) {
  .muffin-overview-heading,
  .muffin-download-card { align-items: flex-start; flex-direction: column; }
  .muffin-cover-art { width: 130px; }
  .muffin-info-list div { grid-template-columns: 1fr; gap: 4px; }
}


/* PLAYER DE JUEGO */

.game-player-section {
  padding: 24px;
}

.game-player-layout {
  display: flex;
  gap: 90px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Columna izquierda: el juego */
.game-player-main {
  flex: 1;
  min-width: 0; /* evita que el iframe empuje el layout */
}

.game-inline-ad {
  position: relative;
  display: block;
  width: min(100%, 900px);
  aspect-ratio: 3.5 / 1;
  min-height: 0;
  margin: 0 auto 20px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.game-inline-ad-label {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-inline-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

a.btn.game-back-btn {
  display: block;
  width: fit-content;
  margin-inline: auto; /* Centra el elemento horizontalmente */
}

.game-sidebar {
  width: 450px;
  flex-shrink: 0;
  align-self: stretch; /* se estira para igualar la altura de .game-player-main */
}

.game-sidebar-ad {
  position: relative;
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 969 / 1388;
  min-height: 0;
  margin: 0 auto 24px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
  background: transparent;
}

.game-sidebar-ad-label {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-sidebar-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-game-title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.game-sidebar h2 {
  margin: 0 0 20px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 2.3;
}


.game-sidebar-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sidebar-game-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.5s ease;
}

.sidebar-game-card:hover {
  transform: translateY(-3px);
}

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

.sidebar-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
  pointer-events: none;
}

.sidebar-game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  z-index: 1;
}

.sidebar-game-title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-subtitle);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card compacta horizontal para el sidebar */


.sidebar-game-image:hover {
  
  border-color: var(--primary-purple-hover);
}


/* ===== GRID DE CARDS ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 4vw, 24px);
}

.catalog-empty {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 40px;
}

/* Adaptaciones para Dispositivos Moviles */

@media (max-width: 768px) {
  .educativo-page .navbar .nav-container { height: auto; padding-block: 8px; }
  .educativo-page .navbar .logo-img { height: 64px; }

  .nav-container {
    flex-wrap: wrap;
    gap: 16px;
    padding-left: 76px;
  }

  body.has-navbar-links .nav-container {
    padding: 16px 24px;
  }

  .navbar-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
    order: 3; /* pasa a una segunda fila, debajo del logo y links */
  }

  .hero-title {
    font-size: 1.25rem;
  }



 .hero-actions, .cta-buttons {
    flex-direction: column;
    width: 75%;
    align-items: center; 
    margin: 0 auto;      
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-right {
    align-items: flex-start;
  }

  /*Carousel responsive, más pequeño para que se vea mejor en mobile */

  .carousel-section {
    padding: 50px 0; 
  }

  .carousel-slide {
    gap: 28px;        
    padding-right: 24px;
  }

  .carousel-slide img {
    height: 36px;   
    width: 60px;      
  }

    /* CTA de contacto: apila texto y logo/botón en columna */
    .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 50px 24px;
  }

  .cta-card-content {
    text-align: center;
  }

  .cta-card p {
    margin: 0 auto;
  }

}

@media (max-width: 600px) {
  body.has-navbar-links {
    padding-top: 104px;
  }

  body.has-navbar-links .nav-container {
    gap: 8px 12px;
    padding: 10px 16px;
  }

  body.has-navbar-links .nav-links {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px clamp(8px, 2vw, 14px);
  }

  body.has-navbar-links .nav-links a {
    font-size: clamp(0.72rem, 3vw, 0.9rem);
    white-space: nowrap;
  }
}

/* Próximo Lanzamiento */
@media (max-width: 1024px) {

  .featured-game-banner-section {
    padding: 50px 20px; 
  }

  .popular-section-title {
    padding-left: 0;
    text-align: center;
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  }

  .popular-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .featured-game-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .event-card {
    flex-direction: column;
    gap: 16px;
  }

  .event-card .game-card-media {
    width: 100%;
    min-width: 0;
  }

  .game-card-media {
    width: 100%;
    min-width: 0;
  }

  .game-card-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .game-tagline {
    font-size: 1.15rem;
  }

  .game-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn-steam {
    width: 65%;
    justify-content: center;
  }

  .game-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .featured-badge-wrapper {
    top: -15px;
    right: -5px;
  }

  .featured-badge {
    width: 100px;
  }
}

/* Catálogo de juegos y populares: mínimo 2 columnas en tablet/móvil */
@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 20px);
  }

   .popular-games-grid {
    grid-template-columns: 2fr;
    gap: 20px;
    padding: 0 30px;
  }
}

/* 1 columna en móvil pequeño */
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 18px);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}

/* Servicios: 1 columna en tablet/móvil */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/*catalogo de juegos por categorias*/

@media (max-width: 768px) {
  .catalog-rows {
    padding: 20px 16px;
  }

  .category-row-track .catalog-card {
    flex: 0 0 160px;
  }

  .row-arrow {
    display: none; 
  }
}

/* Responsive: en móvil, el sidebar baja debajo del juego */
@media (max-width: 900px) {
  .game-player-layout {
    flex-direction: column;
  }

  .game-sidebar {
    width: 100%;
  }

  .game-sidebar-ad {
    width: min(100%, 220px);
  }

  .game-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    padding-bottom: 8px;
  }

  .sidebar-game-card {
    flex-direction: column;
    text-align: center;
    flex: 0 0 100px;
  }

  .sidebar-game-img {
    width: 100%;
    height: 80px;
  }
}

/* =========================================
   BUSCADOR EN NAVBAR
========================================= */

.navbar-search {
  position: absolute;
  left: 50%;
  width: min(500px, calc(100% - 360px));
  display: flex;
  justify-content: center;
  margin: 0;
  transform: translateX(-50%);
}

.navbar-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar-search-wrapper:hover {
  filter: brightness(1.12);
}

.navbar-search input {
  width: 100%;
  height: 42px;

  padding: 0 20px 0 45px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.07);

  color: white;

  font-size: 14px;
  font-family: var(--font-body);

  outline: none;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.navbar-search input:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.navbar-search-wrapper:focus-within {
  transform: translateY(-1px);
}

.navbar-search input:focus {
  border-color: var(--primary-purple-hover);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* ICONO BUSCAR en navbar juegos */

.navbar-search-icon {
  position: absolute;

  left: 15px;
  top: 50%;

  width: 18px;
  height: 18px;

  transform: translateY(-50%);

  fill: none;

  stroke: currentColor;

  stroke-width: 2;

  color: rgba(255, 255, 255, 0.7);

  pointer-events: none;
}

.navbar-search input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: grayscale(1) brightness(1.8);
}

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


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

@media (max-width: 860px) {
  .about-us-intro-grid {
    grid-template-columns: 1fr;
  }

  /* la fecha ya no necesita empujarse con margin fijo */
  .eyebrow-date {
    margin-left: 0;
  }

  .team-group-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .group-photo-card.featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;  
  }
}

@media (max-width: 480px) {
  .team-group-gallery {
    grid-template-columns: 1fr;
  }

  .group-photo-card {
    aspect-ratio: 16 / 10;
  }

  .group-photo-card.featured {
    aspect-ratio: 16 / 10;  
  }
}
.about-us-description {
  margin-top: 20px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {

  .navbar-search {
    position: relative;
    left: auto;
    width: 100%;
    transform: none;
  }

  .navbar-search {

    margin: 0 10px;

  }

  .navbar-search input {

    height: 38px;

    font-size: 13px;

  }

  .navbar-login-btn {

    width: 40px;

    padding: 0;

  }

  .navbar-register-btn {
    height: 38px;
    margin-left: 6px;
    padding: 0 10px;
    font-size: 12px;
  }

  .navbar-login-btn span {

    display: none;

  }

}
@media (max-width: 768px) {
  .game-banner {
    height: 420px;
  }

  .banner-track { gap: 12px; padding-bottom: 42px; }
  .banner-slide { flex-basis: 84vw; height: 340px; border-radius: 18px; }
  .banner-slide-content {
    left: 22px;
    width: min(70%, 420px);
  }

  .banner-slide-title {
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  .banner-slide-desc {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .banner-game-stats {
    gap: 6px 10px;
    margin-bottom: 16px;
  }

  .banner-game-stat {
    font-size: 0.7rem;
  }

  .banner-game-stat span:last-child {
    font-size: 0.62rem;
  }

  .banner-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .banner-arrow-prev {
    left: 8px;
  }

  .banner-arrow-next {
    right: 8px;
  }

  .banner-dots {
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .game-banner { height: 390px; }
  .banner-slide { flex-basis: 88vw; height: 320px; }
  .banner-slide-content { left: 18px; width: 76%; }
  .banner-slide-overlay { background: linear-gradient(90deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.68) 58%, rgba(8, 8, 8, 0.2)); }
  .banner-game-stats { display: none; }
  .banner-arrow { width: 34px; height: 34px; font-size: 1.5rem; }
}


@media (max-width: 900px) {
  .competition-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .competition-section {
    margin-top: 20px;
    padding: 20px 16px 22px;
    border-radius: 12px;
  }

  .competition-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .competition-status {
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  }

  .competition-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(8px, 2vw, 10px);
    padding-bottom: 4px;
  }

  .competition-card {
    min-height: clamp(140px, 30vw, 180px);
  }
}

@media (max-width: 500px) {
  .competition-section {
    margin-top: 16px;
    padding: 18px 12px 20px;
  }

  .competition-header {
    flex-direction: column;
    gap: 10px;
  }

  .competition-header h2 {
    font-size: clamp(1.2rem, 2.8vw, 1.35rem);
  }

  .competition-card {
    min-height: 140px;
  }
}
.competition-badge,
.competition-card-name {
  position: absolute;
  z-index: 1;
}

.games-rewards-section {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 clamp(40px, 7vw, 72px);
}

.games-rewards-banner {
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius-card);
  background: linear-gradient(110deg, #51439c 0%, #914087 100%);
  color: var(--text-primary);
}

.games-rewards-banner h2,
.games-rewards-banner h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.games-rewards-banner h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.games-rewards-banner h3 {
  margin: 0 0 24px;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
}

.games-rewards-toggle,
.games-rewards-rankings {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: 600 1.25rem/1.4 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.games-rewards-expand-wrap {
  display: flex;
  justify-content: center;
}

.games-rewards-expand-wrap[hidden],
.games-rewards-expand[hidden] {
  display: none;
}

.games-rewards-toggle:hover,
.games-rewards-rankings:hover {
  background: rgba(255, 255, 255, 0.14);
}

.games-rewards-details {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 28px;
  opacity: 1;
  transition:
    grid-template-rows 380ms ease,
    margin-top 380ms ease,
    opacity 260ms ease,
    visibility 0s linear 0s;
  visibility: visible;
}

.games-rewards-details.is-collapsed {
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition:
    grid-template-rows 380ms ease,
    margin-top 380ms ease,
    opacity 260ms ease,
    visibility 0s linear 380ms;
  visibility: hidden;
}

.games-rewards-details-inner {
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.games-rewards-content {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.games-rewards-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.games-rewards-copy {
  color: var(--text-primary);
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
}

.games-rewards-copy p {
  margin: 0 0 22px;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.45;
}

.games-rewards-copy ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
}

.games-rewards-copy li {
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  line-height: 1.5;
}

.games-rewards-copy li::before {
  content: "· ";
  font-weight: 800;
}

.games-rewards-copy .games-rewards-callout {
  margin-bottom: 18px;
  font-weight: 700;
}

.games-rewards-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.games-rewards-collapse {
  background: var(--text-primary);
  color: #51439c;
  font-weight: 700;
}

.games-rewards-collapse:hover {
  background: rgba(255, 255, 255, 0.86);
}

@media (prefers-reduced-motion: reduce) {
  .games-rewards-details,
  .games-rewards-details.is-collapsed {
    transition: none;
  }
}


.catalog-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px;
}

.category-row-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.category-row-wrapper {
  position: relative;
}

.category-row-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.category-row-track::-webkit-scrollbar {
  display: none; 
}

.category-row-track .catalog-card {
  flex: 0 0 250px; 
}

/* Ajuste de trofeo en movil */
@media (max-width: 600px) {
  .competition-header-badge-img {
    height: 48px;
  }

  .games-rewards-banner {
    padding: 24px 18px;
  }

  .games-rewards-banner h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .games-rewards-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .games-rewards-card {
    width: min(260px, 72%);
    margin: 0 auto;
  }

  .games-rewards-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .games-rewards-toggle,
  .games-rewards-rankings {
    min-height: 50px;
    padding: 8px 22px;
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  .games-rewards-copy p {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }

  .games-rewards-copy li {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  }
}

@media (max-width: 420px) {
  .games-rewards-card {
    width: min(240px, 78%);
  }

  .games-rewards-copy {
    font-size: 1rem;
  }
}


/* Responsive footer demon games */
@media (max-width: 500px) {
  .footer-games {
    padding: 28px 14px 24px;
  }

  .demon-points-notification {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }

  .games-footer-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px 18px;
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-games-brand {
    grid-column: 1 / -1;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .footer-games-logo-img {
    width: min(132px, 38vw);
    height: auto;
  }

  .footer-games-social {
    justify-content: center;
    gap: 14px;
  }

  .footer-games-col {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 6px;
  }

  .games-footer-main > .footer-games-col:nth-child(3) {
    align-items: flex-end;
    text-align: right;
  }

  .footer-games-col h4 {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .footer-games-col a {
    min-height: 32px;
    line-height: 1.5;
    display: flex;
    align-items: center;
  }

  .footer-games-col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
  }

  .footer-games-col:last-child h4 {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-games-col:last-child a {
    justify-content: center;
  }

  .games-footer-bottom {
    text-align: center;
  }

  .hero-title {
    font-size: 1.53rem;
  }

}
/* Tablet pequeña (iPad Mini) */
@media (max-width: 768px) {
  .services-section {
    padding: 32px 16px;
  }

}

/* Móvil grande (iPhone 12/13/14) */
@media (max-width: 600px) {
  .services-section {
    padding: 28px 14px;
  }

}

/* Móvil pequeño (iPhone SE) */
@media (max-width: 375px) {
  .services-section {
    padding: 24px 12px;
  }

}

/*Pantallas responsive de error, no compatible y sin conexion*/
@media (max-width: 768px) {
  .status-card {
    padding: 40px 24px;
  }

  .status-icon {
    width: 150px;
    height: 150px;
  }

  .status-actions {
    flex-direction: column;
    width: 100%;
  }

  .status-actions .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .team-member { flex-basis: 260px; }
}

@media (max-width: 500px) {
  .team-member { flex-basis: min(76vw, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  .team-carousel {
    overflow: visible;
  }

  .team-grid {
    display: block;
    width: 100%;
    animation: none;
    will-change: auto;
  }

  .team-carousel-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-inline: 0;
  }

  .team-carousel-group--duplicate {
    display: none;
  }

  .team-member {
    width: auto;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .team-carousel-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 500px) {
  .team-carousel-group {
    grid-template-columns: 1fr;
  }
}


/* --- Responsive carousel de eventos sobre nosotros --- */

/* El flip por hover SOLO en dispositivos que realmente tienen hover (mouse) */
@media (hover: hover) and (pointer: fine) {
  .event-spotlight-card:hover .event-spotlight-card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--primary-purple-hover) 0px 0px 20px, rgba(0, 0, 0, 0.4) 0px 10px 30px;
  }
}

/* En touch (celular/tablet), flip con una clase que activa JS al tocar */
@media (hover: none) {
  .event-spotlight-card.is-flipped .event-spotlight-card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--primary-purple-hover) 0px 0px 20px, rgba(0, 0, 0, 0.4) 0px 10px 30px;
  }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .event-spotlight-card {
    aspect-ratio: 5 / 4.4; /* un poco más alta para que quepa mejor el texto */
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .event-spotlight-card {
    aspect-ratio: 5 / 3.6; /* en una sola columna, más ancha que alta se ve mejor */
  }
  .event-spotlight-back {
    padding: 18px;
  }
  .event-spotlight-title {
    font-size: 1rem;
  }
  .event-spotlight-desc {
    font-size: 0.8rem;
  }
}
@media (max-width: 1000px) {
  .educativo-hero-content { width: 72%; }
  .educativo-hero h1 { font-size: clamp(3rem, 5.5vw, 4.4rem); }
  .educativo-hero-logo { right: 4vw; width: min(30vw, 280px); opacity: 0.55; }
}

@media (max-width: 760px) {
  .educativo-page.has-navbar-links { padding-top: 116px; }
  .educativo-page .navbar .logo-img { height: 40px; }
  .educativo-hero { min-height: 0; padding: 58px 24px 48px; }
  .educativo-hero-content { width: 100%; padding-left: 0; }
  .educativo-hero h1 { max-width: 100%; font-size: clamp(2.35rem, 7vw, 3.25rem); line-height: 1.04; }
  .educativo-hero-logo { right: -18px; bottom: 12px; top: auto; width: 180px; opacity: 0.3; transform: rotate(-8deg); }
  .educativo-hero-orbit { top: auto; right: -72px; bottom: -160px; width: 330px; transform: none; }
  .educativo-hero-note { right: 22px; bottom: 18px; font-size: 0.55rem; }
  .educativo-platforms { padding: 62px 22px 72px; }
  .educativo-platforms-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .educativo-platforms-summary { width: 100%; justify-content: space-between; }
  .educativo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .educativo-card { grid-column: span 1; }

  .educativo-page .navbar .nav-links {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: clamp(14px, 3vw, 22px);
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .educativo-page .navbar .nav-links::-webkit-scrollbar { display: none; }
  .educativo-page .navbar .nav-links a { flex: 0 0 auto; font-size: clamp(0.78rem, 2.8vw, 0.9rem); }
}

@media (max-width: 520px) {
  .educativo-page.has-navbar-links { padding-top: 104px; }
  .educativo-hero { padding: 46px 20px 38px; }
  .educativo-hero h1 { max-width: 100%; font-size: clamp(1.8rem, 8.6vw, 2.55rem); line-height: 1.04; }
  .educativo-hero-logo,
  .educativo-hero-orbit,
  .educativo-hero-note { display: none; }
  .educativo-hero .educativo-eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; }
  .educativo-lead { margin-top: 18px; font-size: 0.98rem; line-height: 1.65; }
  .educativo-hero-cta { margin-top: 24px; }
  .educativo-hero-highlights { gap: 8px; margin-top: 26px; }
  .educativo-hero-highlights li { padding: 6px 10px; font-size: 0.72rem; }
  .educativo-platforms { padding: 50px 18px 60px; }
  .educativo-platforms-heading h2 { font-size: 2rem; }
  .educativo-platforms-heading p { font-size: 0.9rem; }
  .educativo-platforms-summary { align-items: flex-start; gap: 14px; }
  .educativo-platforms-count { flex: 0 0 auto; padding: 8px 10px; }
  .educativo-platforms-count strong { font-size: 1.4rem; }
  .educativo-grid { grid-template-columns: 1fr; }
  .educativo-card { min-height: 350px; grid-column: 1; }
  .educativo-page .about-us-cta { padding-inline: 18px; margin-bottom: 64px; }
  .educativo-page .about-us-cta-card { align-items: flex-start; gap: 22px; padding: 28px 22px; }
  .educativo-page .about-us-cta-content { width: 100%; min-width: 0; }
  .educativo-page .about-us-cta h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .educativo-page .about-us-cta-actions { width: 100%; align-items: stretch; }
  .educativo-page .about-us-cta-actions .btn-primary {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .educativo-page.page-loaded .educativo-hero-content > * {
    animation: none;
  }

  .educativo-hero-cta,
  .educativo-hero-cta span,
  body.has-navbar-links .nav-links a::after,
  .educativo-card,
  .educativo-card-icon {
    transition: none;
  }

  .educativo-hero-cta:hover,
  .educativo-hero-cta:hover span,
  .educativo-page .about-us-cta-actions .btn-primary:hover,
  .educativo-card:hover,
  .educativo-card:active,
  .educativo-card:hover .educativo-card-icon {
    transform: none;
  }
}

@media (max-width: 900px) {
  .popular-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .popular-section-title {
    font-size: 2rem;
    text-align: center;
  }
}

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

  .popular-section-title {
    font-size: 1.7rem;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }
}