/* Reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Estilos generales */
body {
  padding: 20px;
  font-family: sans-serif;
  background-color: #1e2426;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Logo */
.logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 20px auto;
  transition: transform 0.3s ease;
  cursor: pointer;

  /* Animación de entrada + pulso infinito */
  opacity: 0;
  transform: scale(0.8);
  animation: logoFadeIn 1.2s ease-in-out forwards, pulse 3s ease-in-out infinite;
}

/* Hover logo */
.logo:hover {
  transform: scale(1.1);
}

/* Animación de entrada */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animación de pulso (latido) */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}

/* Grid de cartas */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto;
}

/* Responsive grid */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Cartas */
.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.2s;
}

.card-img:hover {
  transform: scale(1.05);
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.fullscreen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.5);
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.fullscreen-overlay.active img {
  transform: scale(1);
}

/* Animación entrada cartas */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-link {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
}

.card-link.animate-in {
  animation-name: fadeInUp;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: var(--animation-delay);
}
.unete-section {
  width: 100%;
  background: linear-gradient(135deg, #2d3436, #1e272e);
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  animation: fadeInUp 1s ease-out forwards;
}

.unete-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: #2f3640;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  animation: pulse 4s infinite ease-in-out;
}

.unete-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #3f79ff;
}

.unete-card p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.unete-btn {
  background-color:#3f79ff;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.unete-btn:hover {
  background-color: #3f79ff;
}
