@font-face {
  font-family: 'PitchOrHoney';
  src: url('assets/PitchOrHoney.woff2') format('woff2'),
       url('assets/PitchOrHoney.woff') format('woff'),
       url('assets/PitchOrHoney.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'HechoAMano';
  src: url('assets/HechoAMano-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PitchOrHoneyTall';
  src: url('assets/PitchOrHoneyTall.woff2') format('woff2'),
       url('assets/PitchOrHoneyTall.woff') format('woff'),
       url('assets/PitchOrHoneyTall.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Swis 721 bt Romana';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('assets/Swiss721BT-Roman.ttf') format('truetype');
}

@font-face {
  font-family: 'Swis 721 bt Romana';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('assets/Swiss721Bold.ttf') format('truetype');
}

/* Design Tokens & Variables */
:root {
  /* Color Palette - Updated to Burgundy #A53F49 as request */
  --color-bg: #faf7f2;          /* Soft Cream */
  --color-card-bg: rgba(255, 255, 255, 0.85); /* Glassmorphic White */
  --color-primary: #A53F49;     /* Burgundy Accent Text & Main Color */
  --color-primary-rgb: 165, 63, 73;
  --color-secondary: #c98a6b;   /* Terracotta / Sand */
  --color-secondary-rgb: 201, 138, 107;
  --color-accent: #6b8274;      /* Olive Green */
  --color-sky: #a4c2cb;         /* Soft Sky Blue */
  --color-text-dark: #2c3e50;
  --color-text-light: #607d8b;
  --color-white: #ffffff;
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Layout & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(165, 63, 73, 0.07), 0 4px 6px -2px rgba(165, 63, 73, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(165, 63, 73, 0.1), 0 10px 10px -5px rgba(165, 63, 73, 0.04);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative; /* Setup absolute relative root context */
}

.scroll-indicator-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.scroll-indicator-svg.visible {
  opacity: 1;
}

#scrollLinePath {
  stroke-dasharray: 8, 6; /* Dash effect for hand-drawn line as requested */
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Common Layout Components */
.container {
  width: 90%;
  max-width: 800px; /* Narrower container to shift left-aligned texts to the right on desktop */
  margin: 0 auto;
  padding: 38px 0; /* Reduced padding between sections */
}

.section {
  position: relative;
  width: 100%;
  scroll-margin-top: 130px; /* Offset to keep sections visible and centered below the fixed desktop header */
}

.alt-bg {
  background-color: var(--color-bg);
}

.section-title {
  text-align: left;
  margin-bottom: 35px; /* Reduced to place titles closer to content cards */
}

.section-title h2 {
  font-family: 'HechoAMano', var(--font-serif);
  font-size: clamp(3.0rem, 13vw, 7.2rem); /* fluid mobile scaling, up to 7.2rem on desktop */
  font-weight: normal;
  color: var(--color-primary);
  letter-spacing: 0px;
  text-transform: lowercase; /* forced lowercase as requested */
  position: relative;
  display: block;
  padding-bottom: 5px;
  margin-bottom: 2px; /* Placed closer to subtitle paragraph */
  line-height: 1.1;
  margin-left: -6px; /* Visually aligns cursive glyph starting stroke with paragraph left edge */
}

.section-title .decorator {
  display: none !important; /* Hide icons and lines under titles */
}

.section-title p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: normal;
  font-size: 1.05rem;
  color: #000000;
  margin-top: 0px; /* Placed closer to title h2 */
  text-align: left;
  line-height: 1.6;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(165, 63, 73, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 138, 107, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

#submitBtn {
  font-family: 'PitchOrHoneyTall', var(--font-serif) !important;
  font-size: 2.1rem !important; /* Larger display size to make PitchOrHoneyTall readable */
  font-weight: normal !important;
  text-transform: lowercase !important; /* Lowercase matching form style */
  color: #ffffff !important; /* White color */
  padding: 4px 30px 10px 30px !important; /* Adjusted top/bottom padding to perfectly fit the script letters */
  line-height: 1.0 !important;
  height: 52px !important; /* Adapted height */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#submitBtn .spinner {
  font-size: 1.1rem !important; /* Adjusted spinner size for the custom font height */
  margin-top: 5px;
}

/* Floating Music Player */
.music-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.music-toggle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #000000 !important; /* Made player icon black as requested */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.music-toggle:hover {
  transform: scale(1.2);
  color: #313131 !important; /* Slightly lighter on hover */
}

.music-toggle.playing {
  color: #000000 !important;
}

.music-toggle .hidden {
  display: none !important;
}

/* 3-Bar Dropdown Navigation (Top Left Button & Slide-Out Drawer) & Top-Right Logo */
.top-right-logo {
  position: fixed;
  top: 10px; /* Aligned vertically with fixed header */
  right: 25px;
  z-index: 1001;
  width: 52px;
  height: 52px;
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.top-right-logo:hover {
  transform: scale(1.15);
}

.top-right-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.menu-toggle {
  position: fixed;
  top: 10px; /* Aligned vertically with fixed header */
  left: 25px;
  z-index: 1001; /* Must sit above drawer overlay */
  width: 52px;
  height: 52px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px; /* spacing between thin lines */
  transition: var(--transition-smooth);
}

.hamburger-line {
  display: block;
  background-color: #000000;
  transition: var(--transition-smooth);
}

.hamburger-line:nth-child(1) {
  width: 22px;
  height: 2px;
  border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; /* Irregular hand-drawn pen stroke shape */
  transform: rotate(-1.5deg);
}

.hamburger-line:nth-child(2) {
  width: 25px;
  height: 1.8px;
  border-radius: 50% 30% 60% 40% / 40% 70% 30% 60%;
  transform: rotate(1.2deg) translate(-1px, 0.5px);
}

.hamburger-line:nth-child(3) {
  width: 21px;
  height: 2.2px;
  border-radius: 30% 70% 40% 60% / 70% 30% 50% 40%;
  transform: rotate(-0.8deg) translate(0.5px, -0.5px);
}

.menu-toggle:hover {
  transform: scale(1.15);
}

/* Hide toggle button when drawer is open */
body.nav-open .menu-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Drawer Background Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.35); /* Darkens the background slightly */
  z-index: 999; /* Below the nav-drawer but above standard content */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px; /* Increased width of the desktop menu drawer */
  height: 100vh;
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 10px 30px 40px 30px; /* Reduced top padding to align close button with top menu button */
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
  height: 52px; /* Centering match with menu-toggle height */
  padding-bottom: 0;
  /* Removed border-bottom line above the logo */
}

.drawer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.drawer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 52px; /* Set width to match menu-toggle spacing */
  height: 52px; /* Set height to match menu-toggle spacing */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Setup absolute lines centering */
  padding: 0;
}

.close-line {
  position: absolute;
  background-color: #000000;
  transition: var(--transition-smooth);
}

.close-line.line-1 {
  width: 26px;
  height: 2px;
  border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; /* Irregular hand-drawn stroke */
  transform: rotate(43.5deg); /* Slight offset from 45deg for sketchy hand-drawn feel */
}

.close-line.line-2 {
  width: 25px;
  height: 1.8px;
  border-radius: 50% 30% 60% 40% / 40% 70% 30% 60%;
  transform: rotate(-46deg); /* Slight offset from -45deg */
}

.drawer-close:hover {
  color: #000000; /* Keep it black on hover */
  transform: none; /* No hover rotation */
}

.nav-drawer .nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 6px; /* Reduced gap to bring links closer together */
  overflow-y: auto;
  -ms-overflow-style: none;  /* Hide scrollbar on IE/Edge */
  scrollbar-width: none;  /* Hide scrollbar on Firefox */
}

