/* ============================================================
   BODA MEXICANA — styles.css
   Paleta: Marfil · Dorado · Verde Olivo · Terracota · Vino
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --ivory:      #F8F5EE;
  --gold:       #C9A84C;
  --gold-dark:  #A88935;
  --gold-light: #E8D5A3;
  --gold-pale:  #F5EDD4;
  --olive:      #7A8B5A;
  --terracotta: #C67D5B;
  --wine:       #722F37;
  --wine-dark:  #5A2129;
  --dark:       #2C2C2C;
  --text:       #4A4A4A;
  --text-light: #8A8A8A;
  --border:     rgba(201,168,76,.28);
  --shadow:     rgba(0,0,0,.07);
  --radius:     2px;
}

/* === RESET & BASE ========================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
}

p { margin: 0; }

img { max-width: 100%; display: block; }

/* === SCROLL ANIMATIONS ===================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .85s ease, transform .85s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .85s ease, transform .85s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .85s ease, transform .85s ease;
  transition-delay: var(--delay, 0s);
}

.animate-in {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* === NAVBAR ================================================ */
#mainNav {
  background: transparent;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
  padding: 1.4rem 0;
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(248,245,238,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px var(--shadow);
  padding: .75rem 0;
}

#mainNav .navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 3px;
  transition: color .4s;
}

#mainNav.scrolled .navbar-brand { color: var(--wine); }

#mainNav .nav-link {
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: .4rem .8rem;
  transition: color .3s;
}

#mainNav.scrolled .nav-link { color: var(--dark); }

#mainNav .nav-link:hover,
#mainNav .nav-link:focus { color: var(--gold) !important; }

#mainNav .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}

#mainNav.scrolled .navbar-toggler {
  border-color: var(--border);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844,44,44,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO ================================================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  /* IMAGEN HERO: reemplaza esta URL con tu fotografía */
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80');
  background-size: cover;
  background-position: center top;
  /* parallax en desktop, scroll en móvil */
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .hero-section { background-attachment: scroll; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(44,20,10,.70) 0%,
    rgba(114,47,55,.52) 55%,
    rgba(44,20,10,.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 1rem;
}

.hero-label {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: .75rem;
  letter-spacing: 1px;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.hero-ampersand {
  font-family: 'Great Vibes', cursive;
  color: var(--gold-light);
  font-size: .7em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.hero-divider-line {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(232,213,163,.65);
}

.hero-divider-icon {
  color: var(--gold-light);
  font-size: 1.3rem;
}

.hero-date {
  font-size: clamp(.95rem, 3vw, 1.35rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  font-weight: 400;
  margin-bottom: .5rem;
}

.hero-location {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
}

/* Entry animation */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-hero { animation: heroIn 1.4s ease forwards; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  animation: scrollBounce 1.6s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 1;   }
  50%       { transform: translateX(-50%) translateY(10px); opacity: .25; }
}

/* === BUTTONS =============================================== */
.btn-hero {
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .75rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: all .3s ease;
}

.btn-hero:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  border: none;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .85rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  transition: all .3s ease;
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.btn-calendar {
  background: #fff;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .85rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  transition: all .3s ease;
}

.btn-calendar:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.btn-whatsapp {
  background: #25D366;
  border: none;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 1rem 3rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  transition: all .3s ease;
}

.btn-whatsapp:hover {
  background: #1daa54;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}

/* === SHARED SECTION STYLES ================================= */
section { padding: 6rem 0; }

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--wine);
}

.title-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--wine), var(--gold));
  margin: 1rem auto;
  border-radius: 1px;
}

/* === ROMANTIC QUOTE ======================================== */
.quote-section {
  background: var(--ivory);
  padding: 5rem 0;
}

.ornament {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  margin: .5rem 0;
  line-height: 1;
}

.romantic-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 300;
  color: var(--wine);
  line-height: 1.9;
  border: none;
  padding: 1.5rem;
  margin: 1rem 0;
  background: none;
}

.quote-author {
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: .25rem;
}

/* === PARENTS =============================================== */
.parents-section {
  background: var(--gold-pale);
}

.parents-card {
  background: #fff;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px var(--shadow);
  position: relative;
  height: 100%;
}

.parents-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--wine), var(--gold));
}

.parents-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.parents-side-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--wine);
  margin-bottom: 1.5rem;
}

.parent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin: .3rem 0;
}

.parent-and {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  margin: .2rem 0;
}

/* === PADRINOS ============================================== */
.padrinos-section { background: #fff; }

.padrino-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

.padrino-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--shadow);
  border-color: var(--gold);
}

