
/* =========================================================
   STYLES ESPERA — TALENTO TIC LOS PATIOS 2026
   Diseño neón adaptable, alineado con Espera.html
========================================================= */

:root {
  --bg: #080c1b;
  --bg-soft: #0d1430;
  --panel: rgba(16, 25, 51, .82);
  --panel-strong: rgba(12, 19, 40, .96);
  --text: #eef2ff;
  --muted: #b8c4df;
  --purple: #7b5cff;
  --lilac: #b39cff;
  --cyan: #00cfff;
  --blue: #477bff;
  --line: rgba(125, 148, 220, .2);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(123,92,255,.19), transparent 36%),
    radial-gradient(ellipse at 88% 45%, rgba(0,207,255,.12), transparent 34%),
    linear-gradient(135deg, #070a18, #0b1024 52%, #080c1b);
  background-size: 150% 150%;
  animation: backgroundDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

button,
canvas {
  -webkit-tap-highlight-color: transparent;
}

.topline {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--lilac), var(--purple));
  background-size: 250% 100%;
  box-shadow: 0 0 18px rgba(0,207,255,.45);
  animation: gradientMove 8s linear infinite;
}

/* ENCABEZADO */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5.5vw, 84px);
  border-bottom: 1px solid rgba(0,207,255,.17);
  background: rgba(8,12,27,.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
  text-shadow: 0 0 18px rgba(0,207,255,.2);
}

.brand-accent {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0,207,255,.5);
}

.brand-year {
  padding: 6px 9px;
  border: 1px solid rgba(179,156,255,.35);
  border-radius: 8px;
  color: var(--lilac);
  font-family: "Orbitron", sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c8d3ec;
  font-size: .82rem;
}

.status-dot,
.game-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

/* CONTENIDO PRINCIPAL */

.page-content {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 84px) 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  margin-bottom: clamp(54px, 7vw, 92px);
}

.hero-copy {
  min-width: 0;
  animation: fadeUp .75s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(0,207,255,.28);
  border-radius: 30px;
  background: rgba(0,207,255,.055);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 4.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.hero h1 span {
  display: inline;
  background: linear-gradient(90deg, #fff, var(--lilac), var(--cyan), #fff);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 7s linear infinite;
}

.lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}

/* TARJETA DE FECHA */

.date-card {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100%, 430px);
  margin: 0 0 20px;
  padding: 22px 25px;
  border: 1px solid rgba(0,207,255,.3);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(0,207,255,.08), rgba(123,92,255,.13));
  box-shadow: 0 15px 38px rgba(0,0,0,.2), inset 0 0 24px rgba(0,207,255,.025);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.date-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(0,0,0,.25), 0 0 25px rgba(0,207,255,.1);
}

.date-number {
  flex: 0 0 auto;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 22px rgba(0,207,255,.55);
}

.date-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-copy strong {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: .86rem;
  line-height: 1.5;
}

.date-copy small {
  color: #c1cbe0;
  font-size: .84rem;
  line-height: 1.6;
}

.status-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #c7bbff;
  font-size: .85rem;
  line-height: 1.7;
}

/* IMAGEN PRINCIPAL */

.hero-visual {
  position: relative;
  min-width: 0;
  width: 100%;
  animation: fadeUp .95s ease both;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(#0b1228, #0b1228) padding-box,
    linear-gradient(135deg, var(--purple), var(--cyan), var(--lilac), var(--purple)) border-box;
  background-size: auto, 250% 250%;
  animation: gradientMove 9s linear infinite;
  box-shadow: 0 25px 65px rgba(0,0,0,.34), 0 0 34px rgba(123,92,255,.13);
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  filter: saturate(1.08);
  transition: transform .65s ease, filter .65s ease;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.035);
  filter: saturate(1.2) brightness(1.05);
}

.image-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 19px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(5,9,23,.8);
  backdrop-filter: blur(12px);
}

.image-caption span {
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.image-caption strong {
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(.72rem, 1.3vw, .95rem);
  line-height: 1.5;
}

.visual-glow {
  position: absolute;
  z-index: 0;
  inset: 12% -8% -8% 15%;
  border-radius: 50%;
  background: rgba(0,207,255,.13);
  filter: blur(70px);
  pointer-events: none;
}

/* AVISO DE FECHA */

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: clamp(60px, 8vw, 100px);
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid rgba(123,92,255,.27);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(20,28,58,.88), rgba(9,15,34,.94));
  box-shadow: 0 20px 55px rgba(0,0,0,.2), inset 0 0 35px rgba(123,92,255,.025);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0,207,255,.28);
  border-radius: 16px;
  background: rgba(0,207,255,.07);
  color: var(--cyan);
  font-size: 1.8rem;
  box-shadow: 0 0 24px rgba(0,207,255,.06);
}

.notice-copy .section-kicker {
  margin-bottom: 9px;
}

.notice h2,
.section-head h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  text-wrap: balance;
}

.notice-copy > p:last-child {
  max-width: 950px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.9;
}

.notice-copy strong {
  color: #fff;
}

/* MINIJUEGO */

