@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Paleta base (se sobreescribe con el selector) */
  --primary: #0a1628;
  --primary-light: #1a2638;
  --accent: #c9a84c;
  --accent-light: #dcc682;
  --bg: #fbf9f6;
  --bg-alt: #f0e6d2;
  --text-dark: #2c3338;
  --text-muted: #666;
  --white: #ffffff;
  
  /* Unified Background Architecture Tokens */
  --bg-page-base: var(--bg);
  --bg-section-alt: var(--bg-alt);
  --bg-card-surface: var(--white);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
}

body.palette-1 {
  --primary: #0a1628;
  --primary-light: #1a2638;
  --accent: #c9a84c;
  --accent-light: #dcc682;
  --bg: #fbf9f6;
  --bg-alt: #f0e6d2;
  --text-dark: #2c3338;
  --text-muted: #666;
  
  --bg-page-base: #fbf9f6;
  --bg-section-alt: #f0e6d2;
  --bg-card-surface: #ffffff;
  
  --p1-main: #0a1628;
  --p2-main: #1a2e1a;
  --p3-main: #2d0a0a;
}

body.palette-2 {
  --primary: #1a2e1a;
  --primary-light: #2a3e2a;
  --accent: #d4af37;
  --accent-light: #e6c86a;
  --bg: #faf8f0;
  --bg-alt: #e8e4d8;
  --text-dark: #2a2a2a;
  --text-muted: #666;
  
  --bg-page-base: #faf8f0;
  --bg-section-alt: #e8e4d8;
  --bg-card-surface: #ffffff;
  
  --p1-main: #0a1628;
  --p2-main: #1a2e1a;
  --p3-main: #2d0a0a;
}

body.palette-3 {
  --primary: #2d0a0a;
  --primary-light: #3d1a1a;
  --accent: #b87333;
  --accent-light: #c88a55;
  --bg: #f8f0e8;
  --bg-alt: #e6dad0;
  --text-dark: #3a2a2a;
  --text-muted: #666;
  
  --bg-page-base: #f8f0e8;
  --bg-section-alt: #e6dad0;
  --bg-card-surface: #ffffff;
  
  --p1-main: #0a1628;
  --p2-main: #1a2e1a;
  --p3-main: #2d0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-page-base);
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Animations */
@keyframes slowFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reveal-classic {
  opacity: 0;
  animation: slowFadeIn 1.5s ease-out forwards;
}
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

/* Selector */
.palette-selector {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(5px);
  z-index: 9999; padding: 15px; display: flex; justify-content: center; align-items: center; gap: 20px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05); font-family: var(--font-body);
}
.palette-selector a { text-decoration: none; color: var(--text-dark); font-weight: 600; letter-spacing: 1px; }
.palette-btn {
  width: 25px; height: 25px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.3s;
}
.palette-btn:hover { transform: scale(1.1); }
.palette-btn.active { border-color: var(--accent); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; background: var(--bg); z-index: 1000;
  padding: 18px 50px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.nav--scrolled { background: var(--bg); box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 14px 50px; }
.nav__logo { font-family: var(--font-heading); font-size: 1.8rem; text-decoration: none; color: var(--primary); font-style: italic; }
.nav__menu { list-style: none; display: flex; gap: 30px; }
.nav__link { text-decoration: none; color: var(--text-dark); font-size: 1.1rem; letter-spacing: 1px; transition: color 0.3s; }
.nav__link:hover { color: var(--accent); }

/* Hero */
.hero-wrapper {
  height: 250vh; /* Scroll space for the animation */
  position: relative;
  padding-top: 80px; /* Offset for fixed navbar */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex; justify-content: center; align-items: center; text-align: center;
  background: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  overflow: hidden;
  perspective: 2000px;
}
.hero-sticky::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.75);
}