.nav-drawer .nav-links::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome/Safari/Opera */
}

.nav-drawer .nav-links a {
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif;
  font-size: 16px; /* Slightly smaller to fit beautifully */
  font-weight: bold;
  text-transform: lowercase; /* Lowercase texts as requested */
  letter-spacing: 0.5px;
  color: var(--color-text-dark);
  padding: 2px 0; /* Reduced padding to make them closer together */
  display: block;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-drawer .nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-drawer .nav-links a:hover {
  color: var(--color-primary);
}

/* Section: Hero (Clean Minimalist Theme) */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: visible;
  color: var(--color-primary);
  background-color: var(--color-bg);
  padding: 30px 0 40px 0; /* Adjusted padding for bottom-spaced content */
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-content h1 {
  font-family: 'PitchOrHoney', var(--font-serif);
  font-size: 4.0rem; /* Adjusted slightly to fit beautifully inside the header banner */
  font-weight: normal;
  color: var(--color-primary); /* Burgundy #A53F49 */
  letter-spacing: 0px; /* script font doesn't want large gaps */
  line-height: 1.1;
  text-transform: none; /* keep original casing */
  
  /* Fixed/pinned placement always visible at the top with a solid background */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px; /* Increased desktop header height */
  background-color: var(--color-bg); /* Cream background to prevent overlapping text when scrolling */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 950;
  margin: 0;
  padding-top: 25px; /* Push the text lower down inside the banner */
  box-sizing: border-box;
}

.fixed-mobile-date {
  display: none;
}

.mobile-break {
  display: none;
}

.desktop-name {
  display: inline;
  white-space: nowrap; /* Forces one line on desktop */
}

.mobile-name {
  display: none;
}

.wedding-date {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-size: 1.35rem; /* Increased size slightly */
  letter-spacing: 2px;
  text-transform: uppercase; /* Force uppercase style matching user request */
  margin-top: 0px;
  margin-bottom: 6px;
  font-weight: bold !important; /* Bold as requested */
  color: #000000; /* 100% black as requested */
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 18px; /* wider gap for larger layout */
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000; /* 100% black as requested */
  min-width: 70px; /* larger min-width to accommodate bigger font */
}

.count-num {
  font-size: 2.4rem; /* Enlarged countdown number */
  font-family: 'PitchOrHoneyTall', var(--font-serif); /* Use PitchOrHoneyTall font */
  font-weight: normal;
  line-height: 1;
  color: #000000; /* 100% black */
}

.count-label {
  font-size: 1.0rem; /* Enlarged countdown label */
  font-family: 'PitchOrHoneyTall', var(--font-serif); /* Use PitchOrHoneyTall font */
  text-transform: none; /* no uppercase for script fonts */
  letter-spacing: 0;
  margin-top: 5px;
  font-weight: bold;
  opacity: 0.9;
  color: #000000; /* 100% black */
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
}

/* Prevent absolute overlap when indicator is nested in the bottom group */
.hero-bottom-group .scroll-indicator {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 8px;
}

.scroll-prompt-text {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary); /* Burgundy #A53F49 */
  text-transform: lowercase;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  font-weight: bold;
  display: none; /* Hidden on desktop by default */
}

.hand-draw-arrow {
  width: 30px; /* Made slightly larger as requested */
  height: 30px;
  color: var(--color-primary); /* Burgundy #A53F49 */
  margin-bottom: 6px;
  animation: arrow-bounce 1.8s infinite ease-in-out;
}

.scroll-indicator span {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: normal;
  color: #000000; /* Black color */
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}


