:root {
  --c-rojo:   #e03535;
  --c-verde:  #3dcc1e;
  --c-morado: #b87adf;
  --c-azul:   #2277ee;
}
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
body {
  background: #111111;
  color: #ffffff;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
 
.vista { display: none; }
.vista.activa { display: block; }
 
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  padding: 60px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
.formas-fondo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
 
.formas-fondo .hexagono {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.formas-fondo .hexagono:hover { opacity: 1; }
 
.hex-morado { background: var(--c-morado); box-shadow: 0 0 20px #b87adf88; }
.hex-azul   { background: var(--c-azul);   box-shadow: 0 0 20px #2277ee88; }
.hex-verde  { background: var(--c-verde);  box-shadow: 0 0 20px #3dcc1e88; }
.hex-coral  { background: var(--c-rojo);   box-shadow: 0 0 20px #e0353588; }
 
.h-m1{width:120px;height:120px;top:8%;left:5%;animation:flotar-A 22s ease-in-out infinite alternate}
.h-m2{width:80px;height:80px;top:20%;left:15%;animation:flotar-B 18s ease-in-out infinite alternate}
.h-m3{width:100px;height:100px;top:60%;left:8%;animation:flotar-C 25s ease-in-out infinite alternate}
.h-m4{width:70px;height:70px;top:80%;left:25%;animation:flotar-D 20s ease-in-out infinite alternate}
.h-m5{width:90px;height:90px;top:40%;left:2%;animation:flotar-E 17s ease-in-out infinite alternate}
.h-a1{width:110px;height:110px;top:5%;right:8%;animation:flotar-B 24s ease-in-out infinite alternate}
.h-a2{width:75px;height:75px;top:30%;right:5%;animation:flotar-C 19s ease-in-out infinite alternate}
.h-a3{width:95px;height:95px;top:55%;right:12%;animation:flotar-A 21s ease-in-out infinite alternate}
.h-a4{width:65px;height:65px;top:75%;right:3%;animation:flotar-E 23s ease-in-out infinite alternate}
.h-a5{width:85px;height:85px;top:15%;right:25%;animation:flotar-D 16s ease-in-out infinite alternate}
.h-v1{width:100px;height:100px;top:10%;left:40%;animation:flotar-C 20s ease-in-out infinite alternate}
.h-v2{width:70px;height:70px;top:70%;left:50%;animation:flotar-A 26s ease-in-out infinite alternate}
.h-v3{width:115px;height:115px;top:85%;left:70%;animation:flotar-B 18s ease-in-out infinite alternate}
.h-v4{width:60px;height:60px;top:45%;left:30%;animation:flotar-E 22s ease-in-out infinite alternate}
.h-v5{width:80px;height:80px;top:25%;left:55%;animation:flotar-D 19s ease-in-out infinite alternate}
.h-c1{width:90px;height:90px;top:92%;left:15%;animation:flotar-D 17s ease-in-out infinite alternate}
.h-c2{width:75px;height:75px;top:50%;left:70%;animation:flotar-C 23s ease-in-out infinite alternate}
.h-c3{width:105px;height:105px;top:20%;left:80%;animation:flotar-A 21s ease-in-out infinite alternate}
.h-c4{width:65px;height:65px;top:65%;left:90%;animation:flotar-B 25s ease-in-out infinite alternate}
.h-c5{width:85px;height:85px;top:35%;left:60%;animation:flotar-E 20s ease-in-out infinite alternate}
 
@keyframes flotar-A{from{transform:translate(0,0) rotate(0deg)}to{transform:translate(20px,-30px) rotate(15deg)}}
@keyframes flotar-B{from{transform:translate(0,0) rotate(5deg)}to{transform:translate(-25px,20px) rotate(-10deg)}}
@keyframes flotar-C{from{transform:translate(0,0) rotate(-5deg)}to{transform:translate(15px,25px) rotate(20deg)}}
@keyframes flotar-D{from{transform:translate(10px,5px) rotate(0deg)}to{transform:translate(-15px,-20px) rotate(-15deg)}}
@keyframes flotar-E{from{transform:translate(-10px,0px) rotate(10deg)}to{transform:translate(25px,15px) rotate(-5deg)}}
 
.logo {
  width: 120px; height: 180px;
  position: relative; z-index: 2; margin-bottom: 10px;
  filter: drop-shadow(0 0 10px #b87adf) drop-shadow(0 0 20px #2277ee);
}
.circuito {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.12; z-index: 1; pointer-events: none;
}
 
#titulo-interactivo {
  position: relative; z-index: 2;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900; letter-spacing: 0.15em;
  text-transform: uppercase; margin: 10px 0; line-height: 1;
}
#titulo-interactivo span { display: inline-block; transition: color 0.2s, transform 0.2s; }
 
.descripcion-principal {
  font-size: 1.15rem; line-height: 1.6; color: #cccccc;
  max-width: 800px; text-align: center;
  margin: 0 auto 20px auto;
  position: relative; z-index: 5;
}
 
.hero-contenido-layout {
  position: relative; z-index: 5;
  display: flex; justify-content: center;
  max-width: 1100px; width: 100%;
  margin: 90px auto 45px auto;
}
 
.recuadro-concepto-global {
  background-color: rgba(15,15,20,0.82);
  padding: 35px 40px; border-radius: 16px;
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
  width: 100%; backdrop-filter: blur(8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  box-sizing: border-box; pointer-events: none;
}
.recuadro-concepto-global::before {
  content: "";
  position: absolute; top:0;left:0;right:0;bottom:0;
  border-radius: 16px; padding: 2px;
  background: linear-gradient(135deg,#c792f9,#007fff,#39d31c,#e04333);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
 
.recuadro-col-texto { flex: 1.3; text-align: left; pointer-events: auto; }
.subtitulo-construccion { font-size: 1.7rem; color: #fff; margin: 0 0 15px; font-weight: bold; }
.descripcion-concepto { font-size: 1.05rem; line-height: 1.65; color: #e5e5e5; margin: 0; }
.recuadro-col-imagen { flex: 0.7; display: flex; justify-content: center; pointer-events: auto; }
.recuadro-col-imagen img { max-height: 170px; width: auto; display: block; border-radius: 10px; }
 
.boton-centro-hero {
  position: relative; z-index: 5;
  margin-top: 15px; width: 100%;
  display: flex; justify-content: center;
}
 
.btn-componentes {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--c-morado), var(--c-azul));
  color: #fff; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(184,122,223,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-componentes:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 28px rgba(184,122,223,0.6); }
.btn-componentes:active { transform: scale(0.98); }
 
/* GALERÍA */
#galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 32px;
  background: #111111;
  max-width: 1200px;
  margin: 0 auto;
  transition: max-height 0.7s ease, opacity 0.5s ease, padding 0.4s ease;
}
#galeria.abierta {
  max-height: 2000px;
  opacity: 1;
  padding: 32px;
  margin-bottom: 60px;
}
 
.card {
  cursor: pointer; overflow: hidden;
  border-radius: 12px; background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 32px rgba(184,122,223,0.3); border-color: var(--c-morado); }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-titulo { padding: 12px 16px; font-size: 0.9rem; color: #ccc; }
 
/* VISORES */
.visor {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: none; align-items: center; justify-content: center; z-index: 9000;
}
.visor span { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: #fff; cursor: pointer; opacity: 0.8; }
.visor span:hover { opacity: 1; }
.visor img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
 
.visor-galeria {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center; z-index: 9000;
}
.visor-galeria.activo { display: flex; }
.visor-galeria img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.cerrar-visor { position: absolute; top: 20px; right: 28px; font-size: 2.5rem; color: #fff; background: none; border: none; cursor: pointer; opacity: 0.8; }
.cerrar-visor:hover { opacity: 1; }
 
/* 4 RECTÁNGULOS */
.seccion-rectangulos { background: #111111; padding: 80px 32px; }
.fila-rectangulos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.rectangulo-contenedor {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: #1a1a1a;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.rectangulo-contenedor:hover { transform: translateY(-4px); }
.rec-morado { border-color: #b87adf44; } .rec-morado:hover { box-shadow: 0 8px 32px #b87adf55; }
.rec-azul   { border-color: #2277ee44; } .rec-azul:hover   { box-shadow: 0 8px 32px #2277ee55; }
.rec-verde  { border-color: #3dcc1e44; } .rec-verde:hover  { box-shadow: 0 8px 32px #3dcc1e55; }
.rec-coral  { border-color: #e0353544; } .rec-coral:hover  { box-shadow: 0 8px 32px #e0353555; }
.rectangulo-negro-interno { background: #0a0a0a; overflow: hidden; aspect-ratio: 16/9; }
.rec-morado .rectangulo-negro-interno { border-top: 3px solid var(--c-morado); }
.rec-azul   .rectangulo-negro-interno { border-top: 3px solid var(--c-azul); }
.rec-verde  .rectangulo-negro-interno { border-top: 3px solid var(--c-verde); }
.rec-coral  .rectangulo-negro-interno { border-top: 3px solid var(--c-rojo); }
.rectangulo-negro-interno img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rectangulo-texto { padding: 16px; font-size: 0.88rem; color: #cccccc; line-height: 1.6; }
 
/* 4 FLIP CARDS */
.seccion-flip-cards { padding: 80px 20px; background: #111111; text-align: center; }
.seccion-flip-cards h2 {
  font-size: 1.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 40px; color: #fff;
}
.contenedor-flip {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.flip-card { width: 220px; height: 320px; perspective: 1000px; cursor: pointer; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.75s cubic-bezier(0.4,0.2,0.2,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; overflow: hidden;
}
.flip-card-front { border: 1px solid rgba(255,255,255,0.12); }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-card-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 18px; gap: 12px;
}
.flip-card-back h3 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.flip-card-back p  { font-size: 0.88rem; line-height: 1.6; color: #e0e0e0; margin: 0; }
.flip-card:nth-child(1) .flip-card-back { background: linear-gradient(160deg,#1a0a2e,#2d1458); border: 2px solid var(--c-morado); }
.flip-card:nth-child(1) .flip-card-back h3 { color: var(--c-morado); }
.flip-card:nth-child(2) .flip-card-back { background: linear-gradient(160deg,#0a1020,#0d2860); border: 2px solid var(--c-azul); }
.flip-card:nth-child(2) .flip-card-back h3 { color: var(--c-azul); }
.flip-card:nth-child(3) .flip-card-back { background: linear-gradient(160deg,#071a04,#0d3a08); border: 2px solid var(--c-verde); }
.flip-card:nth-child(3) .flip-card-back h3 { color: var(--c-verde); }
.flip-card:nth-child(4) .flip-card-back { background: linear-gradient(160deg,#200808,#4a1010); border: 2px solid var(--c-rojo); }
.flip-card:nth-child(4) .flip-card-back h3 { color: var(--c-rojo); }
 
/* CÓMO JUGAR */
.seccion-como-jugar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
  padding: 80px 40px; background: #111111;
  max-width: 1200px; margin: 0 auto;
}
 
/* CARRUSEL */
.fondo-bajo-rectangulos { background: #111111; padding: 40px 0 60px; }
.galeria-carrusel { text-align: center; padding: 0 20px; }
.galeria-carrusel h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; color: #fff; }
.carrusel-contenedor { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.carrusel-track-wrapper { flex: 1; overflow: hidden; border-radius: 12px; }
.carrusel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel-track::-webkit-scrollbar { display: none; }
.carrusel-item { flex: 0 0 280px; scroll-snap-align: start; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.carrusel-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.carrusel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.carrusel-btn:hover { background: rgba(34,119,238,0.4); }
 
.btn-experiencia {
  display: inline-flex;
  align-items: center;
  padding: 14px 44px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  transition: color 0.3s;
}

.btn-experiencia::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #b87adf, #2277ee, #3dcc1e, #e03535, #b87adf);
  background-size: 300% 100%;
  animation: borde-mix 3s linear infinite;
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
}

.btn-experiencia::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #111;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  z-index: 0;
  transition: background 0.3s;
}

.btn-experiencia span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}

.btn-experiencia span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -80%;
  transform: translateY(-50%);
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(184,122,223,0.5), rgba(34,119,238,0.6), transparent);
  opacity: 0;
  transition: opacity 0s, left 0s;
  pointer-events: none;
}

.btn-experiencia:hover span::before {
  opacity: 1;
  left: 180%;
  transition: left 0.55s ease, opacity 0.1s;
}

.btn-experiencia span::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #b87adf, #2277ee, #3dcc1e, #e03535);
  transition: width 0.4s ease;
}

.btn-experiencia:hover span::after { width: 100%; }

@keyframes borde-mix {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
 
/* TRES COLUMNAS */
.seccion-tres-columnas {
  max-width: 1200px; margin: 80px auto;
  padding: 0 30px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;
}
.columna-info {
  background: rgba(15,15,20,0.82); border-radius: 16px;
  overflow: hidden; text-align: center; position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.columna-info::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 16px; padding: 2px;
  background: linear-gradient(135deg,#c792f9,#007fff,#39d31c,#e04333);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.columna-info:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.columna-info img { width: 100%; height: 220px; object-fit: cover; display: block; }
.columna-info h3 { font-size: 1.3rem; color: white; margin: 20px 0 10px; }
.columna-info p  { color: #cccccc; line-height: 1.6; padding: 0 20px 25px; }
 
.btn-volver {
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--c-morado);
  color: var(--c-morado);
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s, color 0.2s;
}

.btn-volver:hover { background: var(--c-morado); color: #fff; }
.contenedor-detalle { position: relative; z-index: 2; text-align: center; padding: 40px 20px; }

.btn-volver:hover { background: var(--c-morado); color: #fff; }
.contenedor-detalle { position: relative; z-index: 2; text-align: center; padding: 40px 20px; }
 
.hex-generado {
  position: fixed;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
 
/* FLIP CARDS GRANDES */
.seccion-flip-grandes {
  padding: 60px 32px;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1155 40%, #1a0a2e 100%);
}
 
.contenedor-flip-grandes {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
}
 
.flip-card-grande {
  width: 380px;
  height: 500px;
  perspective: 1200px;
  cursor: pointer;
}
 
.flip-card-grande-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
 
.flip-card-grande:hover .flip-card-grande-inner {
  transform: rotateY(180deg);
}
 
.flip-card-grande-front,
.flip-card-grande-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 20px rgba(180,80,255,0.3), 0 8px 32px rgba(0,0,0,0.6);
}
 
.flip-card-grande-front { background: #111; }
 
.flip-card-grande-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.flip-card-grande-titulo {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
 
.flip-card-grande-back {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a0a2e 50%, #2d1155 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
}
 
.flip-card-grande-back h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
 
.flip-card-grande-back p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.7;
}
 
/* MINI JUEGO */
.seccion-minijuego {
  padding: 60px 20px;
  background: #0a0a0a;
  text-align: center;
}
 
.minijuego-titulo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
 
.minijuego-subtitulo {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  margin-bottom: 30px;
}
 
.minijuego-wrapper {
  position: relative;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(184,122,223,0.15);
  min-width: 200px;
  min-height: 200px;
  background: #111;
}
 
#minijuegoCanvas {
  display: block;
  cursor: pointer;
  background: #111;
}
 
#confettiCanvas {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}
 
#minijuego-contador {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
 
#minijuego-victoria {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  transition: opacity 0.5s;
  z-index: 3;
}
 
#minijuego-victoria.oculto {
  opacity: 0;
  pointer-events: none;
}
 
#minijuego-victoria span {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #b87adf, #2277ee, #3dcc1e, #e03535);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
 
#minijuego-victoria button {
  padding: 10px 28px;
  background: linear-gradient(135deg, #b87adf, #2277ee);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}
 
#minijuego-victoria button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(184,122,223,0.5);
}
 
/* COLMENA */
.seccion-colmena {
  padding: 60px 0 80px;
  background: #080808;
  overflow: hidden;
  text-align: center;
}
 
.colmena-titulo {
  color: #fff;
  font-size: 28px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
 
#colmenaCanvas {
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
 
/* BOTÓN LANDING */
#btn-landing {
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
 
/* RESPONSIVE */
@media (max-width: 850px) {
  .recuadro-concepto-global { flex-direction: column; padding: 30px; gap: 30px; }
  .recuadro-col-texto { text-align: center; }
  .hero-contenido-layout { margin: 50px auto 30px; }
  .seccion-tres-columnas { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .fila-rectangulos { grid-template-columns: 1fr; }
  .carrusel-item { flex: 0 0 220px; }
  .seccion-rectangulos { padding: 40px 20px; }
  .seccion-como-jugar { flex-direction: column; text-align: center; padding: 40px 20px; }
  .flip-card { width: 160px; height: 240px; }
  #galeria { padding: 0 16px; }
  #galeria.abierta { padding: 24px 16px; }
}/* ── SECCIÓN COLMENA ── */
.seccion-colmena {
  padding: 80px 0;
  background: #080808;
  overflow: hidden;
}

.colmena-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
  gap: 0;
}

.hex-celda {
  position: relative;
  width: 180px;
  height: 103.92px;
  margin: 1px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #111;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hex-celda:nth-child(odd) {
  margin-top: 53px;
}

.hex-celda-contenido {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 12px;
  text-align: center;
}

.hex-celda:hover .hex-celda-contenido {
  opacity: 1;
}

/* Borde sutil cuando vacío */
.hex-celda::before {
  content: '';
  position: absolute;
  inset: 1px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255,255,255,0.04);
  transition: background 0.3s;
  z-index: 0;
}

.hex-celda:hover::before {
  background: transparent;
}

/* Tipo IMAGEN */
.hex-celda.tipo-imagen .hex-celda-contenido {
  padding: 0;
}

.hex-celda.tipo-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hex-celda.tipo-imagen:hover {
  transform: scale(1.08);
  z-index: 5;
}

/* Tipo TEXTO */
.hex-celda.tipo-texto {
  background: #0e0e0e;
}

.hex-celda.tipo-texto:hover {
  transform: scale(1.08);
  z-index: 5;
}

.hex-celda.tipo-texto .hex-celda-contenido {
  padding: 20px 18px;
  gap: 6px;
}

.hex-titulo-colmena {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hex-texto-colmena {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}

/* Degradés de los 4 colores */
.grad-morado { background: linear-gradient(135deg, #b87adf, #7a3fa0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-azul   { background: linear-gradient(135deg, #2277ee, #0044aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-verde  { background: linear-gradient(135deg, #3dcc1e, #1a7a08); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-coral  { background: linear-gradient(135deg, #e03535, #a01515); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Overlay oscuro en hover para tipo imagen */
.hex-celda.tipo-imagen .hex-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.hex-celda.tipo-imagen:hover .hex-overlay { opacity: 1; }
.hex-celda.tipo-imagen .hex-celda-contenido { z-index: 2; }
.hex-generado-fixed {
  position: fixed !important;
}.separador-hex {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
}

.sep-canvas {
  display: block;
  width: 100%;
  height: 60px;
} .footer-principal {
  background: #0a0a0a;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg,#b87adf,#2277ee,#3dcc1e,#e03535) 1;
}
.footer-contenido { padding: 40px 60px 30px; max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo span { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; }
.footer-desc { color: #555; font-size: 15px; line-height: 1.7; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-col-titulo { color: #fff; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 6px; font-weight: 700; }
.footer-link { color: #555; font-size: 15px; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #b87adf; }
.footer-texto { color: #555; font-size: 15px; }
.footer-nombre { color: #fff; font-size: 16px; font-weight: 600; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: #333; font-size: 15px; letter-spacing: 1px; }
.footer-hexs { display: flex; gap: 8px; }
.footer-hex { width: 8px; height: 8px; clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contenido { padding: 30px 20px; }
} .seccion-modos {
  padding: 80px 40px;
  background: #0e0e0e;
  text-align: center;
}
.modos-titulo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.modos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.modo-card {
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 12px;
}
.modo-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.modo-card:hover .modo-card-inner {
  transform: rotateY(180deg);
}
.modo-card-front, .modo-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  box-sizing: border-box;
  background: #0e0e0e;
}
.modo-card-back {
  transform: rotateY(180deg);
  padding: 0;
}
.modo-morado .modo-card-front { border: 1px solid #b87adf33; }
.modo-azul   .modo-card-front { border: 1px solid #2277ee33; }
.modo-verde  .modo-card-front { border: 1px solid #3dcc1e33; }
.modo-morado .modo-card-back  { border: 1px solid #b87adf55; }
.modo-azul   .modo-card-back  { border: 1px solid #2277ee55; }
.modo-verde  .modo-card-back  { border: 1px solid #3dcc1e55; }
.modo-glow { position: absolute; inset: 0; pointer-events: none; }
.modo-morado .modo-glow { background: radial-gradient(circle at 50% 0%,#b87adf18,transparent 70%); }
.modo-azul   .modo-glow { background: radial-gradient(circle at 50% 0%,#2277ee18,transparent 70%); }
.modo-verde  .modo-glow { background: radial-gradient(circle at 50% 0%,#3dcc1e18,transparent 70%); }
.modo-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
}
.modo-card p {
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}
.modo-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.modo-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 0;
}
.modo-back-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  justify-content: center;
  z-index: 2;
  border-radius: 0 0 12px 12px;
}
.modo-play {
  padding: 8px 24px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  white-space: nowrap;
  transition: background 0.2s;
}
.modo-play:hover {
  background: rgba(0,0,0,0.9);
}
@media (max-width: 768px) {
  .modos-grid { grid-template-columns: 1fr; }
  .modo-card { height: 280px; }
  .seccion-modos { padding: 40px 20px; }
}