/* ════════════════════════════════════════════════════════════
   BABY CORP — Section Styles (Landing Scroll)
   Mobile-first responsive design
   ════════════════════════════════════════════════════════════ */

/* ── Loading Screen ───────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loader-logo span {
  color: var(--color-gold);
}

.loader-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-sky);
  opacity: 0.8;
}

.loader-bar-container {
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  animation: progressBar 2s ease-in-out forwards;
}

.loader-scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(127,200,255,0.15), transparent);
  animation: scanline 2s linear infinite;
}

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  background:
    linear-gradient(rgba(26, 39, 68, 0.24), rgba(26, 39, 68, 0.36)),
    url('../assets/img/init_bg_v.jpg') center / cover no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-top: var(--space-6);
  padding-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.hero-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-cloud {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  filter: blur(20px);
}

.hero-cloud-1 {
  width: 200px;
  height: 60px;
  top: 15%;
  animation: cloudDrift 25s linear infinite;
}

.hero-cloud-2 {
  width: 160px;
  height: 50px;
  top: 35%;
  animation: cloudDriftReverse 30s linear infinite;
  animation-delay: -10s;
}

.hero-cloud-3 {
  width: 240px;
  height: 70px;
  top: 60%;
  animation: cloudDrift 35s linear infinite;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(246, 196, 83, 0.2);
  border: 1px solid rgba(246, 196, 83, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(2rem, 7.4vw, 2.8rem);
  color: #7FC8FF;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.1;
  -webkit-text-stroke: 1.5px #0F1A2E;
  text-shadow:
    0 0 18px rgba(127, 200, 255, 0.85),
    0 0 40px rgba(127, 200, 255, 0.45),
    0 4px 10px rgba(15, 26, 46, 0.55);
}

.hero-photo-frame {
  position: relative;
  width: min(72vw, 220px);
  height: auto;
  overflow: visible;
  animation: float 4s ease-in-out infinite;
}

.hero-photo-frame img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-stamp {
  margin-top: var(--space-4);
  animation: stampSlam 0.8s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-stamp .stamp-text {
  color: var(--color-seal);
  border-color: var(--color-seal);
  font-size: var(--text-sm);
  opacity: 0.9;
}

.hero-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-base);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 26rem;
  padding: 0 var(--space-4);
  line-height: 1.6;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  inset-inline: 0;
  text-align: center;
  color: rgba(77, 77, 77, 0.795);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: float 2s ease-in-out infinite;
  pointer-events: none;
}

#primer-desliza{
  color: rgb(255, 255, 255);
}

.hero-scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(77, 77, 77, 0.795);
  border-bottom: 2px solid rgba(77, 77, 77, 0.795);
  transform: rotate(45deg);
}

#primer-flecha{
  border-right: 2px solid rgb(255, 255, 255);
  border-bottom: 2px solid rgb(255, 255, 255);
}

/* ── Confidential Section ─────────────────────────────────── */
#confidential {
  background:
    linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
    url('../assets/img/invitados_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#confidential .container {
  position: relative;
  z-index: 1;
}

.confidential-envelope {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.envelope-body {
  background: #D4A43A;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.envelope-letter {
  background: #F5F0E6;
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  position: relative;
  width: 100%;
}

.letter-header {
  text-align: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid rgba(212, 164, 58, 0.3);
}

.letter-header h3 {
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 800;
}

.letter-header p {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.letter-body {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.7;
}

.letter-body p {
  margin-bottom: var(--space-4);
}

.letter-stamp {
  text-align: center;
  margin-top: var(--space-6);
}

/* ── CEO Profile Section ─────────────────────────────────── */
#ceo-profile {
  background:
    linear-gradient(rgba(242, 246, 255, 0.48), rgba(242, 246, 255, 0.58)),
    url('../assets/img/expediente_bg_v.jpg') center / cover no-repeat;
}

#ceo-profile .container {
  position: relative;
  z-index: 1;
}

.profile-photo-container {
  position: relative;
  width: 140px;
  height: 180px;
  margin: 0 auto var(--space-4);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile-photo-border {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--color-gold);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: 0.5;
}

.profile-photo-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.profile-timeline {
  margin-top: var(--space-4);
}

.profile-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.profile-field-content {
  flex: 1;
  min-width: 0;
}

.profile-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.profile-field-value {
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.3;
}
#event-info {
  background:
    linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
    url('../assets/img/information_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#event-info .container {
  position: relative;
  z-index: 1;
}

#info-text {
  text-shadow:
    0 0 18px rgba(127, 200, 255, 0.85),
    0 0 40px rgba(127, 200, 255, 0.45),
    0 4px 10px rgba(15, 26, 46, 0.55);
}

/* ── Map Section ──────────────────────────────────────────── */
#map {
  background: var(--color-white);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ── RSVP Section ─────────────────────────────────────────── */