.hero__card {
  position: relative; z-index: 1;
  width: 90%; max-width: 800px; height: 400px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__front, .hero__back {
  position: absolute; inset: 0;
  border: 1px solid var(--accent); background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  backface-visibility: hidden;
  padding: 40px;
}
.hero__back {
  transform: rotateY(180deg);
}

.hero__title { font-size: 5rem; line-height: 1; margin-bottom: 20px; font-style: italic; color: var(--primary); }
.hero__subtitle { font-size: 1.5rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-muted); }
.hero__ornament { color: var(--accent); font-size: 1.5rem; margin: 20px 0; }

/* Sections */
.section { padding: 120px 20px; text-align: center; }
.section--alt { background-color: var(--bg-section-alt); }
.section__title { font-size: 3rem; font-style: italic; position: relative; display: inline-block; padding-bottom: 20px; }
.section__title::after { content: '✦'; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 1.2rem; }
.section__desc { max-width: 600px; margin: 30px auto; font-size: 1.2rem; color: var(--text-muted); }

/* Details Grid */
.details-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 50px; }
.detail-card { width: 300px; padding: 40px 20px; border: 1px solid var(--accent-light); background: var(--white); border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.detail-icon { display: flex; justify-content: center; align-items: center; color: var(--accent); margin-bottom: 20px; }
.detail-title { font-size: 1.5rem; margin-bottom: 15px; }

/* Cinematic Scroll */
.lugar-scroll { height: 400vh; min-height: 400vh; background: #000; position: relative; display: block; overflow: visible; padding: 0; }
.lugar-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; display: flex; justify-content: center; align-items: center; }
#venueCanvas { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.lugar-text { position: absolute; color: var(--white); font-size: 3.5rem; text-align: center; font-style: italic; opacity: 0; transition: opacity 0.8s ease; width: 90%; }
.lugar-text.visible { opacity: 1; }

/* Forms (Estilo Limpio - Inspirado en Diseño C) */
.form-container { 
  max-width: 700px; 
  margin: 0 auto; 
  text-align: left; 
  background: var(--white); 
  padding: 50px; 
  border-radius: 35px; 
  box-shadow: 0 15px 45px rgba(10, 22, 40, 0.06); 
  border: none; 
}
.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 25px; flex: 1; }
.form-label { 
  display: block; 
  font-family: var(--font-heading); 
  font-size: 1.15rem; 
  margin-bottom: 8px; 
  color: var(--primary); 
  font-style: italic; 
}
.form-input, .form-select, .form-textarea { 
  width: 100%; 
  padding: 15px 22px; 
  border: 1px solid #eaeaea; 
  background: #fdfdfd; 
  font-family: var(--font-body); 
  font-size: 1.05rem; 
  color: var(--text-dark); 
  border-radius: 25px; 
  transition: all 0.3s ease; 
}
.form-input:focus, .form-select:focus, .form-textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15); 
  background: var(--white); 
}
.form-btn { 
  display: block; 
  width: 100%; 
  background: var(--primary); 
  color: var(--white); 
  border: none; 
  padding: 16px 30px; 
  border-radius: 30px; 
  font-family: var(--font-heading); 
  font-size: 1.2rem; 
  font-style: italic; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  margin-top: 25px; 
  box-shadow: 0 5px 20px rgba(10, 22, 40, 0.15); 
}
.form-btn:hover { 
  background: var(--accent); 
  color: var(--primary); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3); 
}
.form-checkbox { margin-right: 10px; accent-color: var(--accent); }
.form-checkbox-label { font-size: 1.1rem; }

