/**
 * Theme Name: Sweet Child of 25
 * Template:   twentytwentyfive
 */

/* ----------------------------------------
   HEADER: Sticky + blur + transici¨®n suave
----------------------------------------- */
.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-clip: padding-box;
  transition: opacity 0.5s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-block-template-part.header-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------
   ScrollSequence - Layout centrado en desktop
----------------------------------------- */
.scrollsequence-sticky {
  display: block;
  width: 98%;
  max-width: 1500px;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1080px) {
  .scrollsequence-sticky {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0; 
    padding-right: 0;
  }
}

.pin-spacer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================
   INTRO ANIMADA - Overlay inicial
========================== */
#introOverlay {
  position: fixed;
  inset: 0;
  background-color: #0c1b2e;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none !important;
  z-index: -1 !important;
  overflow: hidden;
}

/* Part¨ªculas flotantes (polvo) */
#dustOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.dust {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  animation: floatDust 10s infinite ease-in-out;
}

@keyframes floatDust {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-40px) translateX(20px) scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-80px) translateX(0) scale(1);
    opacity: 0.1;
  }
}

/* ==========================
   BLOQUE FINAL DEL TEXTO INTRO
========================== */
#introFinalBlock {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;

  padding: 120px 20px 60px;
  background-color: #0c1b2e;
  text-align: center;
  color: #f18f5b;
  font-family: 'Ubuntu', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

#introFinalBlock.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#introFinalBlock p {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

#introFinalBlock p span.animated-letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  animation: fadeSlideIn 0.3s forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================
   Barra de navegaci¨®n inferior (mobile only)
========================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(241, 143, 91, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.bottom-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.6rem;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
  }

  .wp-site-blocks {
    padding-bottom: 60px;
  }
}
