/* hecho por r3k1 */
.pagina > .cabeza { margin-inline: calc(-1 * var(--lado)); padding-inline: var(--lado) }
.pagina { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 0 var(--lado); max-width: var(--ancho); margin: 0 auto; position: relative; z-index: 1 }
.heroe { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(24px, 4vw, 72px); padding: clamp(16px, 4vh, 48px) 0 }
.heroe { margin-inline: -8px; padding-inline: 8px }

.titulo { font-family: var(--anton); margin-top: clamp(14px, 2.4vh, 24px); font-weight: 400; text-transform: uppercase; font-size: min(8.2vw, 13.2vh); line-height: .92; letter-spacing: .004em }
.rota { display: inline-block; color: var(--acento-2); white-space: nowrap }
.titulo .punto { color: var(--acento-2) }
.titulo .t { display: inline }
.baja { margin-top: clamp(16px, 2.8vh, 28px); max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--gris); font-weight: 450 }
.acciones { margin-top: clamp(20px, 3.4vh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px }


.nuevo { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 1px solid var(--linea); font-size: 15px; font-weight: 500; transition: scale .16s ease-out, border-color .3s }
.nuevo i { width: 8px; height: 8px; border-radius: 50%; background: var(--acento) }
.nuevo b { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--acento-texto) }
.nuevo:active { scale: .97 }

.logo-vivo { position: relative; justify-self: center; width: 100%; max-width: 640px; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent }
.pieza-svg { width: 100%; height: auto; color: var(--tinta); overflow: visible }
.pieza-svg .p { touch-action: none; cursor: grab }
.logo-vivo:active .p { cursor: grabbing }
.pieza-svg .rojo path { fill: var(--acento) }
.nota { position: absolute; left: 10%; bottom: -6%; display: flex; align-items: flex-end; gap: 4px; font-family: "Caveat Brush", cursive; font-size: clamp(24px, 2vw, 32px); color: var(--acento); rotate: -7deg; pointer-events: none }
.nota svg { width: 58px; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; translate: 0 -40% }

.puertas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.puerta {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 16px 18px 16px 16px; border-radius: 24px; background: var(--celda); border: 1px solid var(--linea); transition: scale .16s ease-out, border-color .3s; position: relative; isolation: isolate
}
.puerta:active { scale: .98 }
.luz-caja { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none }
.luz { position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--brillo), transparent); opacity: 0 }
.icono { grid-row: 1 / 3; width: 72px; height: 72px; border-radius: 18px; background: var(--boton); display: grid; place-items: center }
.icono svg { width: 52px; height: 40px; overflow: visible; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.num { align-self: end; font-size: 12px; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; letter-spacing: .04em }
.nombre { align-self: start; display: grid; gap: 2px; min-width: 0 }
.nombre b { font-size: 20px; font-weight: 600; letter-spacing: -.02em }
.nombre small { font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ir { grid-row: 1 / 3; grid-column: 3; border: 1px solid var(--linea); color: var(--tinta) }

.icono .ventana { fill: var(--celda) }
.icono .punto { fill: var(--gris); stroke: none }
.icono .punto.rojo { fill: var(--acento) }
.icono .bloque { fill: var(--gris); stroke: none }
.icono .bloque.rojo { fill: var(--acento) }
.icono .cursor { fill: var(--tinta); stroke: var(--celda); stroke-width: 1.2 }
.icono .suelo { stroke: var(--linea) }
.icono .alma .cuerpo { fill: var(--tinta); stroke: none }
.icono .alma .ojos { fill: var(--boton); stroke: none }
.icono .estela circle { fill: var(--acento); stroke: none; opacity: 0 }
.icono .gato .cara, .icono .gato .oreja { fill: var(--tinta); stroke: none }
.icono .gato .ojo { fill: var(--boton); stroke: none }
.icono .gato .feliz { stroke: var(--boton); stroke-width: 2.2; opacity: 0 }
.icono .gato .nariz { fill: var(--acento); stroke: none }
.icono .gato .bigotes { stroke: var(--gris); stroke-width: 1.4 }

.pie { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px 22px; font-size: 13px; color: var(--gris) }

@media (hover: hover) and (pointer: fine) {
  .nuevo:hover { border-color: var(--gris) }
  .puerta:hover { border-color: color-mix(in srgb, var(--gris) 45%, transparent) }
}

@media (max-width: 1100px) {
  .puerta { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 14px }
  .icono { width: 60px; height: 60px; border-radius: 16px }
  .icono svg { width: 44px; height: 34px }
}

@media (max-width: 860px) {
  .heroe { grid-template-columns: 1fr; gap: 8px; padding-top: 8px }
  .titulo { font-size: clamp(48px, 15vw, 96px) }
  .logo-vivo { max-width: 520px; margin: 18px auto 10px }
  .nota { left: auto; right: 6%; bottom: -12% }
  .nota { flex-direction: row-reverse }
  .nota svg { scale: -1 1 }
  .nombre small { white-space: normal }
  .puertas { grid-template-columns: 1fr; gap: 10px; margin-top: 14px }
  .pie { flex-direction: column; gap: 4px; align-items: center }
}

@media (max-width: 420px) {
  .nuevo { width: 100%; justify-content: center }
}


.entrando :is(.etiqueta, .titulo, .baja, .acciones > *, .pieza-svg, .nota, .puerta, .pie) { opacity: 0; animation: aparecer 0s 2.5s forwards }
@media (min-width: 861px) and (max-width: 1280px) { .nombre small { white-space: normal; line-height: 1.2 } }