/* Music / Spotify (Sin Recuadros - Diseño C) */
.music-grid { display: flex; gap: 40px; margin-top: 40px; align-items: stretch; text-align: left; flex-wrap: wrap; }
.music-spotify { flex: 1; min-width: 300px; border: none; padding: 0; background: transparent; }
.music-spotify iframe { border-radius: 30px !important; border: none !important; box-shadow: 0 12px 35px rgba(0,0,0,0.06) !important; }
.music-form-container { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: 35px; box-shadow: 0 15px 45px rgba(10, 22, 40, 0.06); border: none; }
.spotify-results { position: absolute; width: 100%; background: #faf7f2; z-index: 1000; max-height: 320px; overflow-y: auto; box-shadow: 0 12px 32px rgba(0,0,0,0.15); border: 2px solid var(--accent); border-radius: 12px; padding: 6px; margin-top: 4px; box-sizing: border-box; }
.spotify-item, .spotify-result-item { display: flex; align-items: center; padding: 10px 12px; cursor: pointer; border-radius: 8px; transition: background 0.2s; margin-bottom: 4px; border-bottom: none; }
.spotify-item:last-child, .spotify-result-item:last-child { margin-bottom: 0; }
.spotify-item:hover, .spotify-result-item:hover { background: #f0eade; }
.spotify-result-img, .spotify-item img { width: 48px; height: 48px; margin-right: 12px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); object-fit: cover; }
.spotify-result-info { flex: 1; min-width: 0; }
.spotify-result-title, .spotify-item-title { color: #1a1a2e; font-size: 0.95rem; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify-result-artist, .spotify-item-artist { color: #6b6b7b; font-size: 0.82rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify-play-btn { width: 32px; height: 32px; fill: var(--accent); }

/* Footer */
.footer { background: var(--primary); color: var(--white); text-align: center; padding: 60px 20px; }
.footer__logo { color: var(--accent); font-size: 2.5rem; margin-bottom: 10px; }
.footer a { color: var(--accent); text-decoration: none; }

.nav__toggle { display: none; }

/* =========================================
   Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
  /* Mobile Navigation Dropdown */
  .nav {
    top: 0; left: 0; width: 100%; height: 60px; padding: 10px 20px;
    flex-direction: row; justify-content: space-between; align-items: center;
    background: var(--bg) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  }
  .nav__logo { display: block; font-size: 1.5rem; }
  
  .nav__toggle {
    position: relative;
    width: 26px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    display: block;
  }
  .nav__toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                top 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
  }
  .nav__toggle span:nth-child(1) { top: 2px; }
  .nav__toggle span:nth-child(2) { top: 9px; }
  .nav__toggle span:nth-child(3) { top: 16px; }

  .nav__toggle--open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }
  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__toggle--open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 18px 0 24px;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 249, 246, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 12px 30px rgba(10, 22, 40, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.45s;
    pointer-events: none;
    z-index: -1;
  }
  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav__link {
    font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; color: var(--text-dark);
    padding: 15px 30px; display: block; transition: all 0.3s;
  }
  .nav__link.active {
    font-weight: 700; color: var(--accent); border-left: 4px solid var(--accent); padding-left: 26px; background: rgba(0,0,0,0.02);
  }

  /* Reset padding */
  .section, .hero, .footer { padding-left: 20px; padding-right: 20px; }

  /* Hero 3D Card */
  .hero-wrapper { height: 200vh; touch-action: pan-y pinch-zoom; }
  .hero-sticky { touch-action: pan-y pinch-zoom; }
  .hero__card { width: calc(100% - 40px); max-width: 400px; height: 350px; }
  .hero__front, .hero__back { padding: 30px 15px; }
  .hero__title { font-size: 3.5rem; }
  .hero__subtitle { font-size: 1.1rem; letter-spacing: 2px; }

  /* Sections & Fonts */
  .section__title { font-size: 2.2rem; }
  .section__desc { font-size: 1.1rem; }

  /* Grids to Columns */
  .details-grid { gap: 30px; flex-direction: column; align-items: center; }
  .detail-card { width: 100%; padding: 30px 15px; }

  /* Cinematic Scroll Text */
  .lugar-text { font-size: 2.2rem; }

  /* Forms */
  .form-container { padding: 30px 15px; width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  
  /* Music Section */
  .music-grid { flex-direction: column; }
}

