/* ============================================
   ANDER & AINHOA — WEDDING WEBSITE
   www.anderainhoa.es
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Lato:wght@300;400;700&family=Great+Vibes&display=swap');

/* === CSS VARIABLES === */
:root {
  --rose-gold: #c8956c;
  --rose-gold-light: #e8bfa0;
  --rose-gold-dark: #a0745a;
  --blush: #f2d9d0;
  --blush-light: #fdf5f2;
  --champagne: #f5e6c8;
  --cream: #fefaf5;
  --sage: #8b9d7a;
  --sage-light: #b5c4a6;
  --charcoal: #3a3535;
  --warm-gray: #7a6f6f;
  --white-glass: rgba(255,255,255,0.15);
  --sidebar-width: 260px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blush-light); }
::-webkit-scrollbar-thumb { background: var(--rose-gold-light); border-radius: 3px; }

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, 
    rgba(30, 20, 20, 0.92) 0%, 
    rgba(50, 30, 30, 0.95) 100%);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  border-right: 1px solid rgba(200, 149, 108, 0.2);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1.5rem;
}

.sidebar-logo .couple-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: var(--rose-gold-light);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(200, 149, 108, 0.4);
}

.sidebar-logo .ampersand {
  display: block;
  font-size: 1.6rem;
  color: var(--champagne);
  opacity: 0.7;
  line-height: 0.8;
  margin: 0.2rem 0;
}

/* === LOGO en el sidebar === */
.sidebar-logo-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.8rem;
  border: 2px solid rgba(200, 149, 108, 0.5);
  box-shadow:
    0 0 0 4px rgba(200, 149, 108, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.sidebar-logo-img:hover {
  transform: scale(1.04);
  border-color: rgba(200, 149, 108, 0.8);
  box-shadow:
    0 0 0 6px rgba(200, 149, 108, 0.2),
    0 12px 40px rgba(200, 149, 108, 0.3);
}

/* === LOGO en el hero === */
.hero-logo-wrap {
  margin: 0.8rem 0 0.4rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.25s forwards;
}

.hero-logo-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 5px rgba(200, 149, 108, 0.2),
    0 12px 50px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 4px 20px rgba(200, 149, 108, 0.35));
  transition: var(--transition);
}

.hero-logo-img:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 7px rgba(200, 149, 108, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* fecha y tagline: retrasar animaciones para que salgan después del logo */
.hero-date   { animation-delay: 1.5s !important; }
.hero-tagline { animation-delay: 1.7s !important; }
.countdown-hero { animation-delay: 2s !important; }

.sidebar-logo .wedding-date {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--rose-gold-light);
  opacity: 0.7;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.sidebar-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
  margin-bottom: 2rem;
  opacity: 0.4;
}

.nav-menu {
  list-style: none;
  width: 100%;
  flex: 1;
}

.nav-menu li {
  width: 100%;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.8rem;
  color: rgba(245, 230, 200, 0.7);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--rose-gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  transform: scaleY(1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--rose-gold-light);
  background: rgba(200, 149, 108, 0.1);
  padding-left: 2.2rem;
}

.nav-menu a .nav-icon {
  font-size: 1rem;
  opacity: 0.8;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
}

.sidebar-footer p {
  font-size: 0.6rem;
  color: rgba(245, 230, 200, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === HAMBURGER BUTTON (MOBILE) === */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: rgba(30, 20, 20, 0.9);
  border: 1px solid var(--rose-gold);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rose-gold-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   MAIN CONTENT — Panel container (SPA)
   ============================================ */

.main-content {
  position: fixed;
  left: var(--sidebar-width);
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;          /* cada panel hace scroll por si solo */
}

/* === PANELES === */
.page-section {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  /* scrollbar dentro del panel */
  scrollbar-width: thin;
  scrollbar-color: var(--rose-gold-light) transparent;
}

.page-section::-webkit-scrollbar { width: 5px; }
.page-section::-webkit-scrollbar-thumb { background: var(--rose-gold-light); border-radius: 3px; }

.page-section.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* inicio no tiene padding ni scroll propio (es el hero) */
#inicio.page-section {
  overflow: hidden;
}

/* ============================================
   HERO SECTION — CAROUSEL
   ============================================ */

#inicio {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.65) saturate(1.1);
  transform: scale(1.08);
  transition: transform 8s ease;
}