/* Details Section */
@media (min-width: 769px) {
  .details-section .container {
    max-width: 1350px; /* Fluid container width on desktop scaling from 15" to 27" screens */
    width: 88%;
  }
  .details-left-column {
    padding-left: clamp(40px, calc(180px - 5vw), 120px); /* Adaptive left space: decreases on larger monitors, shifting text to the left */
    box-sizing: border-box;
  }
  
  /* Fluid section titles scaling with viewport size */
  .section-title h2 {
    font-size: clamp(6.75rem, 7.8vw, 9.75rem);
  }
  
  /* Force "¿Te apuntas?" to stay in a single line on desktop */
  #teapuntas .section-title h2 {
    white-space: nowrap;
  }
  
  /* Layout alignment for Ceremonia, Celebración, and Preboda */
  #ceremonia .details-grid,
  #celebracion .details-grid,
  #preboda .details-grid {
    align-items: stretch;
  }
  #ceremonia .details-left-column,
  #celebracion .details-left-column,
  #preboda .details-left-column {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #ceremonia .details-card,
  #celebracion .details-card,
  #preboda .details-card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 0 !important; /* Remove bottom padding to align text exactly with bottom of photo */
  }
  #ceremonia .details-card .btn-text-only,
  #celebracion .details-card .btn-text-only,
  #preboda .details-card .btn-text-only {
    margin-top: auto;
  }
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr auto; /* Auto size right column for fixed-width photo viewers */
  column-gap: clamp(50px, 12vw, 180px); /* Generous gap separating text/titles and photos */
  width: 100%;
  align-items: start; /* Align tops of columns */
}

.details-left-column {
  grid-column: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.details-card {
  width: 100%;
  max-width: 480px;
  background-color: transparent; /* Removed white background */
  border: none; /* Removed border */
  border-radius: var(--radius-md);
  padding: 0 0 20px 0; /* Decreased top padding to bring elements closer to title */
  text-align: left; /* Changed from center to left */
  box-shadow: none; /* Removed shadow */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: var(--transition-smooth);
}

.details-card:hover {
  transform: none;
  box-shadow: none;
}

/* Photo Viewer Wrapper & Container (No background, no shadow, no frame/border) */
.photo-viewer-wrapper {
  grid-column: 2;
  grid-row: 1 / span 2; /* Spans from the top title row downwards */
  width: clamp(330px, 32vw, 520px); /* Slightly smaller, fluid layout width */
  flex-shrink: 0; /* Prevent shrinking */
  justify-self: end; /* Position the visors to the far right on desktop */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0; /* Positioned via grid justify-self */
}

/* Specially larger photo viewer for Contact section */
.contact-photo-wrapper {
  width: clamp(360px, 35vw, 580px); /* Slightly smaller, fluid layout width */
}

.photo-viewer-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0; /* No frame / borders */
  box-shadow: none; /* No shadow */
  background-color: transparent; /* No background */
  transition: height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.photo-viewer-slides {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbars */
}

.photo-viewer-slides::-webkit-scrollbar {
  display: none;
}

.photo-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.photo-slide img {
  width: 100%;
  height: auto; /* Natural aspect ratio (keeps original photo format) */
  display: block;
}



/* Pagination dots (Below the photo, outside the viewer) */
.photo-pagination {
  margin-top: 16px; /* Positioned outside and below the image box */
  display: flex;
  gap: 4px;
  z-index: 5;
}

.photo-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.15); /* Light gray dot */
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.photo-dot.active {
  background-color: #000000; /* Active dot is black */
  transform: scale(1.25);
}

/* Desktop spacing classes replacing br tags */
.details-card .btn-text-only,
.rsvp-section .link-btn-text,
.desc-links-container {
  margin-top: 30px;
  display: inline-block;
}

/* Responsive updates for photo viewer and grid layout */
@media (max-width: 768px) {
  .details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Make details-left-column behave as layout contents to sort children with grid */
  .details-left-column {
    display: contents;
  }
  
  .section-title {
    order: 1 !important; /* Title on top */
    margin-bottom: 2px !important;
  }
  
  .photo-viewer-wrapper {
    order: 2 !important; /* Photo slider in middle */
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    margin-top: 2px !important;
  }

  .photo-viewer-container {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto; /* Show full image without cropping */
  }

  .details-card {
    order: 3 !important; /* Card info on bottom */
    max-width: 100%;
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Mobile spacing classes replacing br tags */
  .details-card .btn-text-only,
  .rsvp-section .link-btn-text,
  .desc-links-container {
    margin-top: 8px !important;
  }

  /* Descubre section custom order on mobile */
  .desc-text-block {
    order: 3 !important;
  }
  .recommendations-section .photo-viewer-wrapper {
    order: 2 !important;
  }
  .recommendations-section .details-card {
    order: 4 !important;
  }

  /* RSVP section custom order on mobile */
  .rsvp-text-block {
    order: 3 !important;
  }
  .rsvp-section .photo-viewer-wrapper {
    order: 2 !important;
  }
  .rsvp-section .details-card {
    order: 4 !important;
  }

  /* Reduce vertical space inside mobile section containers */
  .container {
    padding: 22px 0 !important;
  }
  #ceremonia .container {
    padding-top: 15px !important;
  }
}

.card-icon {
  display: none !important; /* Hide icons from details cards */
}

.details-card h3 {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-weight: bold;
  font-size: 1.7rem; /* Reduced font size of details headers */
  color: #000000;
  margin-bottom: 16px; /* Increased space between headers (ubicaciones) and date/hour */
}

.details-card .time {
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif !important;
  font-weight: normal;
  font-size: 14px !important; /* Swiss 721 date size from reference site */
  color: #000000 !important; /* 100% black as requested */
  margin-bottom: 15px;
}

.details-card .time i {
  margin-right: 5px;
}

.details-card .address {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: normal;
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 20px;
}

.details-card .desc {
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif !important;
  font-weight: normal;
  font-size: 14px !important; /* Swiss 721 paragraph size from reference site */
  color: #000000 !important;
  line-height: 1.6;
  margin-bottom: 30px;
}

.important-note {
  font-size: 0.9rem;
  color: var(--color-primary);
  background-color: rgba(165, 63, 73, 0.08);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 10px;
}

/* Dresscode */
.dresscode-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 50px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dresscode-box h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.dresscode-box p {
  font-weight: 300;
  margin-bottom: 40px;
}

.color-palette-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.palette-colors {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

.swatch-help-text {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-text-light);
}

