/* ---------- Base & fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Exo+2:wght@300;400;600;700&display=swap");

:root {
  --bg-dark: #05030b;
  --neon-cyan: #00f0ff;
  --neon-magenta: #d45cff;
  --accent: #7ee7ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 500px at 12% 18%, rgba(6, 8, 20, .85), transparent 12%),
    radial-gradient(800px 420px at 90% 82%, rgba(50, 0, 80, .6), transparent 12%),
    var(--bg-dark);
  font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #dffaff;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: start;
  padding: 56px 48px;
  position: relative;
  max-width: 100%;
  z-index: 1;
}

@media (max-width: 1100px) {
  .stage {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .stage {
    padding: 16px;
  }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .03);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 40px rgba(0, 255, 255, .02);
  background: linear-gradient(180deg, rgba(6, 6, 12, .6), rgba(0, 0, 0, .55));
  align-self: start;
}

.portrait {
  position: absolute;
  inset: 0;
  background-image: url('../img/aurorael.PNG');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: contrast(1.08) saturate(1.05) hue-rotate(-3deg);
  animation: portraitFloat 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes portraitFloat {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.01);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6%;
  width: 120%;
  height: 116%;
  border-radius: 50%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(0, 240, 255, .12), rgba(212, 92, 255, .08), transparent 55%);
  filter: blur(36px) saturate(1.1);
  mix-blend-mode: screen;
  opacity: .98;
  transform: translateX(-50%) scale(1.02);
  animation: arcPulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes arcPulse {
  0% {
    opacity: .95;
  }

  50% {
    opacity: .6;
  }

  100% {
    opacity: .95;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 48%, rgba(0, 0, 0, .06) 50%, transparent 52%);
  opacity: .22;
  mix-blend-mode: multiply;
  z-index: 2;
}

.card-left {
  position: absolute;
  left: 16px;
  top: 18px;
  width: calc(100% - 32px);
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(3, 6, 16, .6), rgba(0, 0, 0, .22));
  border: 1px solid rgba(0, 255, 255, .05);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  letter-spacing: 6px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

.numerologia {
  font-family: "Roboto flex", sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 12px;
  color: rgba(190, 255, 255, .9);
  margin-top: 2px;
}

.hero-desc {
  margin-top: 10px;
  color: #bfefff;
  font-size: 13px;
  line-height: 1.4;
}

/* Panel */
.panel {
  position: relative;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 8, 20, .6), rgba(2, 4, 10, .45));
  border: 1px solid rgba(0, 255, 255, .05);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  font-family: "Orbitron";
  font-size: 36px;
  letter-spacing: 6px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

.desc {
  font-size: 13px;
  color: #bfefff;
  opacity: .9;
}

/* Tagline móvil (oculta por defecto) */
.tagline-mobile {
  display: none;
}

/* Recuadro móvil (oculto por defecto) */
.mobile-portrait-card {
  display: none;
}

.mobile-portrait {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-image: url('../img/aurorael.PNG');
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
  flex-shrink: 0;
}

.mobile-portrait-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-name {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e9fcff;
}

.mobile-role {
  font-size: 11px;
  color: rgba(192, 240, 255, 0.9);
  opacity: 0.95;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

textarea#prompt {
  width: 100%;
  min-height: 170px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, .06);
  background: linear-gradient(180deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .14));
  color: #ddefef;
  box-shadow: inset 0 6px 30px rgba(0, 0, 0, .5);
  resize: vertical;
}

textarea#prompt:focus {
  outline: none;
  box-shadow: 0 12px 40px rgba(0, 240, 255, .06), 0 0 28px rgba(212, 92, 255, .03);
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

button#sendBtn {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  color: #04121a;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 240, 255, .12);
}

#respuesta {
  min-height: 140px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 10, 20, .45), rgba(0, 8, 12, .2));
  border: 1px solid rgba(0, 255, 255, .04);
  color: #d8ffff;
  white-space: pre-wrap;
  overflow: auto;
}

/* Video wrap + overlay */
.video-wrap {
  width: 100%;
  max-width: 820px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  position: relative;
}

/* Improved overlay (centered + styled) */
.big-unmute {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, .85));
  backdrop-filter: blur(3px);
  z-index: 10;
}

.big-text {
  max-width: 90%;
  text-align: center;
  color: #e0faff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

.big-unmute-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, .6);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  color: #021016;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, .4);
  transition: transform .15s ease, box-shadow .15s ease;
}