/* ==========================================================================
   TIMELINE SECTION (HORARIOS)
   ========================================================================== */
.timeline-section {
  padding: 80px 20px;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* ── Timeline Item ──────────────────────────────────────────────────────── */
.timeline__item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline__item:last-child {
  margin-bottom: 0;
}
.timeline__item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline__item.timeline-hidden {
  opacity: 0;
  transform: translateY(30px);
}
.timeline__item.timeline-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small gold dot on the timeline center line */
.timeline__item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid var(--bg-alt, #faf7f2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--accent);
}

/* ── Time Column ────────────────────────────────────────────────────────── */
.timeline__time {
  width: 50%;
  text-align: right;
  padding-right: 45px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}
.timeline__item:nth-child(even) .timeline__time {
  text-align: left;
  padding-right: 0;
  padding-left: 45px;
}

/* ── Content Card ───────────────────────────────────────────────────────── */
.timeline__content {
  width: 50%;
  background: var(--white);
  padding: 30px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  position: relative;
  box-sizing: border-box;
}
.timeline__item:nth-child(odd) .timeline__content {
  margin-left: 45px;
  margin-right: 0;
  padding-left: 50px;
  text-align: left;
}
.timeline__item:nth-child(even) .timeline__content {
  margin-left: 0;
  margin-right: 45px;
  padding-right: 50px;
  text-align: right;
}

/* ── Icon Circle (half inside / half outside border, vertically centered on edge) ── */
.timeline__icon {
  width: 68px;
  height: 68px;
  background: var(--primary);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 3;
}
.timeline__item:nth-child(odd) .timeline__icon {
  left: 0;
  right: auto;
  transform: translate(-50%, -50%);
}
.timeline__item:nth-child(odd):hover .timeline__icon {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.timeline__item:nth-child(even) .timeline__icon {
  right: 0;
  left: auto;
  transform: translate(50%, -50%);
}
.timeline__item:nth-child(even):hover .timeline__icon {
  transform: translate(50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.timeline__icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.timeline__title {
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}
.timeline__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ── Mobile Layout (line left, cards right) ────────────────────────────── */
@media (max-width: 768px) {
  .timeline {
    padding-left: 24px;
  }
  .timeline::before {
    left: 24px;
    transform: none;
  }
  .timeline__item,
  .timeline__item:nth-child(even) {
    flex-direction: row;
    align-items: center;
    padding-left: 40px;
    margin-bottom: 50px;
  }
  /* Gold dot on the left line */
  .timeline__item::after {
    display: block;
    left: 24px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
  }
  .timeline__time {
    display: none;
  }
  .timeline__content,
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    width: 100%;
    margin: 0 !important;
    padding: 24px 24px 24px 50px !important;
    text-align: left !important;
  }
  /* Show time inside the card on mobile */
  .timeline__content::before {
    content: attr(data-time);
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
  }
  .timeline__icon,
  .timeline__item:nth-child(odd) .timeline__icon,
  .timeline__item:nth-child(even) .timeline__icon {
    width: 58px;
    height: 58px;
    left: 0;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .timeline__item:nth-child(odd):hover .timeline__icon,
  .timeline__item:nth-child(even):hover .timeline__icon {
    transform: translate(-50%, -50%) scale(1.1);
  }
  .timeline__icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   INFO PRACTICA (Autobuses y Alojamiento)
   ========================================================================== */
.info-section {
  padding: 80px 20px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.info-card {
  background: var(--bg-card-surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.info-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.info-card__title {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.info-card__text {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.info-card__list {
  list-style: none;
  text-align: left;
  color: var(--text-dark);
  font-size: 1.1rem;
}
.info-card__list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}
.info-card__list li::before {
  content: '✦';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

/* ==========================================================================
   FORMULARIO ESTILO 3 (RSVP)
   ========================================================================== */
.form-style-3 .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.form-style-3 .form-row .form-group {
  flex: 1;
  margin-bottom: 0; /* Override default margin */
}
@media (max-width: 600px) {
  .form-style-3 .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   CALENDAR SECTION (GUARDA LA FECHA)
   ========================================================================== */
.calendar-section {
  padding: 100px 20px;
}

.calendar-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card-surface, #ffffff);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 35px;
  padding: 50px 40px;
  box-shadow: 0 15px 45px rgba(10, 22, 40, 0.06);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.calendar-card__ornament {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.calendar-card__date {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 15px;
}

.calendar-card__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.calendar-card__time,
.calendar-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-card__time svg,
.calendar-card__location svg {
  color: var(--accent);
}

.calendar-card__divider {
  color: var(--accent);
  font-size: 1.1rem;
}

.calendar-card__reminder {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 25px;
}

.calendar-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 220px;
  box-sizing: border-box;
}

.btn-calendar__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-calendar:hover .btn-calendar__icon {
  transform: scale(1.15);
}

/* Botón Calendario: Estilo Principal */
.btn-calendar--google,
.btn-calendar--apple {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
  box-shadow: 0 5px 20px rgba(10, 22, 40, 0.15);
}

.btn-calendar--google:hover,
.btn-calendar--apple:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

/* ==========================================================================
   GIFTS SECTION (REGALOS DE BODA & IBAN)
   ========================================================================== */
.gifts-section {
/* ==========================================================================
   GIFTS SECTION (REGALOS DE BODA - SOBRIO Y ELEGANTE)
   ========================================================================== */
.gifts-section {
  padding: 85px 20px 75px;
  text-align: center;
}

.gifts-discreet {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.gifts-discreet__body {
  margin-top: 25px;
}

.gifts-discreet__names {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.gifts-iban-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: all;
  -webkit-user-select: all;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.gifts-iban-inline:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--accent);
}

.gifts-iban-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.72rem, 3.2vw, 1rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: clamp(0.4px, 0.15vw, 0.8px);
  white-space: nowrap;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  border-bottom: none !important;
}

.gifts-iban-inline a,
.gifts-iban-number a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.btn-copy-mini {
  background: transparent;
  border: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-mini:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.btn-copy-mini.copied {
  color: #2e7d32 !important;
}

.copy-badge-s {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: #2e7d32;
  font-weight: 600;
  min-height: 1.4em;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-badge-s.show,
.copy-badge-s.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SCROLL MARGIN & MOBILE OPTIMIZATIONS (CLASSIC THEME)
   ========================================================================== */
#guardar-fecha,
#calendario,
#detalles,
#cronograma,
#info-practica,
#lugar,
#regalos,
#confirmacion,
#musica {
  scroll-margin-top: 70px;
}

@media (max-width: 768px) {
  .calendar-section,
  .gifts-section {
    padding: 70px 15px;
  }

  .calendar-card,
  .gifts-card,
  .iban-card {
    padding: 35px 20px;
    border-radius: 28px;
  }

  .calendar-card__date {
    font-size: 1.7rem;
  }

  .calendar-card__meta {
    flex-direction: column;
    gap: 6px;
    font-size: 1.1rem;
  }

  .calendar-card__divider {
    display: none;
  }

  .calendar-actions {
    flex-direction: column;
    gap: 14px;
  }

  .btn-calendar {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
    min-height: 48px;
  }

  .gifts-message {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .gifts-names,
  .iban-card__names {
    font-size: 1.5rem;
  }

  .iban-box,
  .iban-card__box {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 16px;
  }

  .iban-info {
    text-align: center;
  }

  .iban-code,
  .iban-card__number {
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    word-break: break-all;
  }

  .btn-copy-iban,
  .iban-copy-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    min-height: 48px;
  }

  input, select, textarea,
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .calendar-card__date {
    font-size: 1.45rem;
  }

  .iban-code,
  .iban-card__number {
    font-size: 1.0rem;
    letter-spacing: 1px;
    word-break: break-all;
  }
}

