/* ==========================================================================
   Juan & Lucía — Web de boda
   ========================================================================== */

:root {
  --bg: #faf6ef;
  --bg-alt: #f1e9db;
  --ink: #362f28;
  --ink-soft: #6b6156;
  --gold: #a9824f;
  --gold-dark: #8a6a3f;
  --green: #4c5a44;
  --cream: #fffdf9;
  --border: #e4d8c2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Parisienne', cursive;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

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

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

.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }

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

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
  margin: 0 0 10px;
}
.eyebrow.light { color: #d9c9a3; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 26px;
}
.section-title.light { color: var(--cream); }
.section-title.gift-title {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold-dark);
  margin: 18px 0 30px;
}

.lede {
  max-width: 620px;
  margin: 0 auto 8px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.lede.light { color: #efe6d3; }
.lede-sub {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  opacity: 0.85;
}
.lede strong { color: var(--ink); font-weight: 500; }
.light strong { color: var(--cream); }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .3s ease, color .3s ease, transform .3s ease;
  cursor: pointer;
}
.btn-light {
  color: var(--cream);
  background: transparent;
}
.btn-light:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }

.btn-dark {
  color: var(--cream);
  background: var(--green);
  border-color: var(--green);
}
.btn-dark:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mono {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 32px;
}
.nav-brand {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream);
  transition: color .4s ease;
  z-index: 2;
}
.nav.scrolled .nav-brand { color: var(--gold-dark); }

.nav-links {
  display: none;
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .4s ease, opacity .2s ease;
  opacity: 0.9;
}
.nav-link:hover { opacity: 1; color: var(--gold); }
.nav.scrolled .nav-link { color: var(--ink); }
.nav.scrolled .nav-link:hover { color: var(--gold-dark); }

.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-image: url('../assets/img/portada-oracion.jpg');
  background-size: cover;
  background-position: center 56%;
  transform: scale(1.06);
}

@media (min-width: 1850px) {
  .hero-img { background-position: center 60%; }
}

@media (max-width: 600px) {
  .hero-img {
    background-image: url('../assets/img/portada-oracion-mobile.jpg');
    background-position: 56% 78%;
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,24,18,.35) 0%, rgba(30,24,18,.35) 40%, rgba(30,24,18,.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 20px;
}
.hero-content .eyebrow {
  color: #eadfc7;
  font-size: 0.78rem;
}
.hero-names {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  color: var(--cream);
  line-height: 1;
  margin: 10px 0 18px;
}
.hero-names .amp {
  font-family: var(--font-script);
  color: #e3cd9f;
  font-size: 0.75em;
  padding: 0 10px;
}
.hero-date {
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  font-size: 1rem;
  margin: 95px 0 4px;
}

@media (max-width: 600px) {
  .hero-content .eyebrow { margin-top: 22px; }
  .hero-date { margin-top: 78px; }
}
.hero-place {
  font-size: 0.95rem;
  color: #e7ddc9;
  margin: 0 0 40px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}
.countdown-item {
  min-width: 68px;
  padding: 12px 6px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}
.countdown-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
  color: #e7ddc9;
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { top: 6px; opacity: 1; }
  70% { top: 18px; opacity: 0; }
  100% { top: 18px; opacity: 0; }
}

/* ==========================================================================
   La boda — venues
   ========================================================================== */
.venues {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.venue { text-align: center; }
.venue-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(54, 47, 40, 0.12);
}
.venue-photo-sketch {
  object-position: 65% 55%;
  box-shadow: none;
  border: 1px solid var(--border);
  background: var(--cream);
}
.venue-photo-casa {
  object-position: center center;
}
.venue-name {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.venue-time {
  font-family: var(--font-body);
  color: var(--green);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 4px;
}
.venue-address {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 20px;
}
.venue-btn { padding: 12px 30px; font-size: 0.78rem; }
.venues-note { margin-top: 46px; }

@media (max-width: 700px) {
  .venues { grid-template-columns: 1fr; gap: 46px; }
}

/* ==========================================================================
   Alojamiento
   ========================================================================== */
.info-cards {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px;
  text-align: center;
}
.info-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 12px; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 14px;
}

@media (max-width: 760px) {
  .info-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Dress code
   ========================================================================== */
.dress-section {
  position: relative;
  padding: 130px 0;
  color: var(--cream);
  overflow: hidden;
}
.dress-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2f3a2a 0%, #40382a 55%, #2a2620 100%);
  z-index: 0;
}
.dress-section .container { position: relative; z-index: 1; }
.dress-formal {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: #e3cd9f;
  margin: 0 0 22px;
}
.palette {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.swatch {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .4s ease, opacity .4s ease;
}
.gallery img:hover { transform: translateY(-4px); opacity: 0.92; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 16, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 88vw; max-height: 84vh;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2.2rem;
  cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 1.4rem;
  cursor: pointer; padding: 14px;
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp-section { background: var(--bg); }
.rsvp-embed {
  margin-top: 46px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(54, 47, 40, 0.08);
}
.rsvp-embed iframe {
  width: 100%;
  height: 680px;
  border: 0;
  display: block;
}
.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-note a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

@media (max-width: 600px) {
  .rsvp-embed iframe { height: 560px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #201c17;
  color: #cbbfa9;
  text-align: center;
  padding: 60px 20px 40px;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 2rem;
  color: #e3cd9f;
  margin: 0 0 6px;
}
.footer-date { font-size: 0.85rem; margin: 0 0 22px; letter-spacing: 0.06em; }
.footer-top { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #cbbfa9; opacity: .8; }
.footer-top:hover { opacity: 1; color: var(--gold); }

/* ==========================================================================
   Misc responsive
   ========================================================================== */
@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .rsvp-form { padding: 28px 22px; }
}
