:root {
 :root {
  --olive: #768064;
}

section h2,
section h3,
section h4 {
  font-family: 'Great Vibes', cursive;
  color: var(--olive);
  text-align: center;
  font-weight: normal; /* optional: cursive fonts look better not bold */
}
  }
  
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    background: var(--light);
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 auto;

  }
  
 .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    text-align: center;
    color: white;
  }

  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/Background-image.jpg');
    background-size: cover; /*  fills the whole screen */
    background-position: center center; /* keeps cuties centered */
    background-repeat: no-repeat;
    background-color: black;
    z-index: 0;
    opacity: 40;
    animation: fadeIn 2s ease forwards;
  }
  
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 79, 79, 0.3);
    z-index: 1;
  }
  
.hero-intro p {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: white;
  margin: 1rem 0;
  letter-spacing: 1px;
  z-index: 2;
  position: relative;
  text-align: center;
  z-index: 3;
}

@media (max-width: 768px) {
  .hero-intro p {
    font-size: 2rem;
  }
}


  .hero-bottom {
    position: relative;
    z-index: 2;
  }
  
  .hero-top {
    margin-top: .02rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
  }

  .hero-date {
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5.3rem;
    letter-spacing: 1px;
  }
  
  .hero-top h1 {
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    font-size: 8rem;
    margin: 0;
  }
  
  .hero-bottom {
    margin-bottom: 20rem;
  }
  
  .hero-bottom p {
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    font-size: 5.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }

.countdown-section {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #ffffff; /* soft neutral background */
 
}

.countdown-section h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #556B2F; /* Olive green */
  margin-bottom: 1.5rem;
}

.countdown-title {
  font-family: 'Great Vibes', cursive; /* Or your chosen cursive font */
  font-size: 4rem;
  color: #5b6f52;
  margin-bottom: 1rem;
}

 .countdown-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
  
.countdown-box {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  min-width: 70px;
  text-align: center;
  flex: 1 1 70px;
  max-width: 80px;
}

.count-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #000;
}

/* Label styling */
.count-label {
  font-size: 0.9rem;
  color: #555;
}
.countdown-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #1a1a1a !important; /* olive accent */
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }


  .countdown-line {
    width: 80%;
    max-width: 400px;
    height: 2px;
    background-color: transparent;
    opacity: 0.6;
    margin: 1rem 0;
  }
  
  .countdown-timer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1rem auto; /* space between title and lines */
    max-width: 95vw;
  }
/* Responsive scaling */
@media (max-width: 480px) {
  .count-number {
    font-size: 2.2rem;
  }

  .countdown-box {
    min-width: 60px;
    padding: 0.8rem;
  }
}

.time-box {
  max-width: 80px;
  min-width: 60px;
  text-align: center;
  display: flex;
  flex-direction: column; /* Stack the number and label vertically */
  align-items: center;
  background-color: #fff;
  padding: 1rem .5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 70px;
  transition: transform 0.3s ease;
}

.time-box span {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.time-box small {
  font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .countdown-timer {
    gap: 1.5rem;
  }

  .time-box span {
    font-size: 3rem;
    font-weight: bold;
  }

  .countdown-title {
    font-size: 2rem;
  }
}

.fondo {
  background-image: url('imagenes/fondo.jpeg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 2rem 1rem;
}

.gallery-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #ffffff;
}

.gallery-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #768064; /* nature-inspired green */
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr; /* stack on mobile */
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  }
}
  
.timeline-section {
  background-color: #ffffff; /* Or your choice */
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  color: #555;
}

.timeline-content {
  max-width: 1000px;
  margin: auto;
  position: relative;
  padding-top: 4rem;
  color: #555;
}

.timeline-title {
  text-align: center;
  margin-bottom: 5rem; /* Separation from the timeline */
  padding-bottom: 1rem;
}

.timeline-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #1a1a1a !important; /* Olive tone */
}

