:root {
  --bg: #a1dbfd;
  --fg: #103cff;
  --muted: #9aa0ff;
}

* {
  box-sizing: border-box;
}


/* ===================== */
/* FONT */
/* ===================== */

@font-face {
  font-family: "Meksans";
  src:
    url("./fonts/meksans/MEKSans-Regular.woff2") format("woff2"),
    url("./fonts/meksans/MEKSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===================== */
/* BASE */
/* ===================== */

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: monospace;
}

h1, h2, nav {
  font-family: "Meksans", monospace;
  letter-spacing: 0.04em;
}

a {
  color: var(--fg);
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

nav {
  position: fixed;
  font-size: 1.3rem;
  top: 0;
  width: 100%;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  background: var(--bg);
}

nav a {
  margin-left: 16px;
  opacity: .8;
}

section {
  min-height: 100vh;
  padding: 60px 2vw;
  position: relative;
}

section:first-of-type {
  min-height: 100vh;
}


h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 0 20px 0;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

p {
  max-width: 600px;
  line-height: 1.6;
  opacity: .9;
}

/* --- SURI BACKGROUND --- */

#suri-bg {
  position: absolute;
  color: #a1dbfd;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
}

.pixel {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.486);
  pointer-events: none;
}

/* Estado inicial de todos los links */
a {
  color: var(--fg);
  text-decoration: none; /* Sin subrayado por defecto */
  transition: all 0.2s ease-in-out;
  position: relative;
}

/* Estado cuando pasas el mouse o tocas en móvil */
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px; /* Le da aire para que no toque la letra */
  text-decoration-thickness: 1px; /* Un poco más grueso para que se note el "pixel" */
  opacity: 1; /* Asegura que se vea nítido */
}

/* --- CONTENT LAYER --- */

.content {
  position: relative;
  z-index: 1;
}

/* --- GRIDS --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* --- WORKS (LIMPIO) --- */
.item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: transparent; /* Eliminamos el blanco */
  opacity: 1; /* Eliminamos la transparencia */
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- FOOTER --- */

footer {
  padding: 40px 10vw; /* Más espacio en móvil */
  margin-bottom: 50px; /* Margen extra al final */
  position: relative;
  z-index: 20; /* Valor alto para que siempre esté arriba */
  
  text-align: center;
}



#nubes-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Fondo absoluto */
  pointer-events: none;
  overflow: hidden;
}

.nube {
  animation: flotar 15s ease-in-out infinite alternate;
  position: absolute;
  opacity: 0.5; /* Ajusta qué tan "transparentes" son */
  transition: transform 0.3s ease-out;
}

@keyframes flotar {
  from { transform: translateX(10px); }
  to { transform: translateX(60px); }
}


/* Nuevo diseño para la sección Suri */
.suri-flex {
  display: flex;
  align-items: flex-start; /* Alinea al tope para que coincida con el título */
  gap: 70px;              /* Espacio entre el texto y la imagen */
  position: relative;
  z-index: 2;             /* Asegura que esté por encima del fondo interactivo */
}

.suri-text {
  flex: 1.5;              /* El texto toma más espacio */
}

.suri-visual img {
  position: absolute; /* Permite moverlo libremente */
  
  /* --- CONTROL DE EJES --- */
  top: 10px;     /* Eje Y: distancia desde arriba del contenedor */
  right: 10px;   /* Eje X: distancia desde la derecha */
  
  /* --- TAMAÑO --- */
  width: 600px;  /* Controla el ancho exacto del GIF */
  height: auto;
  
  /* --- ESTÉTICA --- */
  image-rendering: pixelated; 
  z-index: 5;    /* Asegura que esté por encima de otros textos si se cruzan */
}

/* Para que en móviles no quede flotando encima del texto de forma rara */
@media (max-width: 850px) {
  .suri-visual img {
    position: static; /* Vuelve a su lugar normal en la columna */
    width: 100%;
    margin: 20px auto;
    display: block;
  }
}

/* Layout para la sección Collect */
.collect-flex {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  position: relative;
}

.collect-text {
  flex: 1.5;
}

.collect-visual {
  flex: 1;
  position: relative;
}

.collect-visual img {
  position: absolute;
  top: 150px;
  right: 50vw; /* Ajusta este valor para moverlo en el eje X */
  width: 100px; /* Tamaño similar al clay ritual */
  height: auto;
  image-rendering: pixelated;
  z-index: 5;
  /* Animación opcional para que flote sutilmente */
  animation: flotar 10s ease-in-out infinite alternate;
}

/* Ajuste móvil para Collect */
@media (max-width: 100px) {
  .collect-flex {
    flex-direction: column;
  }
  .collect-visual img {
    position: static;
    width: 100px;
    margin-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
  }
}