.active-color-name {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  background-color: rgba(165, 63, 73, 0.05);
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  display: inline-block;
}

/* RSVP Section */
.rsvp-container {
  width: 100%;
  max-width: 650px;
  margin: 0; /* Left-align form container */
  background-color: transparent; /* Removed white background */
  border: none; /* Removed border */
  border-radius: var(--radius-md);
  padding: 20px 0; /* Adjusted padding for cleaner flow */
  box-shadow: none; /* Removed shadow */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rsvp-form .form-group {
  margin-bottom: 30px;
}

.rsvp-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: lowercase;
  letter-spacing: 0px;
  color: #000000; /* Black color */
  margin-bottom: 10px;
}

.rsvp-form input[type="text"],
.rsvp-form textarea,
.rsvp-form select,
.rsvp-form option {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(165, 63, 73, 0.15);
  background-color: rgba(255, 255, 255, 0.8);
  font-family: 'Helvetica', Arial, sans-serif !important;
  font-size: 0.92rem;
  color: #000000; /* Black color */
  outline: none;
  transition: var(--transition-smooth);
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(165, 63, 73, 0.08);
}

/* Custom Radios */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: normal;
  text-transform: lowercase;
  font-family: 'Helvetica', Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  user-select: none;
  color: #000000; /* Black color */
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: var(--color-white);
  border: 1px solid rgba(165, 63, 73, 0.3);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.radio-label:hover input ~ .custom-radio {
  border-color: var(--color-primary);
}

.radio-label input:checked ~ .custom-radio {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-radio::after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-white);
}

.radio-label input:checked ~ .custom-radio::after {
  display: block;
}

.select-bus-group {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(165, 63, 73, 0.05);
  border-radius: var(--radius-sm);
  animation: slide-down 0.4s ease-out;
}

.hidden {
  display: none !important;
}

/* Success Message RSVP */
.success-message {
  text-align: center;
  padding: 30px 10px;
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.success-message h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.success-message p {
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

/* Hotels Section */
.hotels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hotel-category h3 {
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(165, 63, 73, 0.1);
  padding-bottom: 10px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.hotel-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hotel-card {
  background-color: transparent; /* Removed white background */
  border: none; /* Removed border */
  border-radius: var(--radius-md);
  padding: 10px 0; /* Adjusted padding for cleaner flow */
  box-shadow: none; /* Removed shadow */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: var(--transition-smooth);
}

.hotel-card:hover {
  transform: none;
  box-shadow: none;
}

.hotel-info h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.hotel-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.discount-badge {
  display: inline-block;
  background-color: rgba(165, 63, 73, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Recommendations Section */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--color-white);
  border: 1px solid rgba(165, 63, 73, 0.15);
  color: var(--color-primary);
  padding: 8px 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.rec-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  animation: fade-in 0.5s ease-out;
}

.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rec-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(165, 63, 73, 0.08);
  color: var(--color-primary);
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.rec-card h4 {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-weight: bold;
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 5px; /* Placed closer to text below */
}

.rec-card p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: normal;
  font-size: 0.88rem;
  color: #000000;
  margin-bottom: 20px;
  min-height: 60px;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--color-primary);
}

/* Timeline: Autobuses */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0; /* Left-align timeline */
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgba(165, 63, 73, 0.15);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-badge {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 15px;
  right: -20px;
  z-index: 5;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -20px;
}

.timeline-item.return .timeline-badge {
  background-color: var(--color-secondary);
}

.timeline-panel {
  padding: 10px 0;
  background-color: transparent !important;
  border: none !important;
  position: relative;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.timeline-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.timeline-panel h4 {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-weight: bold;
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 5px;
}

.timeline-panel p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: normal;
  font-size: 0.88rem;
  color: #000000;
  line-height: 1.5;
}

/* Contact Section */
.contact-grid {
  display: flex;
  justify-content: flex-start; /* Left-align contact grid */
  flex-wrap: wrap;
  gap: 40px;
}

.contact-card {
  width: 100%;
  max-width: 400px;
  background-color: transparent; /* Removed white background */
  border: none; /* Removed border */
  border-radius: var(--radius-md);
  padding: 20px 0; /* Adjusted padding */
  text-align: left; /* Left align */
  box-shadow: none; /* Removed shadow */
  backdrop-filter: none;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: none;
}

.contact-avatar {
  display: none !important; /* Hide avatar icon */
}

.contact-card h4 {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-weight: bold;
  font-size: 1.9rem;
  color: #000000;
  margin-bottom: 5px;
}

.contact-card p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: normal;
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 25px;
}

.contact-actions {
  display: flex;
  justify-content: flex-start; /* Align chat buttons to the left */
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 0;
}