.carousel-slide.active img {
  transform: scale(1.0);
}

/* Hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 15, 15, 0.5) 0%,
    rgba(80, 40, 40, 0.3) 50%,
    rgba(30, 15, 15, 0.6) 100%
  );
  z-index: 2;
}

/* Hero content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-pre-title {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--rose-gold-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 12vw, 9rem);
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 80px rgba(200, 149, 108, 0.2);
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-title .ampersand {
  color: var(--rose-gold-light);
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--champagne);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  margin-top: 0.8rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.4s forwards;
}

/* Countdown */
.countdown-hero {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.7s forwards;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
}

.countdown-item .count-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--rose-gold-light);
  line-height: 1;
}

.countdown-item .count-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--rose-gold);
  align-self: flex-start;
  padding-top: 0.3rem;
  opacity: 0.6;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--rose-gold-light);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

/* Carousel controls */
.carousel-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.6rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--rose-gold-light);
  transform: scale(1.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(200, 149, 108, 0.3);
  border-color: var(--rose-gold);
}

.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: 6rem 5rem;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--rose-gold), transparent);
}

.section-divider-icon {
  color: var(--rose-gold);
  font-size: 1rem;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   INVITACION SECTION
   ============================================ */

#invitacion {
  background: linear-gradient(135deg, #1a0f0f 0%, #2d1818 50%, #1a0f0f 100%);
  color: white;
  overflow: hidden;
}

#invitacion .section-tag { color: var(--rose-gold-light); }
#invitacion .section-title { color: var(--champagne); }
#invitacion .section-subtitle { color: rgba(245, 230, 200, 0.7); }

.invitation-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(200, 149, 108, 0.08));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 149, 108, 0.25);
  border-radius: 24px;
  padding: 4rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.invitation-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 149, 108, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.invitation-ornament {
  font-size: 2rem;
  color: var(--rose-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.invitation-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255,255,255,0.8);
}

.invitation-couple {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: var(--rose-gold-light);
  display: block;
  margin: 1.5rem 0;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(200, 149, 108, 0.3);
}

.invitation-details {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(200, 149, 108, 0.2);
  border-bottom: 1px solid rgba(200, 149, 108, 0.2);
}

.detail-col {
  padding: 0 1.5rem;
}

.detail-divider {
  background: rgba(200, 149, 108, 0.3);
}

.detail-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--champagne);
  display: block;
}

.rsvp-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(200, 149, 108, 0.4);
  border: none;
  cursor: pointer;
}

.rsvp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(200, 149, 108, 0.5);
}

/* RSVP Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: linear-gradient(145deg, #2d1818, #1a0f0f);
  border: 1px solid rgba(200, 149, 108, 0.3);
  border-radius: 24px;
  padding: 3rem;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--champagne);
  text-align: center;
  margin-bottom: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover { color: var(--rose-gold-light); }

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

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200, 149, 108, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose-gold);
  background: rgba(200, 149, 108, 0.08);
}

.form-group select option { background: #2d1818; }

.form-group textarea { resize: vertical; min-height: 80px; }

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

/* ============================================
   EVENTO SECTION
   ============================================ */

#evento {
  background: var(--cream);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--rose-gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-content { order: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-empty { order: 1; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; }

.timeline-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 0 6px var(--blush), 0 8px 25px rgba(200, 149, 108, 0.4);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(200, 149, 108, 0.1);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 10px 40px rgba(200, 149, 108, 0.15);
  transform: translateY(-3px);
}

.timeline-time {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-family: 'Lato', sans-serif;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Location card */
.location-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.location-map {
  background: linear-gradient(135deg, var(--blush), var(--champagne));
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

.location-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.location-info p {
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  width: fit-content;
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 149, 108, 0.4);
}

/* ============================================
   ACTIVIDADES SECTION
   ============================================ */

#actividades {
  background: linear-gradient(135deg, var(--blush-light) 0%, #fff 100%);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.activity-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  border: 1px solid rgba(200, 149, 108, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-gold), var(--sage));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.activity-card:hover::before { transform: scaleX(1); }

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(200, 149, 108, 0.15);
}

.activity-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blush), var(--champagne));
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.activity-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.activity-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.activity-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--blush);
  color: var(--rose-gold-dark);
  border-radius: 50px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   ALOJAMIENTO SECTION
   ============================================ */

