* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  
  /* Agregamos el GIF como fondo */
  background-image: url("img/fondo.gif"); 
  background-size: cover; /* Hace que el GIF ocupe toda la pantalla sin dejar huecos */
  background-position: center;
  background-attachment: fixed; /* ¡Clave! Hace que el fondo se quede quieto y el texto patine por encima al scrollear */
  
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  margin-bottom: 40px;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
  width: 100%;
  height: 220px; /* Aumentamos la altura para que entre todo el logo sin recortes */
  background-image: url("img/logo.png");
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}


nav {
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end; /* ESTA ES LA CLAVE: empuja todo a la derecha */
  align-items: center;
}

.logo {
  height: 80px; /* Ajustá esto dependiendo de qué tan grande sea la imagen de tu logo */
  width: auto;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

/* Agrupamos el link normal, el visitado y el activo (cuando haces el clic) */
nav a, 
nav a:visited, 
nav a:active {
  text-decoration: none;
  color: #ffffff !important; /* Blanco puro obligatorio para todos los estados */
  font-size: 18px;
  transition: 0.3s;
}

/* Y mantenemos intacto el efecto lindo de cuando pasás el mouse por arriba */
nav a:hover {
  opacity: 0.7; 
}



/* --- HERO --- */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #000000;
}

.magic-text {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  color: #ffffff;
  display: inline-block;
  animation: magicFloat 5s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes magicFloat {
  0% { transform: translateY(0px) rotate(0deg); color: #d291bc; }
  33% { transform: translateY(-10px) rotate(1deg); color: #e2a9ce; }
  66% { transform: translateY(5px) rotate(-1deg); color: #c582af; }
  100% { transform: translateY(0px) rotate(0deg); color: #d291bc; }
}

/* --- SECCIONES GENERALES --- */
.about, .work, .contacto {
  padding: 80px 20px;
  max-width: 800px;
  margin: auto;
}

/* Espaciado general para los subtítulos */
section h2 {
  margin-bottom: 20px;
}

/* Espacio EXTRA específico entre el título de ilustraciones y los posteos */
.work h2 {
  margin-bottom: 60px; 
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.instagram-media {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.instagram-media:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(210, 145, 188, 0.3);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.final-img {
  text-align: center;
  padding: 60px 20px;
}

.final-img img {
  max-width: 600px;
  width: 100%;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}