.timeline-title h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #555 !important; /* Olive tone */
}

.map-button {
  display: inline-block;
  background-color: #7a8660;
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  transition: background-color 0.3s ease;
}

.map-button:hover {
  background-color: #98a47e;
}

.timeline-line {
  position: absolute;
  top: 0; /* avoids crossing the title */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background-color: #ffffff;
  z-index: 0;
}

/* Timeline Items */
.timeline-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  z-index: 2;
}

.timeline-item.right {
  left: 50%;
  justify-content: flex-start;
  text-align: left;
}

.timeline-item.left {
  left: 0;
  justify-content: flex-end;
  text-align: right;
}

.timeline-box {
  padding: .02rem;
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: center;
  max-width: 250px;
  margin-left: 2rem;
  margin-right: 2rem;
}

.timeline-icon-img {
  width: 60px;
  height: auto;
  margin-bottom: .5rem;
}

/* Text inside boxes */
.timeline-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin: 0;
  color: #E7DED5;
}

.timeline-info p {
  margin: 1.5rem 0;
  color: #1a1a1a;
}

.timeline-info span {
  font-weight: flex;
  color: rgb(94, 94, 94);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-item,
  .timeline-item.right,
  .timeline-item.left {
    width: 100%;
    justify-content: center;
  }

  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - 150px);
  }
}
  .dresscode-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
  }
  
  .dresscode-content {
    max-width: 800px;
    margin: auto;
  }
  
  .dresscode-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
  }
  
  .divider {
    width: 60px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 2rem auto;
  }
  
  .dresscode-details p,
  .outfit-inspo-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0.5rem 0;
    color: #555;
  }
  
  .dresscode-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-top: 4rem;
  }
  
.dresscode-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.dresscode-img {
  max-width: 90%;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 0px 0px rgba(0,0,0,0.1);
}

  .gifts-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
  }
  
  .gifts-content {
    max-width: 800px;
    margin: auto;
  }
  
  .gifts-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
  }
  
  .gifts-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.20rem;
    color: #555;
    margin-bottom: 2rem;
  }
  
  .gift-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    width: 180px;
   display: inline-block;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .gift-card:hover {
    transform: scale(1.05);
    background-color: #f3f3f3;
  }
  
  .gift-card img {
    max-width: 120px;
    margin-bottom: 1rem;
  }
  
  .gift-card span {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #768064;
    text-transform: uppercase;
    font-weight: bold;
  }
    
  .rsvp-section {
    background-color: #ffffff;
    padding: 6rem 6rem;
    text-align: center;
  }
  
  .rsvp-content {
    padding-top: 50px;
    padding-bottom: 50px;
    max-width: 800px;
    margin: auto;
  }
  
  .rsvp-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
  }
  
  .rsvp-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
  }

