/* ============================================
   INVITACIÓN XV AÑOS - ROSARIO ABIGAIL
   Estilo: Sueño de Medianoche (Lila + Rose Gold)
   ============================================ */

:root {
  /* Colores principales */
  --lila-profundo: #6B4C9A;
  --lila-suave: #9B7EBD;
  --lila-claro: #C9B8E0;
  --rose-gold: #C9A87C;
  --rose-gold-light: #E8D5B5;
  --crema: #F8F4EF;
  --crema-oscuro: #EDE6DC;
  --blanco: #FFFFFF;
  --texto: #2D2A32;
  --texto-suave: #5A5566;
  
  /* Tipografía */
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Poppins', sans-serif;
  
  /* Espaciado */
  --section-padding: 5rem 1.5rem;
  --container-max: 1100px;
  
  /* Sombras y bordes */
  --shadow-soft: 0 10px 40px rgba(107, 76, 154, 0.12);
  --radius: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== BOTONES ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--lila-profundo), var(--lila-suave));
  color: var(--blanco);
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(107, 76, 154, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(107, 76, 154, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--lila-suave);
  color: var(--lila-profundo);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--lila-suave);
  color: var(--blanco);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    linear-gradient(160deg, #4A3570 0%, #6B4C9A 40%, #8B6BB5 70%, #C9A87C 100%);
  color: var(--blanco);
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(201, 168, 124, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  min-width: 70px;
}

.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-bounce 1.8s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.4; transform: translateX(-50%) translateY(10px); }
}

/* ========== SECCIONES GENERALES ========== */
.section {
  padding: var(--section-padding);
}

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

.section-ornament {
  display: block;
  color: var(--rose-gold);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--lila-profundo);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--texto-suave);
  margin-top: 0.5rem;
}

/* ========== BIENVENIDA ========== */
.section-welcome {
  background: var(--blanco);
}

.welcome-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--texto-suave);
}

.welcome-text p {
  margin-bottom: 1.2rem;
}

.welcome-text strong {
  color: var(--lila-profundo);
  font-weight: 500;
}

/* ========== FAMILIA ========== */
.section-family {
  background: linear-gradient(180deg, var(--crema) 0%, var(--crema-oscuro) 100%);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.family-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(155, 126, 189, 0.15);
}

.family-role {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--rose-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.family-names p {
  font-size: 1.05rem;
  color: var(--texto);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

/* ========== SOBRE ELLA + VIDEO ========== */
.section-about {
  background: var(--blanco);
}

.about-content {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1.1fr;
  }
}

.about-text {
  font-size: 1.05rem;
  color: var(--texto-suave);
}

.about-text p {
  margin-bottom: 1.1rem;
}

.video-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #3d2a5c, #5a3d7a);
}

.video-placeholder p {
  margin-bottom: 0.8rem;
}

.video-hint {
  font-size: 0.8rem;
  opacity: 0.8;
}

.video-hint code {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.3);
  padding: 0.6rem;
  border-radius: 6px;
  text-align: left;
  white-space: pre-wrap;
}

/* ========== ITINERARIO ========== */
.section-timeline {
  background: linear-gradient(180deg, var(--crema-oscuro) 0%, var(--crema) 100%);
}

.timeline {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--lila-suave), var(--rose-gold));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.2rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--rose-gold);
  border: 3px solid var(--blanco);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lila-suave);
  transform: translateX(-50%);
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lila-profundo);
  margin-bottom: 0.3rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--texto-suave);
}

/* ========== UBICACIONES ========== */
.section-locations {
  background: var(--blanco);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.location-card {
  background: var(--crema);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(155, 126, 189, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.location-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--lila-profundo);
  margin-bottom: 0.6rem;
}

.location-name {
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 0.6rem;
}

.location-address {
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.location-time {
  font-size: 0.9rem;
  color: var(--rose-gold);
  font-weight: 500;
  margin-bottom: 1.3rem;
}

/* ========== GALERÍA ========== */
.section-gallery {
  background: linear-gradient(180deg, var(--crema) 0%, #f0eaf5 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lila-claro);
}

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

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lila-claro), var(--lila-suave));
  color: white;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

.gallery-placeholder small {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.gallery-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.gallery-note code {
  display: inline-block;
  background: rgba(107, 76, 154, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* ========== REGALOS ========== */
.section-gifts {
  background: var(--blanco);
}

.gift-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, #faf7f2, #f3ece3);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(201, 168, 124, 0.3);
  box-shadow: var(--shadow-soft);
}

.gift-logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--lila-profundo);
  margin-bottom: 1rem;
}

.gift-number {
  font-size: 1.05rem;
  color: var(--texto-suave);
  margin-bottom: 1.5rem;
}

.gift-number strong {
  color: var(--texto);
  letter-spacing: 0.05em;
}

/* ========== RSVP ========== */
.section-rsvp {
  background: linear-gradient(160deg, var(--lila-profundo) 0%, #5a3d7a 50%, #4a3570 100%);
  color: var(--blanco);
}

.section-rsvp .section-title {
  color: var(--blanco);
}

.section-rsvp .section-ornament {
  color: var(--rose-gold-light);
}

.section-rsvp .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.rsvp-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-box > p {
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.rsvp-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.rsvp-note code {
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ========== FOOTER ========== */
.footer {
  background: #2D2A32;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-name {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--rose-gold-light);
  margin-bottom: 0.3rem;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.footer-hashtag {
  font-size: 0.9rem;
  color: var(--lila-claro);
  margin-bottom: 1.2rem;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ========== MÚSICA ========== */
.music-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.music-btn.playing {
  border-color: var(--rose-gold);
  color: var(--rose-gold-light);
}

/* ========== RESPONSIVE EXTRA ========== */
@media (max-width: 480px) {
  .countdown {
    gap: 0.6rem;
  }
  
  .countdown-item {
    min-width: 60px;
    padding: 0.7rem 0.6rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .hero-date {
    flex-wrap: wrap;
  }
}

/* Animaciones de entrada suaves */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  opacity: 1;
  transform: none;
}