#rsvp {
  background:
    linear-gradient(rgba(242, 246, 255, 0.45), rgba(242, 246, 255, 0.58)),
    url('../assets/img/confirm_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#rsvp .container {
  position: relative;
  z-index: 1;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.rsvp-success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  display: none;
}

.rsvp-success.visible {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

/* ── Countdown Section ───────────────────────────────────── */
#countdown {
  background: var(--gradient-gold);
  position: relative;
}

#countdown .container {
  position: relative;
  z-index: 1;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.countdown-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-2);
  text-align: center;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.countdown-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ── Gallery Section ───────────────────────────────────────── */
#gallery {
  background:
    linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
    url('../assets/img/galeria_bg_v.jpg') center / cover no-repeat;
  position: relative;
  padding-bottom: var(--space-8);
}

#gallery .container {
  position: relative;
  z-index: 1;
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slide {
  flex: 0 0 100%;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.gallery-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery-dots {
  display: flex;
  gap: var(--space-2);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ── Map Section (Desktop) ────────────────────────────────── */
@media (min-width: 768px) {
  #map {
    background:
      linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
      url('../assets/img/mapsec_bg.png') center / cover no-repeat;
  }
}

/* ── Gallery Section (Desktop) ────────────────────────────── */
@media (min-width: 768px) {
  #gallery {
    background:
      linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
      url('../assets/img/galeria_bg.png') center / cover no-repeat;
  }
}

/* ── Hero Section (Desktop) ───────────────────────────────── */
@media (min-width: 768px) {
  #hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-16);
    gap: var(--space-8);
  }

  .hero-photo-frame {
    width: 220px;
    height: auto;
  }

  .hero-photo-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: clamp(2.6rem, 6vw, 4rem);
  }
}


.hero-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-cloud {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  filter: blur(20px);
}

.hero-cloud-1 {
  width: 200px;
  height: 60px;
  top: 15%;
  animation: cloudDrift 25s linear infinite;
}

.hero-cloud-2 {
  width: 160px;
  height: 50px;
  top: 35%;
  animation: cloudDriftReverse 30s linear infinite;
  animation-delay: -10s;
}

.hero-cloud-3 {
  width: 240px;
  height: 70px;
  top: 60%;
  animation: cloudDrift 35s linear infinite;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(246, 196, 83, 0.2);
  border: 1px solid rgba(246, 196, 83, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

.hero-stamp {
  margin-top: var(--space-4);
  animation: stampSlam 0.8s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-stamp .stamp-text {
  color: var(--color-seal);
  border-color: var(--color-seal);
  font-size: var(--text-sm);
  opacity: 0.9;
}

.hero-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-base);
  margin-top: var(--space-6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Confidential Section ─────────────────────────────────── */
#confidential {
  background:
    linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
    url('../assets/img/invitados_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#confidential .container {
  position: relative;
  z-index: 1;
}

.confidential-envelope {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.envelope-body {
  background: #D4A43A;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.envelope-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, #C49430 50%, transparent 50%),
              linear-gradient(-135deg, #C49430 50%, transparent 50%);
  background-size: 51% 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.envelope-letter {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.letter-header {
  text-align: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 2px dashed var(--color-border);
}

.letter-header h3 {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.letter-body p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.letter-seal {
  text-align: center;
  margin-top: var(--space-4);
}

.letter-seal .stamp-text {
  font-size: var(--text-xs);
}

/* ── CEO Profile Section ──────────────────────────────────── */
#ceo-profile {
  background:
    linear-gradient(rgba(242, 246, 255, 0.48), rgba(242, 246, 255, 0.58)),
    url('../assets/img/expediente_bg_v.jpg') center / cover no-repeat;
}

#ceo-profile .card {
  max-height: 70vh;
  overflow-y: auto;
}

@media (min-width: 768px) {
  #ceo-profile .card {
    max-height: none;
  }
}

/* ── Event Info Section ───────────────────────────────────── */
#event-info {
  background:
    linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
    url('../assets/img/information_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#event-info .container {
  position: relative;
  z-index: 1;
}

.event-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-card.baptism {
  border-left-color: var(--color-sky);
}

.event-card.birthday {
  border-left-color: var(--color-gold);
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.event-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
}

.event-card.baptism .event-card-icon {
  background: rgba(127, 200, 255, 0.15);
}

.event-card.birthday .event-card-icon {
  background: rgba(246, 196, 83, 0.15);
}

.event-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
}

.event-card-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.event-card-detail-icon {
  font-size: var(--text-base);
  width: 24px;
  text-align: center;
}

/* ── Map Section ──────────────────────────────────────────── */
#map {
  background:
    linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
    url('../assets/img/mapsec_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#map .container {
  position: relative;
  z-index: 1;
}

.maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.map-container {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background: var(--color-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  display: flex;
  justify-content: center;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
}

.map-placeholder-icon {
  font-size: var(--text-3xl);
}

@media (min-width: 768px) {
  .maps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container {
    height: 320px;
  }
}

/* ── RSVP Section ─────────────────────────────────────────── */
#rsvp {
  background:
    linear-gradient(rgba(242, 246, 255, 0.45), rgba(242, 246, 255, 0.58)),
    url('../assets/img/confirm_bg_v.jpg') center / cover no-repeat;
  position: relative;
}

#rsvp .container {
  position: relative;
  z-index: 1;
}

.rsvp-form {
  margin-top: var(--space-4);
}

.rsvp-toggle {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.rsvp-toggle-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  background: var(--color-white);
  transition: all var(--transition-fast);
  min-height: 48px;
  cursor: pointer;
}

.rsvp-toggle-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.rsvp-toggle-btn.active.yes {
  border-color: var(--color-success);
  background: var(--color-success);
}

.rsvp-toggle-btn.active.no {
  border-color: var(--color-seal);
  background: var(--color-seal);
}

.rsvp-extra-fields {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.rsvp-extra-fields.visible {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.rsvp-counter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rsvp-counter-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-light);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  border: 2px solid var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.rsvp-counter-btn:active {
  background: var(--color-primary);
  color: var(--color-white);
}

.rsvp-counter-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-dark);
  min-width: 40px;
  text-align: center;
}

.rsvp-success {
  display: none;
  text-align: center;
  padding: var(--space-6);
}

.rsvp-success.visible {
  display: block;
  animation: bounceIn 0.6s ease-out;
}

.rsvp-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

/* ── Countdown Section ────────────────────────────────────── */
#countdown {
  background: var(--gradient-dark);
  position: relative;
}

#countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(127,200,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

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

.countdown-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(127,200,255,0.15);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.countdown-number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--color-sky);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--space-2);
  font-weight: 600;
}

