/* -------------------- RESET Y FUENTES -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  line-height: 1.6;
  color: #3e2e20;
  background-size: cover;
  position: relative;
  z-index: 1;
}

/* -------------------- BACKGROUND DINÁMICO -------------------- */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  z-index: -2;
}

.bg-image {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
}

.zoe1, .zoe2, .zoe3 {
  animation: fadeIn 1s forwards;
  position: absolute;
}

.zoe1 { left: 0; animation-delay: 0.5s; z-index: 1; }
.zoe2 { left: 0; animation-delay: 2s;   z-index: 2; }
.zoe3 { right: 0; animation-delay: 3s;  z-index: 3; }

/* -------------------- NAVBAR -------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: fixed;
  width: 100%;
  background: rgb(90, 65, 50);
  z-index: 10;
}

.navbar-left .logo,
.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
}

.logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

.navbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-icon {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  align-items: flex-end;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-20px);
  transition: all 0.7s ease-in-out;
}

.menu.active {
  opacity: 1;
  max-height: 150px;
  transform: translateY(0);
}

.menu li a {
  color: #fff8f0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 10px 15px;
  border-radius: 100px;
  animation: slideInRight 0.6s ease forwards;
}

.menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ebbe91;
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('zoe-fondo.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.family-list img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(116, 74, 12, 0.213);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: #fff8f0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
               -2px -2px 4px rgba(0, 0, 0, 0.3),
               4px 4px 6px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 3s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
}
/* --------------------CLICK IMAGEN -----------*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border: 4px solid rgb(111, 57, 3);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.lightbox-content:hover {
  transform: scale(1.03);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover {
  color: #ccc;
}

/* -------------------- SECCIONES -------------------- */
.section {
  padding: 80px 20px;
  background-color: transparent;
  position: relative;
  z-index: 1;
  animation: fadeInUp 2s ease;
  scroll-margin-top: 80px;
}

.section.abo,
.section.alt,
.section.gallery,
.section.day {
  background-color: rgba(228, 195, 172, 0.765);
}

    .section.about {
    background-color: rgba(228, 195, 172, 0.765);
      padding: 100px 20px;
    }

    .about-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 60px;
      align-items: center;
    }

    .about-image {
      position: relative;
    }

    .about-image::before {
      content: '';
      position: absolute;
      top: -20px;
      left: -20px;
      right: 20px;
      bottom: 20px;
      background: linear-gradient(45deg, #ffd700, #ff8c00);
      border-radius: 50%;
      z-index: -1;
      animation: pulse 2s infinite;
    }

    .about-image img {
      width: 300px;
      height: 300px;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      border: 8px solid white;
    }

    .about-content {
      background: rgba(255, 255, 255, 0.9);
      padding: 40px;
      border-radius: 30px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.2);
    }

    .about-content h2 {
      font-size: 3rem;
      color: #8b4513;
      margin-bottom: 30px;
      font-family: 'Comic Neue', cursive;
      text-align: center;
      position: relative;
    }

    .about-content h2::after {
      content: '🐾';
      position: absolute;
      right: -40px;
      top: 0;
      font-size: 2rem;
      animation: bounce 2s infinite;
    }

    .about-content p {
      font-size: 1.3rem;
      line-height: 1.8;
      color: #5d4037;
      text-align: justify;
      font-weight: 400;
    }
.section.day {
  color: #4b2e12;
  padding: 60px 20px;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #4a3628;
  text-align: center;
}

.section p,
.section ul {
  font-size: 1.2rem;
  color: #5b4331;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(239, 228, 207, 0.934);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.family-list li {
  margin-bottom: 10px;
}

/* -------------------- GALERiA -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.407);
}

/* -------------------- FOOTER -------------------- */
.footer {
  background-color: rgb(70, 50, 35);
  color: white;
  text-align: center;
  padding: 16px 20px;
  font-size: 1rem;
}

/* -------------------- TIMELINE -------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-item {
  background-color: #fffaf5;
  border-left: 5px solid #a97443;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-item .time {
  font-weight: 600;
  color: #a97443;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

.timeline-item:hover {
  transform: translateY(-5px);
  background-color: #fff3e6;
  border-left-color: #c2875b;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.486);
}
.decoracion {
  position: fixed;
  font-size: 2rem;
  opacity: 0.4;
  pointer-events: none;
  animation: flotar 10s infinite linear;
  z-index: 999;
}

.decoracion-1 {
  top: -5%;
  left: 10%;
  animation-delay: 0s;
}

.decoracion-2 {
  top: -10%;
  left: 40%;
  animation-delay: 2s;
}

.decoracion-3 {
  top: -15%;
  left: 70%;
  animation-delay: 4s;
}

.decoracion-4 {
  top: -8%;
  left: 85%;
  animation-delay: 6s;
}

@keyframes flotar {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

/* -------------------- ANIMACIONES -------------------- */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes fadeIn {
      0% { opacity: 0; }
      100% { opacity: 1; }
    }

    @keyframes heroTextAnimation {
      0% { 
        opacity: 0; 
        transform: translateY(60px) scale(0.8) rotateX(90deg);
      }
      50% { 
        opacity: 0.8; 
        transform: translateY(20px) scale(0.95) rotateX(45deg);
      }
      100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg);
      }
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-10px); }
      60% { transform: translateY(-5px); }
    }

    @keyframes wiggle {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(1deg); }
      75% { transform: rotate(-1deg); }
    }


    @keyframes lightboxZoom {
      0% { transform: translate(-50%, -50%) scale(0.3); }
      100% { transform: translate(-50%, -50%) scale(1); }
    }

    @keyframes slideLeft {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); }
    }


    
/* -------------------- MEDIA QUERIES -------------------- */
@media screen and (max-width: 480px) {
  .hero-text {
    font-size: 1.8rem;
    padding: 0 10px;
    text-align: center;
  }

  .navbar {
    padding: 5px 10px;
  }

  .menu {
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
  }

  .menu li a {
    padding: 10px;
    font-size: 1rem;
    border-radius: 0;
    width: 100%;
    display: block;
  }

  .container {
    padding: 15px;
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
    padding: 0 20px;
    text-align: center;
  }

  .navbar {
    padding: 8px 20px;
    flex-direction: column;
    align-items: center;
  }

  .menu li a {
    font-size: 1.1rem;
    padding: 12px 15px;
  }

  .container {
    padding: 30px;
    max-width: 90%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-text {
    font-size: 3.5rem;
  }

  .container {
    max-width: 800px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media screen and (min-width: 1025px) {
  .hero-text {
    font-size: 4rem;
  }

  .container {
    max-width: 900px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}@media screen and (max-width: 768px) {
  .about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .about-image::before {
    display: none;
  }

  .about-image img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .about-content {
    padding: 20px;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .navbar-right {
    width: 100%;
    align-items: center;
  }

  .menu {
    align-items: center;
  }

  .menu li a {
    font-size: 1rem;
    text-align: center;
  }

  .navbar-left .logo {
    font-size: 1.2rem;
  }

  .hero {
    background-position: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  .hero-text {
    font-size: 1.6rem;
    padding: 10px;
  }
}

.decoracion i {
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
  font-size: 2.2rem;
}