.game-wrap {
  margin: 0 auto clamp(65px, 8vw, 100px);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head .section-kicker {
  margin-bottom: 10px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.8;
}

.game-shell {
  overflow: hidden;
  border: 1px solid rgba(0,207,255,.25);
  border-radius: 23px;
  background: rgba(8,13,30,.88);
  box-shadow: 0 22px 60px rgba(0,0,0,.3), 0 0 28px rgba(0,207,255,.045);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  background: rgba(17,25,51,.75);
}

.game-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e9eaff;
  font-family: "Orbitron", sans-serif;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.game-live-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9eaccb;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.score strong {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.score-divider {
  width: 1px;
  height: 24px;
  background: rgba(154,174,220,.23);
}

.canvas-frame {
  width: 100%;
  overflow: hidden;
  background: #0b1024;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  outline: none;
  touch-action: manipulation;
}

#game:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 23px;
  border-top: 1px solid var(--line);
}

#game-message {
  margin: 0;
  color: #bac6e1;
  font-size: .83rem;
  line-height: 1.7;
}

#restart {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 1px solid rgba(0,207,255,.4);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(123,92,255,.2), rgba(0,207,255,.12));
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#restart:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,207,255,.12);
}

#restart:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.bottom-note {
  margin: 16px 0 0;
  color: #8998bb;
  text-align: center;
  font-size: .8rem;
  line-height: 1.7;
}

/* TARJETAS INFORMATIVAS */

.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.info-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 29px 26px;
  border: 1px solid rgba(123,92,255,.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20,29,57,.88), rgba(10,15,33,.94));
  box-shadow: 0 15px 40px rgba(0,0,0,.17);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.info-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 68px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 15px rgba(0,207,255,.45);
}

.info-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(0,207,255,.48);
  box-shadow: 0 20px 45px rgba(0,0,0,.25), 0 0 23px rgba(0,207,255,.06);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border: 1px solid rgba(0,207,255,.25);
  border-radius: 15px;
  background: rgba(0,207,255,.07);
  font-size: 1.45rem;
}

.info-panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: .98rem;
  line-height: 1.5;
}

.info-panel p {
  margin: 0;
  color: #aebbd5;
  font-size: .86rem;
  line-height: 1.8;
}

/* PIE DE PÁGINA */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px clamp(20px, 5.5vw, 84px);
  border-top: 1px solid rgba(123,92,255,.18);
  background: rgba(6,9,22,.65);
  color: #8f9cbb;
  font-size: .78rem;
}

.footer-brand {
  color: #dce4ff;
  font-family: "Orbitron", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ANIMACIONES */

@keyframes backgroundDrift {
  from {
    background-position: 0% 0%, 100% 100%, center;
  }
  to {
    background-position: 35% 20%, 65% 80%, center;
  }
}

@keyframes gradientMove {
  from { background-position: 0% center; }
  to { background-position: 250% center; }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .48;
    transform: scale(.78);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLETAS */

@media (max-width: 950px) {
  .page-content {
    width: min(100% - 38px, 760px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .date-card {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .status-note {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 700px);
    margin: 0 auto;
  }

  .info-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MÓVILES */

@media (max-width: 620px) {
  .site-header {
    padding: 15px 17px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: .95rem;
    letter-spacing: .5px;
  }

  .brand-year {
    padding: 5px 7px;
    font-size: .68rem;
  }

  .header-status {
    max-width: 135px;
    gap: 7px;
    font-size: .68rem;
    line-height: 1.45;
  }

  .header-status .status-dot {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .page-content {
    width: calc(100% - 32px);
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .hero {
    gap: 28px;
    margin-bottom: 48px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: .59rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    letter-spacing: -.6px;
  }

  .lead {
    font-size: .91rem;
    line-height: 1.8;
  }

  .date-card {
    gap: 17px;
    padding: 19px;
    border-radius: 17px;
  }

  .date-number {
    font-size: 2.8rem;
  }

  .date-copy strong {
    font-size: .75rem;
  }

  .date-copy small {
    font-size: .78rem;
  }

  .status-note {
    font-size: .76rem;
    text-align: left;
  }

  .hero-image-frame {
    padding: 6px;
    border-radius: 20px;
  }

  .hero-image {
    border-radius: 14px;
    aspect-ratio: 4 / 3;
  }

  .image-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 11px 12px;
    gap: 4px;
  }

  .image-caption span {
    font-size: .56rem;
  }

  .image-caption strong {
    font-size: .68rem;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 52px;
    padding: 23px 20px;
    border-radius: 19px;
  }

  .notice-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .notice h2,
  .section-head h2 {
    font-size: 1.45rem;
  }

  .notice-copy > p:last-child {
    font-size: .87rem;
  }

  .game-wrap {
    margin-bottom: 56px;
  }

  .game-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
  }

  .scoreboard {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .score {
    font-size: .59rem;
    gap: 6px;
  }

  .score strong {
    font-size: .75rem;
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
  }

  #game-message {
    font-size: .77rem;
  }

  #restart {
    width: 100%;
  }

  .info-panels {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .info-panel {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 22px 18px;
  }
}

/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