.countdown-title {
  color: var(--color-white);
  text-align: center;
}

.countdown-subtitle {
  color: var(--color-sky);
  text-align: center;
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-top: var(--space-2);
}

/* ── Gallery Section ──────────────────────────────────────── */
#gallery {
  background:
    linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
    url('../assets/img/galeria_bg_v.jpg') center / cover no-repeat;
  position: relative;
  padding-bottom: var(--space-8);
}

#gallery .container {
  position: relative;
  z-index: 1;
}

.gallery-slider {
  position: relative;
  margin-top: var(--space-6);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.gallery-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.gallery-slide {
  min-width: 100%;
  padding: 0 var(--space-2);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.gallery-dot.active {
  background: var(--color-primary);
  width: 24px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
  z-index: 5;
  cursor: pointer;
  border: none;
}

.gallery-nav.prev {
  left: var(--space-3);
}

.gallery-nav.next {
  right: var(--space-3);
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  gap: var(--space-2);
}

.gallery-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

/* ── Gallery Modal ────────────────────────────────────────── */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: white;
  border: none;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
}

/* ── Mission Transition ───────────────────────────────────── */
.mission-transition {
  text-align: center;
  padding: var(--space-8) 0;
}

.mission-transition-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-border), var(--color-primary));
  margin: 0 auto var(--space-4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 768px) {
  #hero {
    background:
      linear-gradient(rgba(26, 39, 68, 0.24), rgba(26, 39, 68, 0.36)),
      url('../assets/img/init_bg.png') center / cover no-repeat;
  }

  #confidential {
    background:
      linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
      url('../assets/img/invitados_bg.png') center / cover no-repeat;
  }

  #ceo-profile {
    background:
      linear-gradient(rgba(242, 246, 255, 0.48), rgba(242, 246, 255, 0.58)),
      url('../assets/img/expediente_bg.png') center / cover no-repeat;
  }

  #event-info {
    background:
      linear-gradient(rgba(242, 246, 255, 0.42), rgba(242, 246, 255, 0.56)),
      url('../assets/img/information_bg.png') center / cover no-repeat;
  }

  #rsvp {
    background:
      linear-gradient(rgba(242, 246, 255, 0.45), rgba(242, 246, 255, 0.58)),
      url('../assets/img/confirm_bg.png') center / cover no-repeat;
  }

  #map {
    background:
      linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
      url('../assets/img/mapsec_bg.png') center / cover no-repeat;
  }

  #gallery {
    background:
      linear-gradient(rgba(242, 246, 255, 0.5), rgba(242, 246, 255, 0.6)),
      url('../assets/img/galeria_bg.png') center / cover no-repeat;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: clamp(2.6rem, 6vw, 4rem);
  }

  .hero-photo-frame {
    width: min(72vw, 220px);
  }

  .profile-photo-container {
    width: 240px;
    height: 300px;
  }

  .event-cards {
    flex-direction: row;
  }

  .event-card {
    flex: 1;
  }

  .map-container {
    height: 350px;
  }

  .countdown-number {
    font-size: var(--text-4xl);
  }

  .gallery-slide img {
    max-height: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-photo-frame {
    width: min(72vw, 260px);
  }

  .map-container {
    height: 400px;
  }
}