/* ============================================================ */
/* INTERACTIVIDAD — agregar al final de style.css              */
/* ============================================================ */


/* ========================= */
/* Cursor personalizado      */
/* ========================= */
.custom-cursor {
  display: none; /* oculto en mobile */
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(233, 75, 139, 0.5);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: multiply;
    top: 0;
    left: 0;
  }

  .custom-cursor.cursor-hover {
    width: 36px;
    height: 36px;
    background-color: rgba(233, 75, 139, 0.25);
    border: 2px solid #E94B8B;
  }
}


/* ========================= */
/* WhatsApp flotante         */
/* ========================= */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-bounce 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}


/* ========================= */
/* Header: encoge al scroll  */
/* ========================= */
.header {
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
  padding: 4px 20px;
  background-color: rgba(6, 14, 30, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-scrolled .header-left img {
  height: 50px;
  transition: height 0.3s ease;
}


/* ========================= */
/* Scroll indicator          */
/* ========================= */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.4s ease;
}

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

.scroll-indicator span::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

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


/* ========================= */
/* Typewriter                */
/* ========================= */
.typewriter::after {
  content: "|";
  animation: blink 0.8s step-end infinite;
  color: #f9a8d4;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ========================= */
/* Hero fade-in elementos    */
/* ========================= */
.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
  animation-delay: 2s; /* espera al typewriter */
}

.hero-fade-2 {
  animation-delay: 2.3s;
}

@keyframes heroFadeIn {
  to { opacity: 0.9; transform: translateY(0); }
}


/* ========================= */
/* Secciones: reveal         */
/* ========================= */
.section-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ========================= */
/* Cards: animación entrada  */
/* ========================= */
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

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


/* ========================= */
/* FAQ: animación suave      */
/* ========================= */
/* Reemplaza el <details> nativo por clase .faq-open */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #4A1D33;
  line-height: 1.6;
  text-align: left;
  opacity: 0.8;
}


/* ========================= */
/* Botón con pulso           */
/* ========================= */
.btn-pulse.pulse-active {
  animation: pulse-ring 2.2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(233, 75, 139, 0.5); }
  60%  { box-shadow: 0 0 0 14px rgba(233, 75, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 75, 139, 0); }
}


/* ========================= */
/* Contadores animados       */
/* ========================= */
.counter {
  display: block;
  font-size: 2.2rem;
  color: #d03d84;
  margin-bottom: 4px;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
}

.bio-list li:hover .counter {
  transform: scale(1.15);
  color: #b0306d;
}


/* ========================= */
/* Smooth scroll global      */
/* ========================= */
html {
  scroll-behavior: smooth;
}