@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

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

html, body { cursor: none; }

:root {
  --white:      #ffffff;
  --white70:    rgba(255,255,255,0.7);
  --white40:    rgba(255,255,255,0.4);
  --white15:    rgba(255,255,255,0.15);
  --white08:    rgba(255,255,255,0.08);
  --iris:       #c8a4d4;
  --iris2:      #a8d4e4;
  --font-serif: 'Courier Prime', monospace;
  --font-mono:  'Courier Prime', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* =====================
   SECCIONES OCULTAS por defecto
   ===================== */
#main           { display: none; }
#inner-sections {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.inner-section {
  display: none;
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
}
.hidden         { display: none !important; }

/* =====================
   INTRO
   ===================== */
#intro {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
  z-index: 0;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gato {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(200,164,212,0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 60px rgba(200,164,212,0.4);
}

.intro-def {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  color: var(--white70);
  line-height: 1.9;
  max-width: 420px;
}

.intro-def em { color: var(--iris); font-style: italic; }

.intro-btn {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--white40);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

.intro-btn:hover {
  background: var(--white15);
  border-color: var(--white);
}

/* =====================
   MAIN / CARRUSEL
   ===================== */
#main {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  display: none;
  z-index: 1;
}

.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  font-weight: 300;
  color: var(--white70);
}

/* CARRUSEL */
.carousel-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 36px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide.active-slide {
  opacity: 1;
  pointer-events: all;
}

/* FLECHAS — imagen arrow.png */
.arrow-btn {
  position: absolute;
  bottom: 28px;
  z-index: 10;
  background: none;
  border: none;
  cursor: none;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.85;
}

.arrow-btn img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(200,164,212,0.7));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  display: block;
}

.arrow-btn:hover img {
  transform: scale(1.18);
  filter: drop-shadow(0 0 20px rgba(200,164,212,1)) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

.arrow-btn:active img {
  transform: scale(0.92);
}

.arrow-btn::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--echo-color, rgba(200,164,212,0.9));
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.arrow-btn::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--echo-color, rgba(200,164,212,0.6));
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.arrow-btn.clicked::after {
  animation: arrow-echo 0.7s ease-out forwards;
}

.arrow-btn.clicked::before {
  animation: arrow-echo 1s ease-out 0.2s forwards;
}

@keyframes arrow-echo {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

.arrow-prev { left: calc(50% - 120px); }
.arrow-prev img { transform: rotate(180deg); }
.arrow-prev:hover img { transform: rotate(180deg) scale(1.18); }
.arrow-prev:active img { transform: rotate(180deg) scale(0.92); }
.arrow-next { left: calc(50% + 10px); }

/* COUNTER */
.slide-counter {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white40);
  font-family: var(--font-mono);
}

/* GLASS CARD */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 40px 48px;
  max-width: 480px;
  width: 100%;
}

.card-num {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--iris);
  margin-bottom: 16px;
  font-weight: 700;
}

.card-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.card-title em {
  font-style: italic;
  color: var(--iris);
}

.card-text {
  font-size: 12px;
  color: var(--white70);
  line-height: 1.8;
  margin-bottom: 28px;
}

.card-text em { color: var(--iris); font-style: italic; }

.card-btn {
  background: none;
  border: 1px solid var(--white40);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.card-btn:hover {
  background: var(--white15);
  border-color: var(--white);
}

.card-author {
  font-size: 11px;
  color: var(--white40);
  font-style: italic;
  margin-top: -8px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 36px;
  z-index: 10;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white40);
  text-transform: uppercase;
}

/* =====================
   INNER SECTIONS
   ===================== */
.inner-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-btn {
  background: none;
  border: none;
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--white); }

.nav-logo-small {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 300;
  color: var(--white40);
}

.inner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.inner-content {
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 36px 20px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.section-header {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.filo-box {
  text-align: left;
  width: 100%;
}

.section-header {
  margin-bottom: 28px;
}

.section-num {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--iris);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-concept {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--iris2);
  font-weight: 700;
}

/* FILO BOX */
.filo-box {
  border-left: 2px solid var(--iris);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--white70);
}

.filo-box em { color: var(--iris); font-style: italic; }
.filo-ref {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  color: var(--white40);
  font-style: italic;
}

/* RELOJ */
.reloj-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
  z-index: 10;
}

.reloj-wrap:active { cursor: grabbing; }

#clock-canvas {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200,164,212,0.3), 0 0 80px rgba(168,212,228,0.15);
}