.footer .container {
  padding: 0;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 55px; /* Elegant size */
  height: auto;
  filter: brightness(0) invert(1); /* Force the SVG to render as pure white */
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.footer-logo-img:hover {
  transform: scale(1.08);
  opacity: 1;
}

.footer-credits {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 20px;
}

.footer-credits a {
  font-weight: 600;
  text-decoration: underline;
}

.footer-credits a:hover {
  color: var(--color-secondary);
}

.copyright {
  font-size: 0.72rem;
  opacity: 0.5;
  letter-spacing: 1px;
}

/* ==========================================================================
   Animations System
   ========================================================================== */

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

@keyframes pulse-music {
  0% { box-shadow: 0 0 0 0 rgba(165, 63, 73, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(165, 63, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(165, 63, 73, 0); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Transition scroll reveal classes */
.animate-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Entrance Animations */
.animate-fade-in { animation: fade-in 1.2s forwards; }
.animate-fade-in-delayed { animation: fade-in 1.2s 0.8s forwards; opacity: 0; }
.animate-slide-up { animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-up-delayed { animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 4.2rem;
  }
  
  .hotels-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    scroll-margin-top: 180px; /* Offset to keep sections visible below the taller fixed mobile header */
  }

  .scroll-indicator-svg {
    display: none !important;
  }

  /* Timeline Responsive */
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-badge {
    left: 11px !important;
    right: auto !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-badge {
    left: 11px;
  }
  
  /* Layout adjustments */
  .hero-content h1 {
    font-size: 2.8rem; /* Adjusted size so Fátima y Alex fits perfectly in one line on mobile screens */
    line-height: 1.1;
    letter-spacing: 0px;
    height: 160px; /* Increased tall mobile banner to clear space for the menu toggle */
    padding-top: 65px; /* Pushed names lower down to sit below the 52px tall menu/close toggles */
    top: 0;
  }

  .fixed-mobile-date {
    display: block;
    position: fixed;
    top: 27px; /* Centered vertically above names (padding-top: 65px) and inside the 160px header */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 960; /* Sits on top of the fixed h1 banner background */
    font-family: 'PitchOrHoneyTall', var(--font-serif);
    font-size: 1.1rem; /* Slightly smaller than desktop date */
    color: #000000; /* Black color as requested */
    font-weight: bold !important; /* Bold date as requested */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }

  .fixed-mobile-date.visible {
    opacity: 1;
  }

  .mobile-break {
    display: block; /* force line break on mobile */
  }

  .desktop-name {
    display: none;
  }

  .mobile-name {
    display: inline;
  }
  
  .countdown-container {
    gap: 12px; /* wider gap on mobile for larger layout */
  }
  
  .countdown-item {
    min-width: 55px; /* wider items on mobile */
  }
  
  .count-num {
    font-size: 2.0rem; /* Enlarged countdown number on mobile */
  }
  
  .details-card {
    padding: 0 0 20px 0; /* Tightened top margin on mobile */
  }
  
  .rsvp-container {
    padding: 35px 20px;
  }
  
  .rsvp-form-section .section-title {
    padding-left: 20px; /* Align "Confirmación" title with form elements on mobile */
  }
  
  .contact-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  .contact-col.left-col {
    text-align: left !important;
  }
  
  .contact-col.right-col {
    text-align: right !important;
    padding-right: 0 !important;
  }
  
  .section-title h2 {
    font-size: clamp(3.6rem, 16vw, 6.5rem); /* enlarged fluid mobile size, single line */
    white-space: nowrap;
  }
  
  .nav-drawer {
    width: 100%; /* Full screen drawer on mobile for seamless navigation */
    padding: 80px 20px 40px 20px; /* Increased top padding to push content below the absolute close button */
    justify-content: flex-start; /* Shift elements higher up */
    align-items: center; /* Centers content horizontally */
  }

  .drawer-header {
    position: absolute;
    top: 10px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: flex-end; /* Aligns close X button to the right on mobile screens */
    margin: 0;
    padding: 0;
    height: 52px;
    z-index: 1002;
  }

  body.nav-open .top-right-logo {
    z-index: 990; /* Sits behind full-screen drawer (1000) on mobile when opened */
  }

  .nav-drawer .nav-links {
    align-items: center; /* Center links list horizontally */
    width: 100%;
    gap: 12px; /* Reduced separation on mobile screens */
  }

  .nav-drawer .nav-links a {
    text-align: center; /* Center each option text */
    padding: 5px 0; /* Reduced padding for compact layout */
  }

  /* Spacing reductions between text elements on mobile */
  .section-title {
    margin-bottom: 2px !important;
  }
  .section-title h2 {
    margin-bottom: 0 !important;
  }
  .desc-text-block, 
  .rsvp-text-block {
    margin-bottom: 15px !important;
  }
  .details-card h3,
  .rec-card h4,
  .timeline-panel h4,
  .contact-card h4 {
    margin-bottom: 6px !important;
  }
  .cta-text,
  .details-card p,
  .rec-card p,
  .timeline-panel p,
  .contact-card p {
    margin-bottom: 8px !important;
  }
  .container {
    padding: 18px 0 !important;
  }
  .details-grid {
    gap: 12px !important;
  }
  .photo-viewer-wrapper:not(.descubre-photo-wrapper):not(.buses-photo-wrapper) {
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-section {
    min-height: auto !important;
    padding-bottom: 15px !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 3.2rem;
    letter-spacing: 0px;
    line-height: 1.25;
  }
  
  .countdown-container {
    flex-wrap: wrap;
    max-width: 300px;
    margin: 0 auto 30px auto;
  }
  
  .palette-colors {
    gap: 8px;
  }
  
  .color-swatch {
    width: 45px;
    height: 45px;
  }
}

/* Custom Music SVGs style overrides */

/* Subpage styling for RSVP */
.link-btn-text {
  background: none !important;
  border: none !important;
  color: #000000 !important; /* Changed to black color */
  font-family: 'Helvetica', sans-serif !important;
  font-weight: bold !important;
  text-transform: lowercase !important;
  padding: 0 !important;
  font-size: 1.15rem;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition-smooth);
}

.link-btn-text:hover {
  color: var(--color-primary) !important;
  transform: translateX(4px);
}

.back-nav {
  max-width: 800px;
  margin: 20px auto 10px auto; /* Moved higher up and reduced bottom margin */
  width: 90%;
  text-align: left;
}

.back-link {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-primary);
  text-transform: lowercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

.back-link:hover {
  color: var(--color-secondary);
  transform: translateX(-4px);
}

/* Styleless address link matching cta-text styling */
.btn-text-only {
  background: none !important;
  border: none !important;
  color: #323232 !important; /* Charcoal dark gray matching cta-text */
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif !important;
  font-size: 14px !important; /* Same size as cta-text */
  font-weight: 400 !important; /* No bold */
  font-style: normal !important; /* No italic */
  text-transform: lowercase !important;
  text-decoration: none !important; /* No underline */
  padding: 0 !important;
  margin-top: 15px !important;
  cursor: pointer;
  display: inline-block;
  text-align: left !important; /* Aligned to left as requested */
  line-height: 1.4 !important;
  transition: var(--transition-smooth);
}

.btn-text-only:hover {
  color: var(--color-primary) !important;
}

.contact-num-link {
  transition: var(--transition-smooth);
}

.contact-num-link:hover {
  color: var(--color-primary) !important;
  opacity: 0.8;
}

.fixed-header-banner {
  position: fixed;
  top: -180px; /* Hide above viewport */
  left: 0;
  width: 100%;
  height: 130px; /* Increased desktop height */
  background-color: var(--color-bg); /* Cream background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 950; /* below menuToggle (1000) and topRightLogo (990) */
  opacity: 0;
  transition: none !important; /* Disabled transitions for instant appearance */
  pointer-events: none; /* Ignore pointer events when invisible */
  border-bottom: none; /* Removed the bounding line */
}

.fixed-header-banner.visible {
  top: 0;
  opacity: 0.98; /* semi-transparent blur look */
  pointer-events: auto;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.fixed-banner-names {
  font-family: 'PitchOrHoney', var(--font-serif);
  font-size: 4.0rem; /* Made the text almost double the size (from 2.2rem) */
  color: var(--color-primary); /* Burgundy #A53F49 */
  text-align: center;
  line-height: 1;
  padding-top: 15px; /* Push the text lower down inside the banner */
}

.fixed-banner-names .desktop-name {
  display: inline;
}

.mobile-banner-content {
  display: none;
}

@media (max-width: 768px) {
  .fixed-header-banner {
    height: 160px; /* Tall mobile banner to clear space for the menu toggle */
  }
  .fixed-banner-names {
    font-size: 3.0rem; /* Enlarged mobile names */
    padding-top: 55px; /* Pushed names lower down to sit below the 52px tall menu/close toggles */
  }
  .fixed-banner-names .desktop-name {
    display: none;
  }
  .mobile-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Balanced spacing */
  }
  .mobile-date {
    font-family: 'PitchOrHoneyTall', var(--font-serif);
    font-size: 0.85rem;
    color: #000000;
    text-transform: uppercase;
    font-weight: bold !important; /* Bold date */
    letter-spacing: 1.2px;
    line-height: 1;
    margin-top: 2px;
  }
}


/* Form Section Styling for confirmacion.html */
/* Form Section Styling for confirmacion.html */
.form-section-title-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

#personalesTitleContainer {
  margin-top: 5px !important;
}

.form-section-title-container .form-section-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: inline-block;
}

.form-section-title {
  font-family: 'PitchOrHoneyTall', var(--font-serif);
  font-size: 1.6rem; /* Reduced size of subheaders */
  font-weight: normal;
  color: #000000; /* Black color for section headers */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: none !important; /* Removed static border line */
  padding-bottom: 0px;
  text-transform: lowercase;
}

.form-section-title:first-of-type {
  margin-top: 10px;
}

/* Gold dashed curved tracer line */
.header-tracer-svg {
  position: absolute;
  top: 50%;
  left: var(--line-start-left, 150px);
  width: calc(100% - var(--line-start-left, 150px));
  height: 30px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  clip-path: inset(0 0 0 100%); /* Initially fully clipped from the left */
}

.tracer-path {
  stroke-dasharray: 6,4;
}

/* Default tracer reveal: 3 seconds (steps(15) = 5fps) */
.form-section-title-container.visible .header-tracer-svg {
  animation: reveal-tracer-left 3s steps(15) forwards;
}

/* Buses tracer reveal: synced to the bus travel (7.5 seconds, steps(37) = 5fps) */
#busesTitleContainer.bus-animated .header-tracer-svg {
  animation: reveal-tracer-left 7.5s steps(37) forwards;
}

@keyframes reveal-tracer-left {
  0% {
    clip-path: inset(0 0 0 100%);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.rsvp-bus-wrapper {
  position: absolute;
  top: 50%;
  left: calc(100% - 66px); /* Initially placed at the end of the line (width 66px) */
  height: 33px; /* Enlarged height */
  width: 66px; /* Enlarged width */
  opacity: 0;
  transition: opacity 0.5s ease; /* Transition opacity only, left is animated */
  transform-origin: center;
  transform: translateY(-50%); /* Always centered vertically relative to text height */
  z-index: 2;
}

.rsvp-bus-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.form-section-title-container.bus-animated .rsvp-bus-wrapper {
  opacity: 1;
  animation: bus-travel-stepped 7.5s steps(37) forwards; /* Synced to tracer at 5fps steps */
}

.form-section-title-container.bus-animated .rsvp-bus-svg {
  animation: bus-chug 0.18s infinite ease-in-out; /* Continuous engine idle vibration */
}

@keyframes bus-travel-stepped {
  0% {
    left: calc(100% - 66px);
  }
  100% {
    left: var(--bus-stop-left, 90px);
  }
}

@keyframes bus-chug {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-0.6px) scaleY(0.97); /* Subtle motor shake relative to wrapper */
  }
}

.bus-smoke-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Sutil bus smoke particle */
.bus-smoke-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #A53F49;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
  animation: bus-smoke-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bus-smoke-fade {
  0% {
    opacity: 0.3;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(15px, -5px) scale(2.0); /* Drifts slightly right (behind) and up relative to the moving bus */
  }
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.half-width {
  flex: 1;
}

.form-info-text {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  font-family: 'Helvetica', Arial, sans-serif;
  text-transform: lowercase;
}

.back-arrow-btn {
  display: inline-block;
  color: var(--color-primary) !important; /* Burgundy tone #A53F49 */
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
}

.back-arrow-svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary) !important; /* Burgundy tone #A53F49 */
  display: block;
  transition: var(--transition-smooth);
  animation: back-arrow-bounce 1.8s infinite ease-in-out;
}

.back-arrow-btn:hover .back-arrow-svg {
  color: var(--color-secondary) !important; /* Subtle hover color change */
}

@keyframes back-arrow-bounce {
  0%, 100% {
    transform: rotate(90deg) translateY(0);
  }
  50% {
    transform: rotate(90deg) translateY(5px);
  }
}

.rsvp-form-section {
  padding-top: 0px !important;
  padding-bottom: 40px !important;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-banner p {
    font-size: 7px; /* Reduced by 1px from 8px */
    line-height: 2em;
  }
}

/* Footer Banner Style */
.footer-banner {
  background-color: #f2ebd9; /* 10% darker warm sand/cream color than background #faf7f2 */
  padding: 24px 0;
  text-align: center;
  width: 100%;
}

.footer-banner p {
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif;
  font-size: 8px; /* Reduced by 1px from 9px */
  font-weight: bold;
  color: #323232; /* Matches reference site color */
  margin: 0;
  text-transform: uppercase;
}

/* Call to Action Paragraph Styles matching reference site */
.cta-text {
  font-family: 'Swis 721 bt Romana', 'Helvetica', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #323232 !important; /* Charcoal dark gray from reference site */
  line-height: 1.4 !important;
  text-transform: lowercase !important;
}

@media (max-width: 768px) {
  .cta-text,
  .details-card .time {
    font-size: 12px !important;
  }
}

/* Limit desktop texts and paragraphs to half page width */
@media (min-width: 769px) {
  .section-title p,
  .cta-text,
  .details-card p,
  .details-card .time,
  .details-card .address,
  .details-card .desc,
  .timeline-section p,
  .contact-section p {
    max-width: 480px;
    word-wrap: break-word;
  }
  .now-rap-desktop {
    white-space: nowrap !important;
    max-width: none !important;
  }
}

/* Cover Page Center Logo Styles */
.hero-center-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin-top: 130px;
  margin-bottom: 20px;
}