.padrino-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.padrino-category {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--wine);
  margin-bottom: .5rem;
}

.padrino-name {
  font-size: .9rem;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}

/* === EVENT CARD ============================================ */
.event-section { background: var(--ivory); }
.event-section--alt { background: var(--gold-pale); }

.event-card {
  background: #fff;
  padding: 3.5rem 3rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 6px 40px var(--shadow);
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--wine), var(--gold), var(--wine));
}

.event-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.event-label {
  font-size: .72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--wine);
}

.event-details { margin: 2rem 0; }

.event-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}

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

.event-detail-item i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
  min-width: 20px;
}

/* === CALENDAR SECTION ====================================== */
.calendar-section { background: var(--gold-pale); padding: 5rem 0; }

.calendar-icon { font-size: 3.5rem; color: var(--gold); }

.cal-sub { color: var(--text-light); font-size: .95rem; }

/* === DECORATIVE BANNER ===================================== */
.banner-decorativo {
  min-height: 52vh;
  position: relative;
  /* IMAGEN BANNER: reemplaza con imagen de flores, hacienda o papel picado */
  background-image: url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .banner-decorativo { background-attachment: scroll; }
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,20,10,.72) 0%,
    rgba(114,47,55,.6) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.banner-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.banner-ornament {
  font-size: .78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* === ITINERARY / TIMELINE ================================== */
.itinerary-section { background: #fff; }

.timeline {
  position: relative;
  padding: .5rem 0 .5rem 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  background: var(--wine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--border);
  transition: background .3s, transform .3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--gold);
  transform: scale(1.08);
}

.timeline-content { padding-top: .6rem; flex: 1; }

.timeline-time {
  display: block;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--wine);
  margin-bottom: .2rem;
}

.timeline-desc {
  font-size: .88rem;
  color: var(--text-light);
}

/* === DRESS CODE ============================================ */
.dresscode-section { background: var(--gold-pale); }

.dresscode-card {
  background: #fff;
  padding: 3.5rem 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px var(--shadow);
}

.dresscode-badge {
  font-size: 3.2rem;
  color: var(--wine);
  margin-bottom: 1.5rem;
}

.dresscode-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wine);
  margin-bottom: 1rem;
}

.dresscode-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.color-palette { margin: 2rem 0; }

.palette-label {
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.palette-swatches {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  cursor: default;
  transition: transform .25s ease;
}

.swatch:hover { transform: scale(1.25); }

.swatch--light {
  box-shadow: 0 3px 12px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.1);
}

.dresscode-note {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  font-size: .9rem;
  color: var(--text);
  text-align: left;
  margin-top: 1.5rem;
}

/* === RSVP ================================================== */
.rsvp-section {
  background: var(--wine);
  padding: 6rem 0;
}

.rsvp-section .section-label { color: var(--gold-light); }
.rsvp-section .section-title { color: #fff; }
.rsvp-section .title-divider { background: var(--gold-light); }

.rsvp-ornament {
  font-size: 3.5rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.rsvp-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
}

.rsvp-note {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* === FOOTER ================================================ */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 4.5rem 0;
}

.footer-ornament {
  display: block;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: .5rem;
}

.footer-date {
  font-size: .8rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer-message {
  font-size: .95rem;
  opacity: .7;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.footer-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: .4;
}

.footer-copy {
  font-size: .78rem;
  opacity: .45;
}

.footer-logo {
  width: 64px;
  height: auto;
  margin: 0 auto .75rem;
  opacity: .9;
}

.footer-copy .bi-heart-fill {
  color: var(--wine);
  font-size: .85rem;
}

/* === RESPONSIVE ============================================ */
@media (max-width: 991px) {
  #navbarNav {
    background: rgba(248,245,238,.97);
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
  }

  #navbarNav .nav-link {
    color: var(--dark) !important;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
  }

  #navbarNav .nav-link:last-child { border-bottom: none; }
}

@media (max-width: 767px) {
  section { padding: 4rem 0; }

  .event-card { padding: 2.5rem 1.5rem; }
  .dresscode-card { padding: 2.5rem 1.5rem; }
  .parents-card { padding: 2rem 1.5rem; }

  .timeline::before { left: 1.5rem; }

  .timeline-dot {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .timeline-item { gap: 1.25rem; }

  .romantic-quote { padding: 1rem; }
}

@media (max-width: 480px) {
  .palette-swatches { gap: .6rem; }
  .swatch { width: 38px; height: 38px; }
}