.clock-stats {
  display: contents;
}

.stat-box {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200,164,212,0.2);
  padding: 10px 20px;
  min-width: 120px;
  text-align: center;
  cursor: grab;
  transition: box-shadow 0.2s;
}

.stat-box:hover {
  box-shadow: 0 0 20px rgba(200,164,212,0.2);
}

.stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(200,164,212,0.6);
  margin-bottom: 4px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 400;
  color: rgba(200,164,212,0.95);
  line-height: 1;
}

/* Header y filobox del reloj — arriba izquierda */
#sec-reloj .section-header {
  position: absolute;
  top: 70px;
  left: 36px;
  text-align: left;
  margin: 0;
  max-width: 400px;
}

#sec-reloj .filo-box {
  position: absolute;
  top: 160px;
  left: 36px;
  max-width: 380px;
  font-size: 11px;
}

/* =====================
   FLY A THING
   ===================== */
#sec-fly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#sec-fly .inner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.85);
}

#sky-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.fly-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 70px 24px 20px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.fly-header {
  text-align: center;
  margin-bottom: 8px;
}

.fly-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.object-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 700px;
}

.obj-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white70);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 80px;
  backdrop-filter: blur(8px);
}

.obj-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200,164,212,0.4));
  transition: transform 0.2s, filter 0.2s;
}

.obj-btn:hover {
  background: var(--white15);
  border-color: var(--white40);
  transform: translateY(-2px);
}

.obj-btn:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(200,164,212,0.8));
}

.obj-btn.selected {
  border-color: var(--iris);
  background: rgba(200,164,212,0.12);
  color: var(--white);
}

.obj-btn.selected img {
  filter: drop-shadow(0 0 16px rgba(200,164,212,1));
}

/* FLY UI — en vuelo */
#fly-ui {
  position: absolute;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

.fly-top {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  pointer-events: all;
}

.sky-count {
  font-size: 11px;
  color: var(--white40);
  font-style: italic;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* WEATHER — bottom left */
.weather-panel {
  position: absolute;
  bottom: 52px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: all;
}

.weather-btns {
  display: flex;
  gap: 6px;
}

.weather-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white70);
  font-size: 18px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
  border-radius: 50%;
}
.weather-btn:hover  { background: rgba(255,255,255,0.12); }
.weather-btn.active { border-color: var(--iris); background: rgba(200,164,212,0.2); }

.wind-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--white40);
}
.wind-control input[type=range] { width: 100px; }

/* OBJECTS — bottom right */
.fly-obj-panel {
  position: absolute;
  bottom: 52px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: all;
}

.fly-obj-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white40);
}

.fly-obj-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 260px;
}

.obj-mini-btn {
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  border-radius: 50%;
  padding: 6px;
}
.obj-mini-btn img { width: 100%; height: 100%; object-fit: contain; }
.obj-mini-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.15); border-color: var(--iris); }
.obj-mini-btn.selected { border-color: var(--iris); background: rgba(200,164,212,0.2); }

.btn-reset {
  pointer-events: all;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white40);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}
.btn-reset:hover { border-color: var(--iris); color: var(--iris); }

.btn-leave {
  pointer-events: all;
  align-self: flex-end;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}

.btn-leave:hover { border-color: var(--white); color: var(--white); }

/* FLY — actions, invite, buttons */
.fly-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  border: 1px solid var(--white);
  background: var(--white15);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  cursor: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.btn-primary:hover { background: rgba(255,255,255,0.25); }

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.25);
  background: none;
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); }

.invite-msg {
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  max-width: 400px;
  width: 100%;
}
.invite-msg > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white40);
  margin-bottom: 8px;
}
.invite-link-wrap { display: flex; gap: 8px; }
#invite-link {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 10px;
  outline: none;
  min-width: 0;
}
.btn-copy {
  border: 1px solid rgba(255,255,255,0.25);
  background: none;
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 7px 12px;
  cursor: none;
  letter-spacing: 0.08em;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-copy:hover { background: var(--white15); }
.btn-copy.copied { color: var(--iris); }

.chooser-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white40);
}

/* MAPA */
.mapa-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 8px;
  margin-bottom: 12px;
}

#mapa-svg { min-width: 560px; width: 100%; }

.mapa-footnote {
  font-size: 10px;
  color: var(--white40);
  font-style: italic;
}

