/* ============================================================
   XV KAROL PÉREZ RODRÍGUEZ - MINIMALIST LUXE DESIGN SYSTEM
   ============================================================ */

:root {
  --bg-body: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-alt: #F3F6F8;
  
  --text-main: #212529;
  --text-muted: #6C757D;
  --text-light: #9AA0A6;
  
  --accent-ice: #6294A8;
  --accent-ice-light: #EBF3F6;
  --accent-ice-dark: #436979;
  --accent-silver: #A9B7C0;
  
  --border-delicate: #E2E8EC;
  --border-focus: #B5CBD6;
  
  --shadow-subtle: 0 10px 30px rgba(98, 148, 168, 0.07);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 50px rgba(67, 105, 121, 0.12);
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;
  
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ================= UTILITY & CONTAINER ================= */
.container {
  width: 90%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.section {
  padding: 90px 0;
  position: relative;
}

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ice-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 40px;
  letter-spacing: 0.04em;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-ice);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(98, 148, 168, 0.35);
}

.btn-primary:hover {
  background: var(--accent-ice-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(67, 105, 121, 0.4);
}

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

.btn-outline:hover {
  background: var(--accent-ice-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
}

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

/* ================= FLOATING AUDIO ================= */
.audio-control {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--accent-ice-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  position: relative;
}

.audio-btn:hover {
  transform: scale(1.08);
  background: #FFFFFF;
}

.audio-btn.playing {
  color: var(--accent-ice);
  animation: pulseRotate 4s linear infinite;
}

.audio-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-ice);
  opacity: 0;
  pointer-events: none;
}

.audio-btn.playing .audio-ripple {
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-hint {
  position: fixed;
  bottom: 85px;
  right: 25px;
  background: rgba(33, 37, 41, 0.92);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 998;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  animation: floatHint 3s ease-in-out infinite;
}

.music-hint-close {
  background: none;
  border: none;
  color: #A9B7C0;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

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

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding: 60px 20px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 1;
  transform: scale(1.03);
  animation: zoomSlow 20s ease-out infinite alternate;
}

@keyframes zoomSlow {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 30, 0.35) 0%,
    rgba(15, 23, 30, 0.25) 40%,
    rgba(15, 23, 30, 0.65) 85%,
    rgba(250, 249, 246, 1) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  margin: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.hero-subtitle-script {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: #EBF3F6;
  margin-bottom: -15px;
  line-height: 1.2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-fullname {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 25px;
  max-width: 260px;
}

.hero-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-divider i {
  color: var(--accent-ice-light);
  font-size: 0.85rem;
}

.hero-date {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #FFFFFF;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--accent-ice-dark);
  font-size: 1.1rem;
  animation: bounceDown 2s infinite;
  text-decoration: none;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ================= PADRES SECTION ================= */
.padres {
  background: var(--bg-body);
  padding-top: 50px;
}

.ornament-top {
  font-size: 1.2rem;
  color: var(--accent-ice);
  margin-bottom: 15px;
}

.padres-names {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 25px;
}

.padres-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 25px;
  line-height: 1.8;
}

.signature {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-ice-dark);
}

/* ================= COUNTDOWN ================= */
.countdown-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border-delicate);
  border-bottom: 1px solid var(--border-delicate);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 560px;
  margin: 0 auto 35px;
}

.count-box {
  flex: 1;
  background: var(--bg-body);
  border: 1px solid var(--border-delicate);
  border-radius: 12px;
  padding: 18px 10px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.count-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.count-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent-ice-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.count-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.count-colon {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-silver);
  margin-top: -10px;
}

.calendar-btn-wrap {
  margin-top: 20px;
}

/* ================= ITINERARY ================= */
.itinerary {
  background: var(--bg-body);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
  max-width: 820px;
  margin: 0 auto;
}

.event-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-delicate);
  padding: 45px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}