.hero-center-logo img {
  width: 140px;
  height: auto;
}

@media (max-width: 768px) {
  .hero-center-logo {
    margin-top: 160px;
    margin-bottom: 15px;
  }
  .hero-center-logo img {
    width: 110px;
  }
}

/* Footer Illustration: Novios Luna */
.footer-illustration-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-top: 50px;
  line-height: 0;
  position: relative; /* Relative bounds for absolute star layers */
  overflow: visible; /* Let stars float above container boundaries without clipping */
  padding-bottom: 0;
}

.footer-illustration {
  width: 172px; /* Increased size for a grander look */
  height: auto;
  display: block;
  z-index: 2;
}

@media (max-width: 768px) {
  .footer-illustration-container {
    margin-top: 35px;
  }
  .footer-illustration {
    width: 132px; /* Enlarge icon on mobile as requested */
  }
}

/* Floating Hand-Drawn Stars */
.footer-star {
  position: absolute;
  color: #F6A50E; /* Golden yellow matching dynamic indicator line */
  fill: #F6A50E;
  pointer-events: none;
  z-index: 1;
}

.star-l1 { left: calc(50% - 170px); bottom: 100px; width: 34px; height: 34px; transform: rotate(5deg); animation: gentle-float-1 6s ease-in-out infinite; }
.star-l2 { left: calc(50% - 250px); bottom: 135px; width: 42px; height: 42px; transform: rotate(20deg); animation: gentle-float-2 8s ease-in-out infinite; }
.star-l3 { left: calc(50% - 350px); bottom: 115px; width: 30px; height: 30px; transform: rotate(-10deg); animation: gentle-float-3 7s ease-in-out infinite; }
.star-l4 { left: calc(50% - 470px); bottom: 140px; width: 46px; height: 46px; transform: rotate(-15deg); animation: gentle-float-1 7.5s ease-in-out infinite; }
.star-l5 { left: 14%; bottom: 110px; width: 36px; height: 36px; transform: rotate(45deg); animation: gentle-float-2 6.5s ease-in-out infinite; }
.star-l6 { left: 4%; bottom: 130px; width: 26px; height: 26px; transform: rotate(35deg); animation: gentle-float-3 8s ease-in-out infinite; }

