/* ====================================
   RESET
==================================== */

* {

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

/* ====================================
   BODY
==================================== */

body {

  width: 100vw;
  height: 100vh;

  overflow: hidden;

  background: #0b0b0b;

  color: white;

  font-family: Arial, sans-serif;

  touch-action: manipulation;
}

/* ====================================
   UNIVERSO
==================================== */

#universo {

  position: relative;

  width: 100vw;
  height: 100vh;
}

/* ====================================
   OJO
==================================== */

#ojo {

  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  z-index: 20;
}

#ojo img {
  display: block;
  width: min(180px, 22vw);
  height: auto;
}

/* ====================================
   ORBITA
==================================== */

#orbita {

  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: min(70vmin, 900px);
  height: min(40vmin, 500px);

  border-radius: 50%;

  border:
    1px solid rgba(255,255,255,0.1);
}

/* ====================================
   PALABRAS
==================================== */

.palabra {

  position: absolute;

  color: white;

  font-size: 18px;

  letter-spacing: 3px;

  white-space: nowrap;

  transform:
    translate(-50%, -50%);

  transition:
    opacity 0.3s,
    transform 0.3s,
    text-shadow 0.3s;

  z-index: 50;

  cursor: pointer;

  padding: 10px 12px;
  border-radius: 999px;
  user-select: none;
  touch-action: manipulation;
}

/* ====================================
   HOVER
==================================== */

.palabra:hover {

  text-shadow:
    0 0 10px rgba(255,255,255,0.9);

  transform:
    translate(-50%, -50%)
    scale(1.2);
}

@media (max-width: 700px) {
  #orbita {
    width: 90vw;
    height: 90vw;
  }

  .palabra {
    font-size: 16px;
    padding: 14px 14px;
  }
}

/* ====================================
   MODAL
==================================== */

#modal {

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,0.82);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 999;
}

/* ====================================
   CONTENIDO MODAL
==================================== */

#contenido-modal {

  width: 70vw;

  max-width: 700px;

  padding: 40px;

  background: #111;

  border:
    1px solid rgba(255,255,255,0.1);

  position: relative;
}

#modal-action {
  margin-top: 24px;
}

.modal-iframe-wrap {
  width: 100%;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  background: #000;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
}

.modal-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}

.modal-link-button:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* ====================================
   BOTON CERRAR
==================================== */

#cerrar-modal {

  position: absolute;

  right: 15px;
  top: 15px;

  background: transparent;

  border: none;

  color: white;

  font-size: 24px;

  cursor: pointer;
}

/* ====================================
   ROTATE SCREEN
==================================== */

#rotate-screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  text-align: center;
  color: white;
  padding: 20px;
}

.rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rotate-emoji {
  font-size: 48px;
}

.rotate-text {
  font-size: 18px;
  max-width: 320px;
  line-height: 1.2;
}

@media (min-width: 700px) {
  #rotate-screen { display: none; }
}