.event-icon-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--accent-ice-light);
  color: var(--accent-ice-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.event-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent-ice);
  margin-bottom: 8px;
}

.event-place {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.event-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-ice-dark);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  padding: 6px 16px;
  border-radius: 20px;
}

.event-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  min-height: 44px;
}

/* ================= EDITORIAL BANNER ================= */
.photo-banner {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
}

.photo-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 32, 40, 0.45);
}

.photo-banner-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--accent-ice-light);
  margin-bottom: -10px;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
}

/* ================= DRESS CODE ================= */
.dress-code {
  background: #FFFFFF;
}

.dress-icon {
  font-size: 2.2rem;
  color: var(--accent-ice);
  margin-bottom: 15px;
}

.dress-notice-card {
  max-width: 680px;
  margin: 0 auto 35px;
  background: #FFF8F8;
  border-left: 4px solid #D9534F;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(217, 83, 79, 0.08);
}

.notice-icon {
  font-size: 1.4rem;
  color: #D9534F;
  margin-top: 2px;
}

.notice-strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #A94442;
  margin-bottom: 4px;
}

.notice-desc {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.6;
}

.palette-container {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 15px;
}

.palette-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.suggested-title {
  margin-top: 35px;
}

.swatches-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: var(--transition);
}

.swatch-item:hover .swatch-circle {
  transform: scale(1.1);
}

.swatch-name {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Reserved Palette */
.reserved-row .swatch-circle i {
  color: #D9534F;
  font-size: 1.4rem;
  font-weight: 900;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.swatch-celeste {
  background: linear-gradient(135deg, #BDE0FE 0%, #A2D2FF 100%);
}

.swatch-plata {
  background: linear-gradient(135deg, #E0E5EC 0%, #C7D1DA 100%);
}

.swatch-rosa {
  background: linear-gradient(135deg, #FFC8DD 0%, #FFAFCC 100%);
}

/* Suggested Palette */
.swatch-black { background: #1A1A1A; }
.swatch-navy { background: #1B2A4A; }
.swatch-emerald { background: #2E5339; }
.swatch-burgundy { background: #5E1925; }
.swatch-champagne { background: #E6D5B8; border: 1px solid #D4C1A0; }

/* ================= GALLERY ================= */
.gallery {
  background: var(--bg-body);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  cursor: pointer;
  background: #EAEAEA;
}

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

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

/* ================= GIFTS / SOBRES ================= */
.gifts {
  background: #FFFFFF;
}

.gifts-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-body);
  border: 1px solid var(--border-delicate);
  border-radius: 16px;
  padding: 50px 30px;
  box-shadow: var(--shadow-subtle);
}

.gifts-icon {
  font-size: 2.2rem;
  color: var(--accent-ice);
  margin-bottom: 15px;
}

.gifts-desc {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.envelope-art {
  font-size: 2.8rem;
  color: var(--accent-silver);
}

/* ================= RSVP ================= */
.rsvp {
  background: var(--bg-body);
  padding-bottom: 110px;
}

.rsvp-card {
  max-width: 580px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-delicate);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow-card);
}

.rsvp-reminder {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.rsvp-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rsvp-buttons .btn-whatsapp {
  width: 100%;
  max-width: 320px;
}

/* ================= FOOTER ================= */
.footer {
  background: #192026;
  color: #FFFFFF;
  padding: 60px 20px 40px;
}

.footer-script {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--accent-ice-light);
  margin-bottom: -10px;
}

.footer-title {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.footer-thanks {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
}

.footer-line {
  width: 50px;
  height: 1px;
  background: var(--accent-ice);
  margin: 0 auto 20px;
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.6rem;
  }
  .hero-subtitle-script {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .count-box {
    padding: 12px 6px;
  }
  .count-num {
    font-size: 2rem;
  }
  .countdown-grid {
    gap: 8px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .photo-banner {
    background-attachment: scroll;
    height: 300px;
  }
  .dress-notice-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
