/* ============================
   VARIABLES DE ESTILO RÚSTICO
   ============================ */
:root {
  /* Colores rústicos y cálidos */
  --cream: #faf8f3;
  --beige: #e8dcc4;
  --brown: #8b7355;
  --dark-brown: #5d4e37;
  --sage: #9caf88;
  --olive: #6b7c59;
  --rust: #c17c5c;
  --text-dark: #3a3027;
  --white: #ffffff;
  
  /* Fuentes */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* ============================
   RESET Y BASE
   ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0rem;
}

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

/* ============================
   NAVEGACIÓN STICKY
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-brown);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--olive);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--olive);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hamburger menu (móvil) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================
   HERO - SAVE THE DATE
   ============================ */
.hero {
  margin-top: 70px;
  padding: 1.5rem 1rem 0.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--beige) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  width: 100%;
  animation: fadeIn 1.5s ease;
}

.save-the-date-img {
  width: clamp(180px, 40vw, 320px);
  height: auto;
  margin: 0 auto;
  display: block;
}


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

/* ============================
   SECCIÓN BIENVENIDA
   ============================ */
.welcome {
  padding: 3rem 2rem;
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--dark-brown);
  font-weight: 600;
}

.decorative-line {
  width: 60px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

/* Box con border ondulado sutil y transparente */
.welcome-box {
  max-width: 750px;
  margin: 0 auto 2rem;
  padding: 1rem 4rem;
}

.welcome-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  background: linear-gradient(45deg, 
    rgba(156, 175, 136, 0.3) 0%, 
    rgba(107, 124, 89, 0.2) 50%, 
    rgba(156, 175, 136, 0.3) 100%);
  z-index: -1;
  opacity: 0.4;
  filter: blur(1px);
}

.welcome-text {
  text-align: justify;
  font-size: 1.1rem;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.welcome-text:last-child {
  margin-bottom: 0;
}

.date-badge {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}


.date-day {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--dark-brown);
  line-height: 1;
}

.date-month {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brown);
}

.date-year {
  font-size: 1.5rem;
  color: var(--olive);
}

/* ============================
   INVITACIÓN FORMAL
   ============================ */
.invitation {
  padding: 5rem 2rem;
  background: var(--cream);
}

.invitation-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: var(--white);
  border: 3px solid var(--beige);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.invitation-ornament {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.invitation-card h3 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.invitation-location {
  font-size: 1.3rem;
  color: var(--olive);
  margin-bottom: 1.5rem;
}

.invitation-details {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.invitation-datetime {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--beige);
  border-radius: 6px;
}

.invitation-datetime p {
  font-size: 1.15rem;
  color: var(--dark-brown);
  margin: 0.5rem 0;
}

.invitation-venue {
  font-size: 1.1rem;
  color: var(--brown);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================
   CONFIRMACIÓN CTA
   ============================ */
.confirmation-cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--sage) 0%, var(--olive) 100%);
  color: var(--white);
}

.confirmation-cta h3 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.confirmation-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--white);
  color: var(--olive);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================
   REGALOS
   ============================ */
.gifts {
  padding: 5rem 2rem;
  background: var(--white);
}

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

.gifts-text {
  font-size: 1.1rem;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.bank-account {
  padding: 2rem;
  margin: 2rem 0;
}

.iban-label {
  font-size: 0.95rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.iban-number {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  color: var(--dark-brown);
  font-weight: 600;
  letter-spacing: 2px;
}

.gifts-footer {
  font-size: 1.1rem;
  color: var(--olive);
  font-style: italic;
  margin-top: 2rem;
}

/* ============================
   CONTACTO
   ============================ */
.contact {
  padding: 5rem 2rem;
  background: var(--cream);
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-detail {
  font-size: 1.05rem;
  color: var(--brown);
}

/* ============================
   FOOTER
   ============================ */
footer {
  padding: 2.5rem 2rem;
  background: var(--dark-brown);
  color: var(--beige);
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 1rem;
}

/* ============================
   CUENTA REGRESIVA - SIN BOX
   ============================ */
.countdown-container {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.countdown-display {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--dark-brown);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ============================
   CRONOGRAMA VISUAL - LÍNEA SERPENTEANTE EXACTA
   ============================ */
.timeline-section {
  padding: 3rem 2rem;
  background: var(--white);
}

.event-timeline-serpentine {
  position: relative;
  max-width: 700px;
  margin: 3rem auto 0;
  padding: 2rem 0;
}

/* SVG de línea serpenteante de fondo */
.serpentine-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Cada evento en vertical */
.serpentine-event {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  z-index: 1;
}

.serpentine-event:last-child {
  margin-bottom: 2rem;
}

/* Contenido del evento - centrado */
.serpentine-content {
  background: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 600px;
  width: 100%;
  transition: all 0.3s ease;
}

.serpentine-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--sage);
}

.serpentine-content .event-time {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: block;
}

.serpentine-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.serpentine-content p {
  color: var(--brown);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Imágenes en el timeline */
.serpentine-content .event-image-placeholder {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--beige);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.serpentine-content .event-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px;
  display: block;
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
  .timeline-section {
    padding: 2rem 1rem;
  }

  .event-timeline-serpentine {
    padding: 1rem 0;
    max-width: 100%;
  }

  .serpentine-line {
    width: 150px;
  }

  .serpentine-event {
    margin-bottom: 3.5rem;
  }

  .serpentine-content {
    padding: 1.5rem 1.5rem;
    max-width: 90%;
  }

  .serpentine-content .event-time {
    font-size: 1.6rem;
  }

  .serpentine-content h3 {
    font-size: 1.3rem;
  }

  .serpentine-content p {
    font-size: 1rem;
  }

  .serpentine-content .event-img {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .event-timeline-serpentine {
    margin-top: 2rem;
  }

  .serpentine-line {
    width: 120px;
  }

  .serpentine-event {
    margin-bottom: 3rem;
  }

  .serpentine-content {
    padding: 1.2rem 1.2rem;
  }

  .serpentine-content .event-time {
    font-size: 1.4rem;
  }

  .serpentine-content h3 {
    font-size: 1.2rem;
  }

  .serpentine-content p {
    font-size: 0.95rem;
  }

  .serpentine-content .event-img {
    max-height: 180px;
  }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--cream);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .hero {
    padding: 1rem 0.5rem 0.5rem;
  }

  .welcome {
    padding: 2rem 1.5rem;
  }

  .welcome-box {
    padding: 1.5rem 1.5rem;
    border-radius: 225px 15px 200px 15px/15px 200px 15px 225px;
  }

  .welcome-box::before {
    border-radius: 225px 15px 200px 15px/15px 200px 15px 225px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .welcome-text {
    font-size: 1rem;
    text-align: left;
  }

  .date-day {
    font-size: 2.5rem;
  }

  .date-month {
    font-size: 1.1rem;
  }

  .date-year {
    font-size: 1.2rem;
  }

  .countdown-display {
    font-size: 1.3rem;
  }

  .invitation-card {
    padding: 2.5rem 1.5rem;
  }

  .invitation-card h3 {
    font-size: 2.2rem;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 0.9rem;
  }

  .section-header {
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .decorative-line {
    width: 40px;
  }

  .welcome-box {
    padding: 1.2rem 1rem;
  }

  .welcome-box::before {
    border-radius: 200px 12px 180px 12px/12px 180px 12px 200px;
  }

  .date-day {
    font-size: 2rem;
  }
}