:root {
  --bg-ivory: #FAF8F5;
  --bg-sand: #F2ECE1;
  --bg-card: #FFFFFF;
  --text-dark: #232A24;
  --text-muted: #5A625B;
  --accent-sage: #4A5D4E;
  --accent-sage-light: #6E8473;
  --accent-sage-bg: #EBF0EC;
  --accent-gold: #B89768;
  --accent-gold-light: #D5C09E;
  --border-subtle: rgba(74, 93, 78, 0.16);
  --danger: #B34040;
  --danger-bg: #FCECEC;
  --warning: #9C6B21;
  --warning-bg: #FDF5E6;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --shadow-soft: 0 12px 36px rgba(35, 42, 36, 0.06);
  --shadow-hover: 0 18px 44px rgba(35, 42, 36, 0.11);
  --radius-md: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent-gold);
}

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 2.8rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 2rem;
  transition: all 0.35s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 2rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar.scrolled .nav-brand {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s;
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--accent-gold);
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(184, 151, 104, 0.35);
}

.nav-cta:hover {
  background: #a38254;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/fotos/_CAR5357.jpg');
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.03);
  animation: slowZoom 22s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 28, 24, 0.48) 0%,
    rgba(22, 28, 24, 0.38) 50%,
    rgba(22, 28, 24, 0.72) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  animation: fadeUp 1.1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-pre {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 8.5vw, 6.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-names .amp {
  font-family: var(--font-script);
  color: var(--accent-gold-light);
  font-size: 0.85em;
  padding: 0 0.2em;
}

.hero-date-loc {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  min-width: 88px;
  padding: 0.9rem 1rem;
}

.countdown-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.88;
  margin-top: 0.35rem;
  display: block;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-sage);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(74, 93, 78, 0.3);
}

.btn-primary:hover {
  background: #3A4B3E;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(184, 151, 104, 0.35);
}

.btn-gold:hover {
  background: #A48354;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Containers & Sections */
.section {
  padding: 5.5rem 1.5rem;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
}

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

/* Story & Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.intro-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
}

.intro-photo-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.intro-photo-secondary {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 3rem;
}

.intro-text h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1.2rem;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.key-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.key-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.key-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-sage);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.key-badge-val {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text-dark);
}

.key-badge-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Important Personal Invitation Banner */
.personal-notice-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #2D3830 0%, #3F4F43 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  box-shadow: var(--shadow-soft);
}

.notice-col {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice-icon {
  font-size: 1.7rem;
  background: rgba(255, 255, 255, 0.12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-col h4 {
  font-size: 1.35rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.3rem;
}

.notice-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* Itinerary Timeline */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-gold-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.6rem;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 2.4rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-sage);
  border: 3px solid var(--bg-sand);
  z-index: 2;
}

.timeline-time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Cards Grid (Hospedaje, Cena, Travel) */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card-header {
  margin-bottom: 1.2rem;
}

.info-card-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  margin-bottom: 0.8rem;
}

.info-card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.price-highlight {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--bg-ivory);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
}

.price-big {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.price-approx {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Airbnb Cards */
.airbnb-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.airbnb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.airbnb-item:hover {
  border-color: var(--accent-gold);
  background: #FFFFFF;
  transform: translateX(4px);
}

.airbnb-meta strong {
  display: block;
  font-size: 0.95rem;
}

.airbnb-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.airbnb-link-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dresscode & Rules */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
}

.rule-card.rule-warning {
  border-left: 4px solid var(--warning);
  background: #FFFDF9;
}

.rule-card.rule-camera {
  border-left: 4px solid var(--accent-sage);
}

.rule-card.rule-dress {
  border-left: 4px solid var(--accent-gold);
}

.rule-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.rule-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.rule-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 16, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

/* RSVP & Hotel Reservation Form */
.rsvp-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-hover);
}

.rsvp-deadline-banner {
  background: var(--accent-sage-bg);
  border: 1px solid rgba(74, 93, 78, 0.25);
  color: var(--accent-sage);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(74, 93, 78, 0.28);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-ivory);
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-sage);
  background: #FFFFFF;
}

/* Radio Pills for Attendance & Lodging */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.choice-card {
  position: relative;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  background: var(--bg-ivory);
  transition: all 0.22s ease;
}

.choice-card:hover {
  border-color: var(--accent-sage-light);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card.selected {
  border-color: var(--accent-sage);
  background: var(--accent-sage-bg);
}

.choice-card-title {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

.choice-card-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Night Selection Checkboxes */
.nights-selector-box {
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.nights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.night-card {
  border: 2px solid var(--border-subtle);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.night-card:hover:not(.disabled) {
  border-color: var(--accent-gold);
}

.night-card.selected {
  border-color: var(--accent-sage);
  background: var(--accent-sage-bg);
}

.night-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.night-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.night-day-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.night-price-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.night-date-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.night-avail-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-top: 0.25rem;
}

.night-Summary-bar {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border-radius: 10px;
  border-left: 4px solid var(--accent-sage);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-ivory);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--accent-sage);
  flex-shrink: 0;
}

.checkbox-row span {
  font-size: 0.88rem;
  color: var(--text-dark);
}

.rsvp-success {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}

.rsvp-success.active {
  display: block;
}

/* Footer */
.footer {
  background: #1E241F;
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.footer-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--accent-gold-light);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 16px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-end;
  }
  .timeline-content {
    width: calc(100% - 44px);
  }
  .timeline-dot {
    left: 16px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .form-grid, .choice-cards {
    grid-template-columns: 1fr;
  }
  .rsvp-wrapper {
    padding: 1.8rem 1.3rem;
  }
  .nav-links {
    display: none;
  }
}
