/* ============================= */
/* VARIABLES Y RESET             */
/* ============================= */
:root {
  --primary-gold: #79ab58;
  --secondary-brown: #9ac569;
  --cream-bg: #f5f7f0;
  --light-cream: #fafbf8;
  --text-dark: #2c2c2c;
  --text-medium: #5a5a5a;
  --text-light: #888;
  --white: #ffffff;
  --accent-green: #80b147;
  --tertiary-green: #8dc6aa;
  --quaternary-green: #5d9f4d;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
}

.font-sail {
  font-family: "Sail", cursive;
  font-weight: 400;
}

/* ============================= */
/* HERO SECTION                  */
/* ============================= */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url("../images/married-main.webp");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  padding-top: 120px;
  overflow-x: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 70%);
  pointer-events: none;
}

.hero-container {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1.5s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem; font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1rem; opacity: .9;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero-date {
  font-size: 1.3rem; font-weight: 300;
  margin-bottom: 2rem; letter-spacing: 1px;
  opacity: .95;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  animation: bounce 2s infinite;
}

.scroll-indicator i { font-size: 1.5rem; opacity: .8; }

/* ============================= */
/*       REPRODUCTOR MÚSICA      */
/* ============================= */

.music-player {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(121, 171, 88, 0.9);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 300px;
  min-width: 50px;
}

.music-player.minimized {
  width: 50px;
  height: 50px;
  padding: 5px;
  border-radius: 50%;
}

.player-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.music-player.minimized .player-content {
  display: none;
}

.play-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 10px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minimize-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.minimize-button:hover {
  opacity: 1;
}

.expand-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================= */
/* ABOUT SECTION                 */
/* ============================= */
.about-section {
  padding: 6rem 0;
  background: var(--light-cream);
}

.section-title {
  font-size: 2.8rem; text-align: center;
  margin-bottom: 1rem; color: var(--secondary-brown);
}

.section-subtitle {
  text-align: center; font-size: 1.1rem;
  color: var(--text-light); margin-bottom: 3rem;
  max-width: 600px; margin-inline: auto;
}

.couple-story {
  background: var(--white);
  padding: 3rem; border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  text-align: center;
}

.couple-story p {
  font-size: 1.1rem; line-height: 1.8;
  color: var(--text-medium); margin-bottom: 1.5rem;
}

.couple-names {
  font-size: 2rem !important;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

/* ============================= */
/* COUNTDOWN SECTION             */
/* ============================= */
.countdown-section {
  padding: 6rem 0;
  background: var(--cream-bg);
  position: relative;
  overflow: hidden;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  max-width: 600px;
  margin-inline: auto;
}

.countdown-item {
  text-align: center;
  padding: 1rem 0.5rem;
  min-width: 80px;
  flex: 1;
  position: relative;
}

.countdown-item:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--primary-gold);
  font-weight: bold;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================= */
/* CEREMONY & PARTY SECTION      */
/* ============================= */
.ceremony-party-section {
  padding: 4rem 0;
  background-color: var(--cream-bg);
}

.ceremony-party-section .section-title,
.ceremony-party-section .section-subtitle {
  color: var(--secondary-brown);
}

.detail-category-block {
  padding: 2.5rem;
  height: 100%;
  margin-bottom: 2rem;
}

.detail-category-block h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-gold);
}

.detail-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.detail-item:last-child { border-bottom: none; }

.detail-item h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.detail-item p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.icon-detail {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  display: block;
}

.btn-detail-action {
  background: none;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.5rem 0.5rem;
}

.btn-detail-action:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ============================= */
/* INFO EXTRA SECTION            */
/* ============================= */
.info-extra-section {
  padding: 4rem 0;
  background-color: var(--cream-bg);
}

.info-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 2.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-brown);
}

.info-card p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.btn-cta-small {
  background: var(--primary-gold);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
}

.btn-cta-small:hover {
  background: var(--secondary-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ============================= */
/* GIFTS SECTION                 */
/* ============================= */
.gifts-section {
  padding: 6rem 0;
  background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)),
    url("../images/gifts-back.webp") center / cover fixed;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.gifts-section .section-title,
.gifts-section .section-subtitle {
  color: var(--white);
}

.gifts-section .btn-cta {
  background: var(--white);
  color: var(--primary-gold);
}

.gifts-section .btn-cta:hover {
  background: var(--light-cream);
  color: var(--primary-gold);
}

/* ============================= */
/* GALLERY SECTION               */
/* ============================= */
.gallery-section {
  padding: 6rem 0;
  background: var(--white);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 3rem;
  overflow: visible;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--cream-bg), var(--light-cream));
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  max-width: 280px; margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-gold);
  background-color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary-gold);
  color: var(--white);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem;
}

