/* ============================================
   BODA FEDERICA & MARCELO
   Palette: olive/sage green, cream, gold accents
   ============================================ */

:root {
  --olive: #7B8440;
  --olive-dark: #5C6330;
  --olive-light: #A3AD6A;
  --cream: #F5F2EC;
  --cream-dark: #EDE9E0;
  --white: #FFFFFF;
  --gold: #C4A35A;
  --gold-light: #D4BC82;
  --blue: #7BA4C7;
  --text: #3A3A32;
  --text-light: #6B6B60;
  --text-lighter: #9A9A8E;

  --ff-serif: 'Cormorant Garamond', 'Georgia', serif;
  --ff-sans: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  --ff-display: 'Playfair Display', 'Georgia', serif;

  --container: 1100px;
  --section-pad: clamp(80px, 12vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  color: var(--text);
  background: url('assets/paper-texture.jpg');
  background-size: 800px 800px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 0.3s;
}

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

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

.nav-cta {
  background: var(--olive);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 2px;
  letter-spacing: 2px;
  transition: background 0.3s, transform 0.2s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--olive-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 132, 64, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(196, 163, 90, 0.03) 0%, transparent 50%),
    url('assets/paper-texture.jpg');
  background-size: auto, auto, 800px 800px;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
}

.hero-monogram {
  width: min(340px, 70vw);
  margin-bottom: 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.04));
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--olive-light);
  margin: 0 auto 24px;
}

.hero-date {
  font-family: var(--ff-sans);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.hero-venue {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-lighter);
  margin-bottom: 48px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown-number {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-lighter);
}

.countdown-separator {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--olive-light);
  padding-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-lighter);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTIONS COMMON ---- */
.section {
  padding: var(--section-pad) 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Italiana', var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title--blue {
  color: var(--blue);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title--olive-bg {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-family: 'Bodoni Moda', var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-optical-sizing: auto;
  padding: 28px 56px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.3;
}

.section-subtitle {
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 48px;
}

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

/* ---- INVITACIÓN ---- */
.invitacion {
  background: transparent;
}

.invitacion .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-prelude {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
  text-align: center;
}

.parents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  width: 100%;
}

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

.parents-col p {
  font-family: var(--ff-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text-light);
  line-height: 2;
}

.parents-divider {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--olive-light);
}

.invitation-text {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
  text-align: center;
}

.couple-names-img {
  width: min(500px, 80vw);
  height: auto;
  margin-top: 8px;
  display: block;
}

/* ---- EVENTO ---- */
.evento {
  background: transparent;
}

/* Green card with paper texture */
.evento-floating-card {
  background: #858832;
  color: rgba(255,255,255,0.85);
  padding: 40px 56px;
  margin: 0 auto 56px;
  max-width: 480px;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.15),
    0 8px 24px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.evento-floating-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/paper-overlay.png');
  background-size: 400px 400px;
  opacity: 0.5;
  pointer-events: none;
}

.evento-card-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--ff-sans);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.evento-card-sep {
  opacity: 0.4;
  font-weight: 200;
}

.evento-card-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 16px;
  position: relative;
}

.evento-card-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.evento-card-label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
}

.evento-card-hour {
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.evento-card-time-sep {
  opacity: 0.3;
  font-size: 1.2rem;
  font-weight: 200;
}

.venue-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.venue-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-info h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 8px;
}

.venue-info > p {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.8rem !important;
  color: var(--text-lighter) !important;
  margin-bottom: 20px !important;
  line-height: 1.6;
}

.venue-map {
  min-height: 280px;
  background: var(--cream-dark);
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-outline:hover {
  background: var(--olive);
  color: var(--white);
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 132, 64, 0.3);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.8rem;
  letter-spacing: 3px;
}

/* ---- DRESS CODE ---- */
.dresscode {
  background: transparent;
}

.dresscode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.dresscode-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 48px 24px;
  transition: all 0.3s;
}

.dresscode-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.dresscode-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.dresscode-card:hover .dresscode-img {
  transform: scale(1.05);
}

.dresscode-card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.dresscode-card p {
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 1px;
}

/* ---- RECOMENDACIONES ---- */
.recomendaciones {
  background: transparent;
}

.reco-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.reco-card {
  flex: 0 0 calc(33.333% - 20px);
  max-width: 250px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 24px 16px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.reco-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.reco-card:hover .reco-icon-img {
  transform: scale(1.05);
}

.reco-icon-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform 0.3s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.reco-card h3 {
  font-family: 'Italiana', var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.reco-card p {
  font-size: 0.78rem;
  color: var(--blue);
  line-height: 1.5;
  letter-spacing: 1px;
}

/* ---- MESA DE REGALOS ---- */
.regalos {
  background: transparent;
}

.regalos-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.regalo-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 48px 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.regalo-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.regalo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.regalo-card:hover .regalo-img {
  transform: scale(1.05);
}

.regalo-card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.regalo-card p {
  font-size: 0.85rem;
  color: var(--blue);
}

.bank-info {
  font-style: italic;
  color: var(--text-lighter) !important;
  font-size: 0.8rem !important;
}

/* ---- CONFIRMAR ---- */
.confirmar {
  background: var(--olive);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.confirmar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.confirmar .container {
  position: relative;
}

.confirmar .section-tag {
  color: var(--gold-light);
}

.confirmar .section-title--blue {
  color: var(--blue);
}

.confirmar .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.confirmar .section-subtitle strong {
  color: var(--white);
  font-weight: 400;
}

.confirmar .btn-primary {
  background: var(--white);
  color: var(--olive-dark);
}

.confirmar .btn-primary:hover {
  background: var(--gold-light);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--olive-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-date {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 6px;
}

/* ---- FADE IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .venue-card {
    grid-template-columns: 1fr;
  }

  .reco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .parents {
    flex-direction: column;
    gap: 16px;
  }

  .parents-divider {
    display: none;
  }

  .evento-floating-card {
    padding: 32px 28px;
  }

  .dresscode-cards {
    grid-template-columns: 1fr;
  }

  .regalos-cards {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 56px;
  }
}

@media (max-width: 500px) {
  .reco-grid {
    grid-template-columns: 1fr;
  }

  .hero-monogram {
    width: min(260px, 65vw);
  }
}