/*
  .rsvp-section {
    background-color: #f9f7f3;
    padding: 6rem 2rem;
    text-align: center;
  }
  
  .rsvp-content {
    max-width: 800px;
    margin: auto;
  }
  
  .rsvp-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #768064;
    margin-bottom: 1rem;
  }
  
  .rsvp-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
  }
  
  .form-wrapper iframe {
    width: 100%;
    max-width: 100%;
    border: none;
    height: 600px;
  } */

  /* Small bounce animation */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-10px);
    }
    60% {
      transform: translateX(-50%) translateY(-5px);
    }
  }

  .rsvp-section {
    background-color: #ffffff; /* light background */
    padding: 2rem 1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .rsvp-section iframe {
  width: 100%;
  max-width: 100%;
  border: none;
}
  
  .rsvp-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #1a1a1a; /* olive green text */
  }
  
  .rsvp-button {
    background-color: #7a8660;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .rsvp-button:hover {
    background-color: #D5C9BF; /* darker olive on hover */
  }

 

  .parents-section {
    background-color: #fff; /* soft cream background */
    padding-top: 1rem;
    padding-bottom: 6rem;
    text-align: center;
  }
  
  .parents-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 3rem;
    color: #1a1a1a; /* Olive green */
  }
  
  .parents-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap; /* 📱 Responsive: stacks on small screens */
  }
  
  .parent-card {
    background-color: transparent;
    padding: 2rem;
    border: 1px solid transparent;
    border-radius: 05px;
    font-family: 'Cormorant SC', sans-serif;
    color: #555;
    width: 280px;
    text-align: center;
  }

  .parent-card h3 {
    font-family: 'Cormorant SC';
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }
  
  .parent-card p {
    margin: 0.5rem 0;
    font-size: 1.15rem;
    color: #555;
  }

  .timeline-section {
    background: url('your-parallax-background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    color: gray;
    position: relative;
    overflow: hidden;
  }
  
  .timeline-content {
    max-width: 1000px;
    margin: auto;
    position: relative;
    padding: 1rem;
  }
  
  
  .timeline-content h2 {
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    color: #1a1a1a
  }
  
  /* 🎯 Vertical Line */
  .timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: #7a8660;
  }

  /* Timeline Items */
  .timeline-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
  }
  

  .timeline-item.left {
    left: 0;
    justify-content: flex-end;
    text-align: right;
  }
  
  .timeline-item.right {
    left: 50%;
    justify-content: flex-start;
    text-align: left;
  }
  
  /* Timeline Icon */
.timeline-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 1rem;
  }
  
  /* Timeline Info */
  .timeline-info {
    max-width: 250px;
  }
  
  .timeline-info h3 {
    font-family: 'Cormorant Infant', Georgia, "Times New Roman", serif;
    margin: 0;
    font-size: 1.8rem;
    color: #1a1a1a
  }
  
  .timeline-info p {
    margin: 0.3rem 0;
    font-size: 1.1rem;
  }
  
 
  /* 🪄 Smooth Appear Animation */
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* 📱 Mobile Responsive */  
/* Responsive for Mobile */
@media (max-width: 768px) {
    .background-image {
        background: url(imagenes/Background-image.jpg) no-repeat center center/cover;
      }
    
  .hero-top h1 {
    font-size: 2.5rem;
  }
  
  .countdown {
    gap: 1rem;
  }

  .time-box span {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
    .hero {
      padding: 1rem;
      width: 100%;
      max-width: 0 auto;
      margin: 0;
      box-sizing: border-box;
      justify-content: space-around; /* distribute better for small screens */
    }
  
    .hero-top h1 {
      font-size: 2.2rem;
      margin-top: 1rem;
    }
  
    .hero-bottom p {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
  
    .countdown {
      gap: 0.5rem;
      flex-wrap: wrap; /* allow wrapping on very small devices */
    }
  
    .time-box span {
      font-size: 2.5rem;
    }
  
    .time-box small {
      font-size: 0.7rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero-top h1 {
      font-size: 1.8rem;
    }
  
    .time-box span {
      font-size: 1.2rem;
    }
  }
/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

/* 📱 Mobile Responsive */
    @media (max-width: 768px) {
    .hero-logo {
      max-width: 280px;
    }
  
    .hero-top {
      margin-top: 1rem;
    }
  }

  @media (max-width: 768px) {

    .timeline-line {
      left: 20px;
      transform: none;
      display: block;
      height: 100%;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
      width: 100%;
      left: 0;
      justify-content: center !important;
      align-items: center;
      flex-direction: column;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
  
    .timeline-box {
      margin: 0 auto 3rem;
    }
  }

  /* Apply the animation */
  .background-image,
  .overlay,
  .hero-top,
  .hero-bottom {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
  }
  
  /* Different delays to make them appear one after another */
  .background-image {
    animation-delay: 0s;
  }
  
  .overlay {
    animation-delay: 0.5s;
  }
  
  .hero-top {
    animation-delay: 1s;
  }
  
  .hero-bottom {
    animation-delay: 1.5s;
  }