@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Tilt+Neon&display=swap");

/* ------------------------
   1. Reset y Base
------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Nunito", sans-serif;
  scroll-behavior: smooth;
  background: radial-gradient(circle, rgba(67,69,112,1) 3%, rgba(35,36,57,1) 60%);
  /* Base font-size permanece en 16px, pero luego se ajusta en pantallas 4K */
}

img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ------------------------
   2. Sección HOME
------------------------- */
.home {
  display: grid;
  grid-template-columns: 45% 50%;
  place-items: center;
  gap: 50px;
  min-height: 100vh;
  padding: 130px 80px;
}

.description {
  color: #fff;
  padding: 0 50px;
}

.title {
  font-family: "Tilt Neon", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 30px;
}

.gradient-text {
  background: var(--gradiente-multicolor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paragraph {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  line-height: 1.5;
  margin-bottom: 30px;
}

#form {
  display: flex;
  justify-content: center;
}

/* ------------------------
   3. Usuarios (Grid)
------------------------- */
.users-color-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}

.item {
  max-width: 200px;
  aspect-ratio: 1/1;
  background: #fff;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: calc(0.2s * var(--i));
}

/* Formas y colores específicos */
.item:nth-child(1)  { background: #67d7e1; border-radius: 50% 50% 0 50%; }
.item:nth-child(2)  { border-radius: 50% 50% 0 0; }
.item:nth-child(3)  { background: #6cc164; border-radius: 50%; }
.item:nth-child(4)  { border-radius: 0 0 0 50%; }
.item:nth-child(5)  { border-radius: 0 50% 50% 0; }
.item:nth-child(6)  { background: #8071a8; border-radius: 0 50% 50% 50%; }
.item:nth-child(7)  { border-radius: 50% 50% 0 50%; }
.item:nth-child(8)  { background: #fe7519; border-radius: 50% 0 0 50%; }
.item:nth-child(9)  { background: #f5bec3; border-radius: 0 50% 50% 0; }
.item:nth-child(10) { border-radius: 50%; }
.item:nth-child(11) { background: #fcd659; border-radius: 50% 0 50% 50%; }
.item:nth-child(12) { border-radius: 50% 0 0 0; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Para que el <a class="btn"> se comporte como tu botón */
a.boton-verde {
  display: inline-flex;           /* igual que tu botón */
  align-items: center;
  gap: 8px;
  text-decoration: none;          /* quita subrayado */
}

/* Mantiene el hover degradado */
a.boton-verde:hover {
  background-position: right;
}

.mensaje-error {
    color: var(--color-rojo);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

/* ------------------------
   4. Responsive
------------------------- */
@media (max-width: 1024px) {
  .home {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 100px 40px;
  }
  .description {
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .home {
    padding: 40px 20px;
    gap: 30px;
  }
  .boton-verde {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------
   5. Ajustes para 4K
------------------------- */
@media (min-width: 2560px) {
  html { font-size: 18px; }
  .title {
    font-size: clamp(4rem, 4vw, 6rem);
  }
  .paragraph {
    font-size: clamp(1rem, 2vw, 1.5rem);
  }
  .boton-verde {
    font-size: 1.25rem;
    padding: 16px 24px;
  }
}