
:root {
  --bg: #585df5;
  --fg: #060d45;
  --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;
  text-align: center;
}

h1, h2, h3, nav {
  font-family: "Meksans", monospace;
  letter-spacing: 0.04em;
  text-align: center;
}

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 10px 0;
  text-align: center;
}

h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

p {
  max-width: 600px;
  font-size: 1rem;
  margin: 0 auto;
  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;
}


#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 {
  display: block;          /* Permite centrar con margin */
  margin: 40px auto;       /* Espacio arriba y abajo */
  width: 420px;            /* Tamaño controlado */
  max-width: 90vw;         /* Responsive */
  image-rendering: pixelated;

  /* Opcional estética */
  border-radius: 8px;      /* Suave */

}

/* 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: 50px; /* Ajusta este valor para moverlo en el eje X */
  width: 100px; /* Tamaño similar al clay ritual */
  height: auto;
  image-rendering: pixelated;
  z-index: 20;
  /* 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;
  }
}

.image {
  display: flex;
  justify-content: center;
  margin: 40px 0 40px;   /* aire arriba y abajo */
}

.image img {
  width: 800px;          /* tamaño ideal desktop */
  max-width: 90vw;       /* responsive */
  height: auto;

  image-rendering: pixelated;

  /* estética */
  border-radius: 12px;
  
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;

  max-width: 1000px;   /* ancho total del bloque */
  margin: 60px auto;   /* centra el conjunto */
  padding: 0 20px;
}

/* TARJETA */
.info-card {
  text-align: center;
}

/* IMÁGENES */
.info-card img {
  width: 220px;
  height: auto;
  margin-bottom: 20px;

  image-rendering: pixelated;
}


/* TEXTO */
.info-card p {
  max-width: 420px;
  margin: 0 auto 14px;
}

.site-footer {
  font-size: 0.9rem;
  opacity: 0.7;
  padding: 20px 0;
  text-align: center;
}

#info {
  min-height: auto;
  padding-bottom: 20px;
}