/* CRÉDITO */
.credit {
  position: fixed;
  bottom: 18px;
  left: 24px;
  z-index: 9998;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  text-transform: lowercase;
}
@media (max-width: 768px) {

  /* 1. Intro title no cortado */
  .intro-title {
    font-size: clamp(28px, 10vw, 54px);
    letter-spacing: 0.08em;
    word-break: break-word;
  }

  .intro-content { padding: 16px; gap: 14px; }

  /* 2. No scroll en intro ni carrusel — handled in JS */

  /* 3. Reloj más pequeño en móvil */
  #clock-canvas {
    width: 220px !important;
    height: 220px !important;
  }

  #sec-reloj .section-header {
    position: relative;
    top: auto; left: auto;
    max-width: 100%;
    padding: 0 16px;
    text-align: left;
  }

  #sec-reloj .filo-box {
    position: relative;
    top: auto; left: auto;
    max-width: 100%;
    margin: 8px 16px;
    font-size: 10px;
  }

  .clock-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px;
  }

  .stat-box { min-width: 90px; padding: 8px 12px; }
  .stat-val { font-size: 22px; }

  /* 4. Fly — botones más pequeños y apilados */
  .fly-overlay { padding: 60px 16px 16px; gap: 10px; }

  .fly-header h2 { font-size: 22px; }

  .object-grid { gap: 6px; }

  .obj-btn {
    min-width: 70px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .obj-btn img { width: 36px; height: 36px; }

  .fly-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 10px;
  }

  /* Paneles clima y objetos en vuelo — no se superpongan */
  .weather-panel {
    bottom: 44px;
    left: 12px;
  }

  .weather-btn { width: 34px; height: 34px; font-size: 14px; }

  .fly-obj-panel {
    bottom: 44px;
    right: 12px;
    max-width: 160px;
  }

  .obj-mini-btn { width: 32px; height: 32px; padding: 4px; }

  .fly-obj-mini { gap: 4px; max-width: 180px; }

  .fly-top { top: 60px; padding: 0 16px; }

  /* 5. Mapa — título no cortado */
  #sec-mapa .section-header {
    padding: 0 16px;
  }

  #sec-mapa .inner-content {
    padding: 80px 0 20px;
  }

  .section-header h2 {
    font-size: clamp(20px, 6vw, 32px);
    word-break: break-word;
  }

  /* Carrusel — glass card más pequeña */
  .glass-card {
    padding: 20px 18px;
    max-width: 100%;
  }

  .card-title { font-size: clamp(22px, 6vw, 36px); }

  .main-nav { padding: 16px 18px; }
  .nav-logo { font-size: 12px; }

  /* Crédito más pequeño */
  .credit { font-size: 9px; bottom: 12px; left: 14px; }

  /* Palabras — en móvil ocultar panel sugerencias, solo input */
  .palabras-sugerencias {
    display: none;
  }

  .palabras-ui {
    justify-content: flex-end;
    padding: 0 0 60px 0;
  }

  .palabras-input {
    font-size: clamp(20px, 6vw, 32px);
    width: 88vw;
  }

  .palabras-hint {
    font-size: 9px;
  }

  .palabras-input-wrap {
    align-items: center;
    padding: 0 16px;
  }
}


/* =====================
   DUST CANVAS — transición intro
   ===================== */
#dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* =====================
   DE LA PALABRA AL COLOR
   ===================== */
#sec-palabras {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#sec-palabras .inner-bg {
  filter: brightness(1);
}

#palabras-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.palabras-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 48px 0;
}

/* Panel lateral sugerencias */
.palabras-sugerencias {
  position: absolute;
  top: 72px;
  right: 28px;
  width: 180px;
  max-height: calc(100vh - 160px);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  padding: 16px 14px;
  pointer-events: all;
  overflow: hidden;
}

.sug-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white40);
  margin-bottom: 14px;
  display: block;
}

.sug-list {
  position: relative;
  height: calc(100vh - 220px);
  overflow: hidden;
}

.sug-word {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white70);
  cursor: none;
  white-space: nowrap;
  transition: color 0.2s;
  pointer-events: all;
  letter-spacing: 0.05em;
}

.sug-word:hover { color: var(--white); }

/* Input */
.palabras-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: all;
}

.palabras-input {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 0.2em;
  text-align: center;
  outline: none;
  width: min(500px, 80vw);
  padding: 8px 0;
  background: transparent;
  caret-color: var(--iris);
}

.palabras-input::placeholder {
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.15em;
}

.palabras-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  max-width: 88vw;
}

.sug-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white70);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}
.sug-chip:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.palabras-hint {
  font-size: 9px;
  color: var(--white40);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
