/* ==========================================================================
   Ricardo Ruiz - Spanisch Privatunterricht Köln Neumarkt
   Micro-interacciones táctiles, relieve y accesibilidad motriz (Versión B)
   ========================================================================== */

/* Barra superior de progreso de lectura */
#scroll-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #D95A2B 0%, #E67E22 100%);
  width: 0%;
  transition: width 120ms ease-out;
}

/* Elevación táctil de tarjetas interactivas */
.card-tactile {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 220ms ease;
}

.card-tactile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(26, 28, 30, 0.08),
              0 4px 10px -3px rgba(217, 90, 43, 0.06);
}

/* Pestañas del simulador Ping-Pong 30s */
.pingpong-tab {
  transition: all 180ms ease;
}

.pingpong-tab[aria-selected="true"] {
  background-color: #D95A2B;
  color: #FFFFFF;
  border-color: #D95A2B;
  box-shadow: 0 4px 12px -2px rgba(217, 90, 43, 0.28);
}

.pingpong-panel-enter {
  animation: fadeSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-button,
#floating-whatsapp {
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-button:hover,
#floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4),
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Acordeón suave */
.faq-item {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item:hover {
  border-color: rgba(217, 90, 43, 0.35);
}

/* Respeto estricto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card-tactile:hover,
  #floating-whatsapp:hover {
    transform: none !important;
  }
}
