@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap");

/* Degradado para secciones que vienen desde la izquierda */
section.from-left {
  background: linear-gradient(135deg, #f4bbbd, #df999b);
}

/* Degradado para secciones que vienen desde la derecha (inverso) */
section.from-right {
  background: linear-gradient(135deg, #df999b, #f4bbbd);
}

body {
  color: #fff;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

section {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
}

.hidden {
  opacity: 0;
  filter: blur(5px);
  transition: all 1s;
}

.from-left {
  transform: translateX(-100vw);
}

.from-right {
  transform: translateX(100vw);
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* Logo container */
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Logo specific styles */
.logo {
  background-color: #222;
  border-radius: 10%;
  margin: 0 0.5rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1s;
}

.logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Delay for sequential animation */
.logo:nth-child(2) {
  transition-delay: 200ms;
}

.logo:nth-child(3) {
  transition-delay: 400ms;
}

.logo:nth-child(4) {
  transition-delay: 600ms;
}
section.from-left h1,
section.from-left p,
section.from-left h2 {
  color: #131316; /* Texto oscuro para mejor contraste */
  text-shadow: none;
}

section.from-right h1,
section.from-right p,
section.from-right h2 {
  color: #131316; /* Texto oscuro para mejor contraste */
  text-shadow: none;
}

/* Dulces */
section.snacks {
  background: linear-gradient(135deg, #ffb6c1, #ff4d6d);
  color: #fff;
}

/* Cultura & Colombia */
section.cultura {
  background: linear-gradient(135deg, #ffd700, #50c878);
  color: #131316;
}

/* Animales */
section.animales {
  background: linear-gradient(135deg, #a8e6cf, #379683);
  color: #fff;
}

/* Cosas Tiernas */
section.tierno {
  background: linear-gradient(135deg, #f8bbd0, #ce93d8);
  color: #131316;
}

/* Música */
section.musica {
  background: linear-gradient(135deg, #000000, #8e44ad, #1abc9c);
  color: #fff;
}

/* Pop culture */
section.pop {
  background: linear-gradient(135deg, #4facfe, #e73c7e);
  color: #fff;
}

/* Estudio */
section.estudio {
  background: linear-gradient(135deg, #bbdefb, #e3f2fd);
  color: #131316;
}

/* Estilo mosaico - Corregido */
.mosaic {
  column-count: 4;
  column-gap: 15px;
  width: 95%;
  margin: 2rem auto;
  break-inside: avoid;
}
/* Estilo base para imágenes del mosaico */
.mosaic img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 15px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
  break-inside: avoid;

  /* Efecto inicial oculto */
  opacity: 0;
  transform: translateY(30px);
}

/* Cuando las imágenes entran en la vista */
.mosaic.show img {
  opacity: 1;
  transform: translateY(0);
}

.mosaic img:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

/* Responsivo */
@media (max-width: 1200px) {
  .mosaic {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .mosaic {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .mosaic {
    column-count: 1;
  }
}
/* Efecto degradado en títulos */
section h1,
section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease forwards, bounceEmoji 2s infinite;
}

/* H1 más grande */
section h1 {
  font-size: 4rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem;
  }

  section h2 {
    font-size: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  section h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 0.5rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin: 0.5rem;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 320px) {
  section h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.2rem;
  }
}

/* Animación entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para emojis (si la estás usando) */
@keyframes bounceEmoji {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