#alojamiento {
  background: linear-gradient(135deg, #1a0f0f 0%, #2d1818 100%);
  color: white;
}

#alojamiento .section-tag { color: var(--rose-gold-light); }
#alojamiento .section-title { color: var(--champagne); }
#alojamiento .section-subtitle { color: rgba(245, 230, 200, 0.7); }

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hotel-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 149, 108, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.hotel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 149, 108, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hotel-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(200, 149, 108, 0.2), rgba(139, 157, 122, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid rgba(200, 149, 108, 0.15);
}

.hotel-body {
  padding: 1.8rem;
}

.hotel-stars {
  color: var(--champagne);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.hotel-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--champagne);
  margin-bottom: 0.5rem;
}

.hotel-desc {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.6);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.hotel-distance {
  font-size: 0.7rem;
  color: var(--rose-gold);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================
   FOTOS DEL EVENTO
   ============================================ */

#fotos {
  background: var(--cream);
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--warm-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blush), var(--champagne));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-placeholder {
  font-size: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-gold);
  opacity: 0.4;
}

.gallery-placeholder span {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.upload-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* ============================================
   REGALO SECTION
   ============================================ */

#regalo {
  background: linear-gradient(135deg, var(--blush-light), var(--cream));
}

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

.regalo-card {
  background: white;
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 15px 50px rgba(200, 149, 108, 0.12);
  border: 1px solid rgba(200, 149, 108, 0.15);
  position: relative;
  overflow: hidden;
}

.regalo-card::before {
  content: '💝';
  position: absolute;
  font-size: 20rem;
  top: -5rem;
  right: -5rem;
  opacity: 0.03;
  pointer-events: none;
}

.regalo-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.regalo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--warm-gray);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.bank-card {
  background: linear-gradient(135deg, #1a0f0f, #2d1818);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(200, 149, 108, 0.2), transparent);
  border-radius: 50%;
}

.bank-card-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.bank-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--champagne);
  display: block;
  margin-bottom: 1.2rem;
}

.copy-btn {
  background: rgba(200, 149, 108, 0.15);
  border: 1px solid rgba(200, 149, 108, 0.3);
  color: var(--rose-gold-light);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.copy-btn:hover {
  background: rgba(200, 149, 108, 0.25);
}

.regalo-alternatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gift-option {
  background: white;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(200, 149, 108, 0.1);
  transition: var(--transition);
}

.gift-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(200, 149, 108, 0.12);
}

.gift-option-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.gift-option-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.gift-option-desc { font-size: 0.8rem; color: var(--warm-gray); line-height: 1.5; }

/* ============================================
   MUSIC PLAYER (floating)
   ============================================ */

.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(30, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 149, 108, 0.3);
  border-radius: 50px;
  padding: 0.6rem 1.2rem 0.6rem 0.6rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.music-player:hover {
  border-color: rgba(200, 149, 108, 0.6);
  box-shadow: 0 15px 50px rgba(200, 149, 108, 0.15);
}

.music-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.music-btn:hover { transform: scale(1.1); }

.music-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.music-title {
  font-size: 0.7rem;
  color: var(--champagne);
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
}

.music-artist {
  font-size: 0.6rem;
  color: rgba(245, 230, 200, 0.5);
  font-family: 'Lato', sans-serif;
}

.music-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 18px;
}

.music-bars span {
  width: 3px;
  background: var(--rose-gold);
  border-radius: 2px;
  animation: musicBar 0.8s ease-in-out infinite alternate;
}

.music-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.music-bars span:nth-child(4) { height: 18px; animation-delay: 0.1s; }
.music-bars span:nth-child(5) { height: 10px; animation-delay: 0.25s; }

.music-bars.paused span { animation-play-state: paused; }

/* ============================================
   GUESTBOOK / MENSAJES SECTION
   ============================================ */

