/* ============================================================
   Codigo Quest Academia — Coming Soon
   Colores muestreados pixel a pixel desde public/img/logo.png
   ============================================================

   PALETA DEL LOGO (valores RGB exactos del PNG):
   --bg:          #0D1223  → fondo real del logo (R:13 G:18 B:35)
   --orange:      #F5A800  → texto pixel "CODIGO QUEST"
   --orange-dark: #C7620A  → sombra/borde del texto naranja
   --orange-book: #E07800  → libro naranja del ícono derecho
   --cyan:        #1FC8D6  → símbolo </> del ícono izquierdo
   --icon-bg:     #1A2744  → fondo del ícono código
   --white:       #FFFFFF  → texto "ACADEMIA"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

/* ---------- Variables extraídas del logo ---------- */
:root {
  --bg:          #0D1223;   /* muestreado del PNG: R13 G18 B35 */
  --bg-lighter:  #131929;   /* versión ligeramente más clara para overlays */
  --orange:      #F5A800;
  --orange-dark: #C7620A;
  --orange-book: #E07800;
  --cyan:        #1FC8D6;
  --white:       #FFFFFF;
  --font:        'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font);
  /* Fondo pixel-exacto igual al del logo (muestreado con PowerShell) */
  background-color: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Puntos de luz sutiles (sin cambiar el tono base) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Sólo brillo muy suave del mismo navy, sin teal ni verde */
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%,   rgba(245,168,0,.07)  0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(31,200,214,.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Partículas CSS puras ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%,  rgba(245,168,0,.4)   0%, transparent 100%),
    radial-gradient(1px 1px at 28% 65%,  rgba(255,255,255,.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 30%,  rgba(31,200,214,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%,  rgba(245,168,0,.30)  0%, transparent 100%),
    radial-gradient(1px 1px at 88% 22%,  rgba(255,255,255,.18)0%, transparent 100%),
    radial-gradient(1px 1px at 38% 88%,  rgba(31,200,214,.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%,  rgba(245,168,0,.22)  0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Main wrapper ---------- */
.cq-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 2rem;
}

/* ---------- Logo ---------- */
.cq-logo-wrapper {
  position: relative;
  display: inline-block;
}

/* Anillo exterior: naranja del logo */
.cq-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2.5px solid var(--orange);
  border-radius: 24px;
  opacity: .28;
  animation: ring-pulse 3.2s ease-in-out infinite;
}

/* Anillo interior: cyan del logo */
.cq-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -24px;
  border: 1.5px solid var(--cyan);
  border-radius: 32px;
  opacity: .15;
  animation: ring-pulse 3.2s ease-in-out infinite .6s;
}

.cq-logo {
  width: clamp(200px, 35vw, 380px);
  height: auto;
  border-radius: 20px;
  display: block;
  /* Sombra con los dos colores del logo */
  filter:
    drop-shadow(0 0 22px rgba(245,168,0,.50))
    drop-shadow(0 0  8px rgba(31,200,214,.22));
  animation: logo-float 4s ease-in-out infinite;
}

/* ---------- Divisor ---------- */
.cq-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: clamp(180px, 50%, 340px);
}

.cq-divider span {
  flex: 1;
  height: 1px;
  /* Naranja puro del logo, no naranja-rojo */
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .35;
}

.cq-divider i {
  color: var(--cyan);
  font-size: .85rem;
  opacity: .75;
}

/* ---------- Texto ---------- */
.cq-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cq-label {
  font-size: clamp(.7rem, 1.5vw, .85rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);       /* cyan del ícono </> */
  opacity: .85;
}

/* Tagline con gradiente EXACTAMENTE de los dos naranjas del logo */
.cq-tagline {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  background: linear-gradient(
    135deg,
    #FFD060       0%,   /* highlight dorado del logo */
    var(--orange) 45%,  /* #F5A800 naranja principal */
    var(--orange-dark) 100% /* #C7620A sombra del texto */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(245,168,0,.60));
  animation: text-glow 3s ease-in-out infinite;
}

.cq-sub {
  font-size: clamp(.95rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--white);
  opacity: .60;
  letter-spacing: .04em;
}

/* ---------- Badge ---------- */
.cq-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  /* Fondo con el naranja del logo, muy translúcido */
  background: rgba(245,168,0,.10);
  border: 1.5px solid rgba(245,168,0,.35);
  border-radius: 50px;
  padding: .45rem 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange);
  animation: badge-glow 2.8s ease-in-out infinite;
}

/* Dot con el cyan del logo */
.cq-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

/* ---------- Footer ---------- */
.cq-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .06em;
  color: rgba(255,255,255,.30);
  border-top: 1px solid rgba(245,168,0,.08);
}

.cq-footer span {
  color: var(--orange);
  opacity: .75;
}

/* ---------- Animaciones ---------- */
@keyframes logo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: .28; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.02); }
}

@keyframes text-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(245,168,0,.60)); }
  50%       { filter: drop-shadow(0 0 30px rgba(245,168,0,.95)); }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0  0   rgba(245,168,0,0); }
  50%       { box-shadow: 0 0 14px rgba(245,168,0,.28); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .4; transform: scale(.65); }
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .cq-hero { gap: 1.5rem; padding: 2rem 1rem; }
  .cq-logo { width: 80vw; }
}