.star-r1 { right: calc(50% - 170px); bottom: 105px; width: 36px; height: 36px; transform: rotate(-5deg); animation: gentle-float-2 7.5s ease-in-out infinite; }
.star-r2 { right: calc(50% - 250px); bottom: 140px; width: 38px; height: 38px; transform: rotate(-25deg); animation: gentle-float-1 6.5s ease-in-out infinite; }
.star-r3 { right: calc(50% - 350px); bottom: 110px; width: 32px; height: 32px; transform: rotate(12deg); animation: gentle-float-3 8.5s ease-in-out infinite; }
.star-r4 { right: calc(50% - 470px); bottom: 145px; width: 44px; height: 44px; transform: rotate(18deg); animation: gentle-float-2 7s ease-in-out infinite; }
.star-r5 { right: 14%; bottom: 115px; width: 38px; height: 38px; transform: rotate(-40deg); animation: gentle-float-1 8s ease-in-out infinite; }
.star-r6 { right: 4%; bottom: 135px; width: 28px; height: 28px; transform: rotate(-30deg); animation: gentle-float-3 6.8s ease-in-out infinite; }

@media (max-width: 768px) {
  .star-l1 { left: calc(50% - 110px); bottom: 80px; width: 26px; height: 26px; }
  .star-l2 { left: calc(50% - 75px); bottom: 110px; width: 20px; height: 20px; }
  .star-l3 { left: 10%; bottom: 90px; width: 22px; height: 22px; }
  .star-l4, .star-l5, .star-l6 { display: none; }

  .star-r1 { right: calc(50% - 110px); bottom: 85px; width: 24px; height: 24px; }
  .star-r2 { right: calc(50% - 75px); bottom: 115px; width: 18px; height: 18px; }
  .star-r3 { right: 10%; bottom: 80px; width: 21px; height: 21px; }
  .star-r4, .star-r5, .star-r6 { display: none; }
}

@keyframes gentle-float-1 {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.65; }
  50% { transform: translate(-3px, -14px) rotate(15deg); opacity: 0.95; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.65; }
}