#mensajes {
  background: var(--cream);
}

.guestbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.guestbook-entry {
  background: white;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(200, 149, 108, 0.1);
  position: relative;
  transition: var(--transition);
}

.guestbook-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(200, 149, 108, 0.12);
}

.guestbook-entry::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--rose-gold);
  opacity: 0.15;
  line-height: 1;
}

.guestbook-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.guestbook-author {
  font-size: 0.75rem;
  color: var(--rose-gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.add-message-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  border: 1px solid rgba(200, 149, 108, 0.12);
}

.add-message-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group-light label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.form-group-light input,
.form-group-light textarea {
  width: 100%;
  border: 1px solid rgba(200, 149, 108, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  background: var(--cream);
}

.form-group-light input:focus,
.form-group-light textarea:focus {
  border-color: var(--rose-gold);
  background: white;
}

.form-group-light { margin-bottom: 1.2rem; }
.form-group-light textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Lato', sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 149, 108, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #100808;
  color: rgba(245, 230, 200, 0.4);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(200, 149, 108, 0.1);
}

.site-footer .footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--rose-gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes musicBar {
  from { height: 4px; }
  to { height: 100%; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .section { padding: 5rem 3rem; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger { display: flex; }

  /* En móvil el panel ocupa toda la pantalla */
  .main-content {
    left: 0;
  }

  .section { padding: 4rem 1.5rem; }

  .timeline::before { left: 26px; }
  .timeline-item { grid-template-columns: auto 1fr; gap: 1.5rem; }
  .timeline-item:nth-child(even) .timeline-content { order: unset; text-align: left; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
  .timeline-icon-wrap { order: -1; }

  .location-card { grid-template-columns: 1fr; }
  .location-map { min-height: 200px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:first-child { grid-column: span 2; }

  .invitation-details { grid-template-columns: 1fr; }
  .detail-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .countdown-hero { gap: 1rem; }
  .countdown-item .count-num { font-size: 2rem; }

  .music-player { bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
}

/* ============================================
   ENVELOPE INTRO OVERLAY (HORIZONTAL & SATIN STYLE)
   ============================================ */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #dfcbba;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 1rem;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
  user-select: none;
}

.envelope-overlay.hide {
  opacity: 0;
  pointer-events: none;
  filter: blur(12px);
  transform: scale(1.05);
}

.env-satin-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/satin_bg.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0.92;
  filter: brightness(1.02) contrast(1.05);
}

.env-satin-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(60,40,25,0.3) 100%);
  pointer-events: none;
}

/* --- Header (Centered gracefully right above the envelope, zero overlap) --- */
.env-header {
  position: relative;
  z-index: 25;
  text-align: center;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  width: 100%;
  max-width: 680px;
  animation: envFadeDown 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.env-title-teaser {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  font-weight: 600;
  font-style: italic;
  color: #9e4b27; /* Color caldera */
  line-height: 1.3;
  letter-spacing: 1px;
  text-shadow: 
    0 2px 10px rgba(255, 245, 230, 0.95),
    0 1px 4px rgba(255, 255, 255, 0.9);
  transition: opacity 0.5s ease;
}

.env-title-opened {
  animation: envFadeDown 0.8s ease forwards;
  text-align: center;
}

.env-title-married {
  font-family: 'Cinzel', serif;
  font-size: 1.95rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #9e4b27; /* Color caldera */
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 
    0 2px 10px rgba(255, 245, 230, 0.95),
    0 1px 4px rgba(255, 255, 255, 0.9);
}

.env-names-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: #9e4b27; /* Color caldera */
  line-height: 1;
  text-shadow: 
    0 2px 10px rgba(255, 245, 230, 0.95),
    0 1px 4px rgba(255, 255, 255, 0.9);
}

.env-names-sub .ampersand {
  font-family: 'Great Vibes', cursive;
  color: #b85b30;
  font-size: 2.8rem;
  margin: 0 0.3rem;
}

@media (max-width: 480px) {
  .env-header { margin-bottom: 1.2rem; margin-top: 0.5rem; }
  .env-title-teaser { font-size: 1.45rem; }
  .env-title-married { font-size: 1.3rem; letter-spacing: 3px; }
  .env-names-sub { font-size: 1.75rem; }
}

/* --- Stage & Proportioned Horizontal Envelope Container --- */
.env-stage {
  position: relative;
  width: 92vw;
  max-width: 780px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  perspective: 1400px;
  z-index: 2;
}

@media (max-width: 480px) {
  .env-stage {
    width: 95vw;
    height: 360px;
    transform: scale(0.92);
  }
}

.envelope-container.horizontal-env {
  position: relative;
  width: 82vw;
  max-width: 720px;
  min-width: 300px;
  height: 410px;
  cursor: pointer;
  transition: transform 0.5s ease;
  margin-top: 10px;
}

.envelope-container.horizontal-env:not(.opened):hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

/* Horizontal Linen Texture Envelope Back & Pocket */
.env-back {
  position: absolute;
  inset: 0;
  background-color: #eee3d5;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, rgba(215,200,180,0.3) 100%),
    repeating-linear-gradient(45deg, rgba(140,110,90,0.04) 0px, rgba(140,110,90,0.04) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(-45deg, rgba(140,110,90,0.04) 0px, rgba(140,110,90,0.04) 1px, transparent 1px, transparent 4px);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(45, 30, 15, 0.38);
  border: 1px solid #dfcfbc;
  z-index: 1;
}

/* Pocket Front Cover */
.env-pocket {
  position: absolute;
  inset: 0;
  background-color: #eee3d5;
  background-image: 
    linear-gradient(165deg, rgba(255,255,255,0.75) 0%, rgba(220,202,185,0.6) 100%),
    repeating-linear-gradient(45deg, rgba(140,110,90,0.04) 0px, rgba(140,110,90,0.04) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(-45deg, rgba(140,110,90,0.04) 0px, rgba(140,110,90,0.04) 1px, transparent 1px, transparent 4px);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 16px 16px;
  z-index: 10;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

/* Top Flap (opens 180 deg) */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 215px;
  background-color: #e5d7c8;
  background-image: 
    linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(210,192,175,0.7) 100%),
    repeating-linear-gradient(45deg, rgba(140,110,90,0.04) 0px, rgba(140,110,90,0.04) 1px, transparent 1px, transparent 4px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 12;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.envelope-container.opened .env-flap {
  transform: rotateX(-180deg);
  z-index: 2;
}

/* 3D Relief Wax Seal Button with Logo Photo */
.env-wax-seal.relief-seal {
  position: absolute;
  top: 205px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d19d6c 0%, #a67246 35%, #7a461e 75%, #4a270b 100%);
  border: 2.5px solid rgba(255, 235, 210, 0.8);
  box-shadow: 
    0 14px 38px rgba(40, 20, 5, 0.75),
    inset 0 4px 8px rgba(255, 255, 255, 0.7),
    inset 0 -5px 10px rgba(0, 0, 0, 0.6);
  z-index: 15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: all 0.4s ease;
  animation: waxPulse 2.2s ease-in-out infinite;
}

.env-wax-seal.relief-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 
    0 18px 45px rgba(40, 20, 5, 0.9),
    inset 0 4px 10px rgba(255, 255, 255, 0.9);
}

.envelope-container.opened .env-wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.4);
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* --- Cards inside Envelope --- */
.env-cards {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* --- Superpose Cards ON TOP of Envelope when opened --- */
.envelope-container.opened .env-cards {
  z-index: 20;
  pointer-events: auto;
}

/* Save The Date Card (Versión Breve - Larger & Perfectly Legible) */
.env-card.main-card.save-our-date-card.brief-card {
  position: absolute;
  width: 235px;
  height: 210px;
  right: 35px;
  left: auto;
  bottom: 15px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(45, 30, 15, 0.28);
  padding: 10px;
  text-align: center;
  transform: translateY(0);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.card-inner-framed.brief-mode {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(200, 149, 108, 0.6);
  outline: 3px solid #FAF4ED;
  outline-offset: -4px;
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fdfcf9 0%, #f7f1ea 100%);
}

.card-inner-framed.brief-mode .sod-title {
  font-family: 'Alex Brush', 'Great Vibes', cursive;
  font-size: 3rem;
  color: #b8865f;
  line-height: 1.1;
  font-weight: 400;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.sod-brief-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 2px;
}

/* Polaroid Photo Cards */
.env-card.photo-card {
  position: absolute;
  background: #ffffff;
  padding: 8px 8px 24px 8px;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(0) rotate(0deg);
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease;
}

/* Photo 1 (Left Position) */
.photo-card.photo-left {
  left: 35px;
  bottom: 15px;
  width: 195px;
  height: 225px;
  z-index: 5;
}

/* Photo 2 (Center Position - Center of Envelope!) */
.photo-card.photo-center {
  left: 50%;
  bottom: 15px;
  width: 205px;
  height: 235px;
  z-index: 8;
}

.polaroid-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #f5ebe0;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Emergence Positions (FORMATO ABANICO - Centrados & Superpuestos sobre el sobre) --- */

/* 1. Photo 1 emerges at left with -12deg fan tilt */
.envelope-container.opened .photo-card.photo-left {
  transform: translateY(-160px) translateX(-145px) rotate(-12deg);
  opacity: 1;
  z-index: 21;
  transition-delay: 0.3s;
}

/* 2. Photo 2 emerges at CENTER of Envelope with -2deg tilt */
.envelope-container.opened .photo-card.photo-center {
  transform: translateY(-170px) translateX(-50%) rotate(-2deg);
  opacity: 1;
  z-index: 22;
  transition-delay: 0.7s;
}

/* 3. Save The Date Card (Versión Breve) emerges at right with +10deg fan tilt */
.envelope-container.opened .env-card.main-card.save-our-date-card.brief-card {
  transform: translateY(-155px) translateX(35px) rotate(10deg);
  opacity: 1;
  z-index: 23;
  pointer-events: auto;
  transition-delay: 1.1s;
}

/* --- Countdown Timer & RSVP Button --- */
.env-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  animation: btnAppear 0.8s ease forwards;
}

.env-count-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 149, 108, 0.4);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  box-shadow: 0 4px 15px rgba(60, 45, 35, 0.12);
}

.env-count-box span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #332d2b;
  line-height: 1;
}

.env-count-lbl {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: #925d36;
  letter-spacing: 1px;
  margin-top: 2px;
}

.env-count-colon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #b07c57;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.btn-rsvp-highlight {
  background: linear-gradient(135deg, #be8b64 0%, #9e6d47 100%) !important;
  font-size: 0.86rem !important;
  padding: 14px 28px !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 10px 30px rgba(130, 90, 60, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  animation: btnGlowPulse 2.2s infinite alternate !important;
}

@keyframes btnGlowPulse {
  0% { transform: scale(1); box-shadow: 0 10px 30px rgba(130, 90, 60, 0.5); }
  100% { transform: scale(1.03); box-shadow: 0 14px 40px rgba(130, 90, 60, 0.8); }
}

/* --- Action Area & Buttons (Placed further down so scrolling is required) --- */
.env-action-area {
  position: relative;
  z-index: 10;
  margin-top: 4.5rem;
  padding-bottom: 4rem;
  text-align: center;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.env-instruction {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: #382c24;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
  animation: pulseText 2s ease-in-out infinite;
}

.btn-enter-site {
  background: linear-gradient(135deg, #be8b64 0%, #9e6d47 100%);
  color: #ffffff;
  border: none;
  padding: 14px 38px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(130, 90, 60, 0.45);
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: btnAppear 0.8s ease forwards;
}

.btn-enter-site:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 35px rgba(130, 90, 60, 0.65);
  background: linear-gradient(135deg, #cb9870 0%, #ab7851 100%);
}

.btn-enter-site .btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-enter-site:hover .btn-arrow {
  transform: translateX(5px);
}

/* --- Keyframe Animations --- */
@keyframes waxPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(60, 35, 15, 0.6), inset 0 3px 6px rgba(255, 255, 255, 0.6); }
  50% { box-shadow: 0 14px 40px rgba(60, 35, 15, 0.85), inset 0 3px 8px rgba(255, 255, 255, 0.85); }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes envFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes btnAppear {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