.big-unmute-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 26px rgba(0, 240, 255, .6);
}

.big-unmute-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.video-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.video-controls a {
  padding: 8px 12px;
  background: rgba(255, 255, 255, .02);
  color: #bfefff;
  border-radius: 8px;
  text-decoration: none;
}

.scanline {
  position: absolute;
  left: -30%;
  top: 0;
  width: 160%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, .12), transparent);
  transform: translateY(-6px) rotate(-2deg);
  animation: slide 6s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes slide {
  0% {
    transform: translateY(-20%) rotate(-2deg)
  }

  50% {
    transform: translateY(60%) rotate(-2deg)
  }

  100% {
    transform: translateY(160%) rotate(-2deg)
  }
}

/* ---------- Panel footer ---------- */
.panel-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(200, 255, 255, .75);
  font-size: 13px;
  gap: 12px;
}

.panel-foot a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
}

.panel-foot-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 60%;
}

.panel-foot-right {
  display: flex;
  align-items: flex-end;
}

.panel-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 8px;
}

.panel-links span {
  opacity: 0.5;
}

.legal-hint {
  font-size: 11px;
  color: rgba(190, 240, 255, 0.78);
  max-width: 420px;
}

/* Status pill */
.status-pill {
  font-size: 12px;
  color: #aef6ff;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(0, 255, 255, .04);
}

/* ------------ Responsive tweaks ------------ */
@media (max-width: 1100px) {
  .hero {
    height: 420px;
    max-width: 720px;
  }

  .panel {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .stage {
    padding: 14px;
    position: relative;
    z-index: 2;
  }

  /* Ocultamos el hero grande en móvil (sin foto gigante) */
  .hero {
    display: none;
  }

  /* Panel: glass + un poco translúcido */
  .panel {
    padding: 20px;
    min-height: auto;
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(14px) brightness(1.04);
    border: 1px solid rgba(0, 255, 255, 0.07);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
    border-radius: 16px;
    z-index: 2;
  }

  /* Header en columna para que no se corte "Online" */
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .panel-head > div:last-child {
    align-self: flex-start;
  }

  .panel-head h2 {
    font-size: 26px;
  }

  /* Ocultar la frase Ask and explore... en móvil */
  .desc {
    display: none;
  }

  /* Tagline móvil */
  .tagline-mobile {
    display: block;
    margin-top: 6px;
    font-family: "Orbitron", sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
    opacity: 1;
  }

  .tagline-mobile::before,
  .tagline-mobile::after {
    display: none;
  }

  /* Recuadro con la imagen en móvil */
  .mobile-portrait-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background:
      radial-gradient(circle at top left, rgba(0, 240, 255, 0.18), transparent 55%),
      rgba(2, 6, 18, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.18);
  }

  .status-pill {
    font-size: 11px;
    padding: 4px 10px;
    max-width: 100%;
    white-space: nowrap;
  }

  .video-wrap {
    max-width: 100%;
  }

  /* Footer más discreto y separado en móvil */
  .panel-foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 26px;              /* más espacio respecto a la respuesta */
    padding-top: 10px;             /* espacio interior arriba */
    border-top: 1px solid rgba(0, 240, 255, 0.16); /* línea sutil de separación */
    font-size: 11px;               /* un poco más pequeño */
    color: rgba(185, 235, 245, 0.78);
    gap: 6px;
  }

  .panel-foot-left {
    max-width: 100%;
  }

  .panel-foot-right {
    width: 100%;
  }

  .panel-links {
    justify-content: flex-start;
    font-size: 7px;
  }

  .panel-foot a {
    font-weight: 500;
    opacity: 0.9;                  /* links algo menos intensos */
  }

  .legal-hint {
    font-size: 10px;
    opacity: 0.8;
  }
}

/* Particles canvas */
#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .9;
  width: 100vw;
  height: 100vh;
}

/* small banner */
.banner {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  color: #bfefff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, .06);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 999;
}

.banner.show {
  display: block;
}

/* ---------- Páginas legales ---------- */
.legal-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0, 10, 20, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.legal-page h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  color: #e2fbff;
}

.legal-page p,
.legal-page li {
  color: #d3f7ff;
}

.legal-page em {
  color: #a8e4ff;
}

.legal-page ul {
  margin-left: 1.4rem;
  margin-top: 0.2rem;
}

.legal-page a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.legal-back {
  margin-top: 2rem;
  font-size: 0.9rem;
}