@keyframes gentle-float-2 {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
  50% { transform: translate(4px, -10px) rotate(-10deg); opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
}

@keyframes gentle-float-3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
  50% { transform: translate(-2px, -18px) scale(1.1); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
}

/* Cover Page Portada Image Styles */
.hero-cover-image-container {
  width: 100%; /* Spans 100% of the newly full-width parent */
  position: relative;
  z-index: 1;
  margin-top: 60px; /* Offset adjusted for taller header, moved higher */
  margin-bottom: 12px; /* Spaced nicely below the photo */
  height: auto; /* Scales naturally with image aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cover-img {
  width: 100%;
  height: auto;
  display: block; /* No cropping, displays the entire photo */
}

@media (max-width: 768px) {
  .hero-cover-image-container {
    margin-top: 80px; /* Clear mobile header with taller background, moved higher */
    height: 550px; /* Made even larger as requested */
    margin-bottom: 10px;
  }
  .hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% center;
    animation: pan-cover-image 16s steps(80) infinite; /* Changed steps to 80 for a 5 fps effect */
  }
  .wedding-date {
    display: none !important; /* Hide date on mobile cover page as requested */
  }
  .hand-draw-arrow {
    width: 38px; /* Enlarged scroll arrow on mobile as requested */
    height: 38px;
  }
  .scroll-prompt-text {
    font-size: 1.15rem; /* Sized slightly smaller on mobile for visual balance */
    display: block !important; /* Visible only on mobile as requested */
  }
  .btn-text-only {
    font-size: 12px !important; /* Matches mobile cta-text size */
  }
  #submitBtn {
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
}

@keyframes pan-cover-image {
  0% {
    object-position: 50% center;
  }
  25% {
    object-position: 0% center;
  }
  75% {
    object-position: 100% center;
  }
  100% {
    object-position: 50% center;
  }
}

#ceremonia .container {
  padding-top: 35px !important; /* Bring Ceremonia section closer to the hero scroll arrow */
}

/* Dynamic Scroll Car Smoke Trail */
.smoke-particle {
  fill: #A53F49; /* Burgundy theme color */
  opacity: 0.35; /* Lighter smoke */
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke-fade 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Slower animation */
}

@keyframes smoke-fade {
  0% {
    opacity: 0.4;
    transform: translate(0, 0) scale(0.8); /* Smaller smoke */
  }
  100% {
    opacity: 0;
    transform: translate(var(--sway-x, 0px), var(--sway-y, -10px)) scale(3.0); /* Smaller final spread */
  }
}

/* Honeypot Container (securely hidden from user view) */
.hp-field-container {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Validation Error Container styled with Burgundy theme */
.validation-error-box {
  background-color: rgba(165, 63, 73, 0.08);
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  font-size: 0.85rem;
  font-family: 'Helvetica', Arial, sans-serif;
  text-align: left;
  line-height: 1.5;
  transition: var(--transition-smooth);
}

/* Add to Calendar Button & Dropdown styling */
.calendar-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 25px;
  z-index: 10;
}

.calendar-btn {
  background: transparent !important; /* No fill */
  border: none !important; /* No outline */
  color: var(--color-primary);
  padding: 8px 0; /* Align perfectly with no border */
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  text-decoration: underline; /* Standard underline for frameless link style */
}

.calendar-btn:hover {
  color: var(--color-secondary); /* Elegant terracotta hover color */
  transform: translateY(-1px);
}

.desktop-btn-text {
  display: inline;
}

.mobile-btn-text {
  display: none;
}

.calendar-dropdown-content {
  display: none;
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #faf7f2; /* Matches page cream background */
  border: 1px solid rgba(165, 63, 73, 0.15);
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 170px;
  z-index: 11;
  overflow: hidden;
}

.calendar-dropdown-content.show {
  display: block;
}

.calendar-dropdown-content a {
  color: #000000;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  text-transform: lowercase;
  transition: background-color 0.2s ease;
}

.calendar-dropdown-content a:hover {
  background-color: rgba(165, 63, 73, 0.08);
  color: var(--color-primary);
}

/* Responsive overrides for mobile calendar button */
@media (max-width: 768px) {
  .desktop-btn-text {
    display: none;
  }
  .mobile-btn-text {
    display: inline;
  }
  .calendar-btn {
    font-size: 0.88rem; /* Slightly larger text on mobile link */
  }
  .calendar-btn:hover {
    transform: none;
  }
}

/* Bank account formatting to override cta-text lowercasing and standard weight */
.bank-account {
  font-weight: bold !important;
  text-transform: uppercase !important;
}

/* Navigation buttons for photo viewers */
.photo-nav-btn {
  display: none; /* Hide on mobile by default */
}

@media (min-width: 769px) {
  .photo-nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #323232; /* Charcoal dark gray matching standard text */
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.55;
    outline: none;
    padding: 0;
  }
  .photo-nav-btn:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
  }
  .photo-nav-btn svg {
    width: 32px;
    height: 32px;
  }
  .prev-btn {
    left: -48px; /* Positioned outside of the photo container on the left */
  }
  .next-btn {
    right: -48px; /* Positioned outside of the photo container on the right */
  }
}

@media (min-width: 769px) {
  .descubre-photo-wrapper,
  .buses-photo-wrapper {
    width: clamp(380px, 38vw, 620px) !important;
  }
}

/* Reduce center space and shift layout elements on 15" desktop monitors (between 1200px and 1600px width) */
@media (min-width: 1200px) and (max-width: 1600px) {
  .details-left-column {
    padding-left: clamp(80px, 12vw, 160px); /* Shift texts to the right */
  }
  .details-grid {
    column-gap: clamp(40px, 6vw, 90px); /* Reduce space in the center */
  }
  .photo-viewer-wrapper {
    margin-right: clamp(40px, 6vw, 90px); /* Shift images to the left */
  }
}