/* ============================= */
/* CTA SECTION                   */
/* ============================= */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-brown));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-cta {
  background: var(--white);
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--cream-bg);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.footer-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.footer p {
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.6;
}

/* ============================= */
/* GRASS DECORATIONS             */
/* ============================= */
.grass-decoration {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  z-index: 1;
  pointer-events: none;
}

.grass-left { left: -50px; }
.grass-right { right: -10px; }

.grass-image {
  position: absolute;
  max-width: 70%;
  height: auto;
  opacity: 0;
  animation: grassFadeIn 1.5s ease-out forwards;
}

.grass-1 { top: 15%; left: 30px; animation-delay: 0.2s; }
.grass-4 { top: 15%; right: -50px; animation-delay: 0.6s; }

.grass-gifts {
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  z-index: 1;
  pointer-events: none;
}
.grass-2 {
  position: absolute;
  right: -30px;
  max-width: 100%;
  height: auto;
  opacity: 0;
  animation: grassFadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.grass-gallery {
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 200px;
  z-index: 1;
  pointer-events: none;
}
.grass-3 {
  position: absolute;
  bottom: -315%;
  max-width: 100%;
  height: auto;
  opacity: 0;
  animation: grassFadeIn 1.5s ease-out forwards;
  animation-delay: 0.4s;
}

/* Containers above grass */
.gifts-section .container,
.gallery-section .container,
.countdown-section .container {
  position: relative;
  z-index: 2;
}

/* ============================= */
/* ANIMATIONS                    */
/* ============================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes grassFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ============================= */
/* MODAL STYLES                  */
/* ============================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-title {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-close:hover { color: var(--primary-gold); }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: .5rem; font-weight: 500; color: var(--text-dark); }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

.form-check { margin-bottom: 1rem; }
.form-check-input { margin-right: 0.5rem; }

.btn-primary {
  background: var(--primary-gold);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.btn-primary:hover {
  background: var(--secondary-brown);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-medium);
  padding: 0.75rem 2rem;
  border: 2px solid var(--text-light);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1rem; letter-spacing: 2px; }
  .hero-date { font-size: 1.1rem; }
  .section-title { font-size: 2.2rem; }

  .countdown-container { gap: 1rem; }
  .countdown-item { min-width: 120px; padding: 2rem 1.5rem; }
  .countdown-number { font-size: 2rem; }
  .countdown-label { font-size: 0.9rem; }

  .swiper-button-next, .swiper-button-prev {
    width: 40px; height: 40px;
  }
  .swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
  }

  .ceremony-party-section .row > .col-md-6:first-child::after {
    content: "";
    display: block;
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 2rem auto;
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .hero { padding: 0 1rem; }
  .hero-title { font-size: 2.5rem; }
  .countdown-item { min-width: 100px; padding: 1.5rem 1rem; }
  .countdown-number { font-size: 1.5rem; }
  .countdown-label { font-size: 0.75rem; }
  .couple-story { padding: 2rem; }

  .grass-decoration { width: 150px; transform: scale(0.7); opacity: 0.7; }
  .grass-left { left: -40px; }
  .grass-right { right: -40px; }
  .grass-image { max-width: 80%; }

  .grass-gifts { width: 100px; height: 100px; bottom: -30px; }
  .grass-gallery { width: 100px; height: 100px; bottom: -30px; }
  .grass-2 { top: 0; right: -10px; }
  .grass-3 { bottom: 0; left: -10px; }
}

@media (max-width: 430px) {
  .countdown-container { gap: 0.25rem; padding: 0.5rem; }
  .countdown-item { min-width: 70px; padding: 0.75rem 0.25rem; }
  .countdown-number {
    font-size: 1.4rem;
    letter-spacing: -1px;
    transform: scaleX(0.9);
    display: inline-block;
  }
  .countdown-label { font-size: 0.7rem; letter-spacing: -0.5px; }

  .couple-names { font-size: 1.8rem !important; }
}