/* ════════════════════════════════════════════
   HOME PAGE STYLES
   ════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 100px 24px 80px;
}

/* Flores decorativas */
.hero-flor {
  position: absolute;
  pointer-events: none;
  opacity: 0.92;
}
.hero-flor--tl {
  width: clamp(180px, 28vw, 320px);
  top: 10px; left: 0px;
  transform: rotate(-12deg);
}
.hero-flor--br {
  width: clamp(160px, 24vw, 280px);
  bottom: -30px; right: 10px;
  transform: rotate(-15deg) scaleX(-1);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(155,90,82,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 88% 82%, rgba(184,150,90,0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  top: calc(var(--nav-h) + 18px); left: 18px; right: 18px; bottom: 18px;
  border: 1px solid rgba(155,90,82,0.18);
  pointer-events: none;
}

/* "Los invitamos..." */
.hero-invite {
  font-size: 1.1rem; letter-spacing: 6px; text-transform: uppercase;
  color: var(--rose-light); font-weight: 400;
  margin-bottom: 30px;
  opacity: 0; animation: fadeUp 1s ease 0.2s forwards;
}

/* Names stay as-is — already big enough */
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 300; line-height: 0.92;
  color: var(--rose);
  letter-spacing: 8px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s ease 0.35s forwards;
}
.hero-name.second { animation-delay: 0.5s; }

.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-style: italic; font-weight: 300;
  color: var(--rose-light);
  display: block; margin: 10px 0;
  opacity: 0; animation: fadeUp 1s ease 0.43s forwards;
}

.hero-rule {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-light), transparent);
  margin: 30px auto;
  opacity: 0; animation: fadeIn 1.2s ease 0.7s forwards;
}

/* Date — up 4pt from 0.82rem */
.hero-date {
  font-size: 1rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--dark-mid); font-weight: 400; margin-bottom: 10px;
  opacity: 0; animation: fadeUp 1s ease 0.8s forwards;
}

/* Location — up 4pt from 0.82rem */
.hero-location {
  font-size: 1rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
  opacity: 0; animation: fadeUp 1s ease 0.9s forwards;
}

/* ── PHOTO SECTION ───────────────────────────── */
.photo-section {
  padding: 90px 24px 100px;
  max-width: 860px; margin: 0 auto;
  text-align: center;
}

/* eyebrow "Nosotros" */
.photo-section .eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 0.95rem;
}

/* section title — up 4pt from clamp(1.8,3.5vw,2.8rem) */
.photo-section .serif-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 52px;
}

/* ── SLIDESHOW ───────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 20px 70px rgba(42,31,26,0.14);
}

/* Individual slides */
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Image fills the slide with Ken Burns */
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: ken-burns 16s ease-in-out infinite alternate;
  will-change: transform;
}
.slide:nth-child(2) img { animation-name: ken-burns-r; animation-duration: 18s; }
.slide:nth-child(3) img { animation-duration: 14s; }

/* Dark gradient at bottom for caption readability */
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 55%,
    rgba(26,18,16,0.55) 100%);
  z-index: 1; pointer-events: none;
}

/* Caption */
.slide-caption {
  position: absolute; bottom: 28px; left: 0; right: 0;
  z-index: 2; text-align: center;
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.82); font-weight: 400;
  font-family: 'Jost', sans-serif;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.slide.active .slide-caption {
  opacity: 1; transform: translateY(0);
}

/* Arrows */
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 42px; height: 42px;
  border-radius: 50%; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.slide-arrow:hover { background: rgba(255,255,255,0.28); border-color: white; }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }

/* Dots */
.slide-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  z-index: 3; display: flex; justify-content: center; gap: 8px;
}
.slide-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.slide-dot.active {
  background: white; transform: scale(1.3);
}

/* ── RESPONSIVE HOME ─────────────────────────── */
@media (max-width: 700px) {
  .slideshow { aspect-ratio: 3 / 4; }
  .hero-name { letter-spacing: 4px; }
  .hero-invite { font-size: 0.76rem; letter-spacing: 4px; }
  .hero-date, .hero-location { font-size: 0.82rem; letter-spacing: 2px; }
  .slide-arrow { display: none; }
}
@media (max-width: 400px) {
  .hero-name { letter-spacing: 2px; }
}
