/* Paleta de colores oficial Corresponsable Estructural Querétaro */
:root {
  --color-primario: #058ed9;
  --color-primary: #058ed9;
  --color-secundario: #a39a92;
  --color-secondary: #a39a92;
  --color-header-footer: #483d3f;
  --color-acento: #058ed9;
  --color-accent: #058ed9;
  --color-boton: #a39a92;
  --color-fondo: #ffffff;
  --color-texto: #111111;
  --color-tarjeta: #ffffff;
  --color-light: #f8fafc;
}

/* ===== Resto del sitio: todos los efectos aprobados ===== */

/* --- Fade-in al hacer scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hover en tarjetas --- */
.tarjeta {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tarjeta:hover {
  transform: translateY(-4px);
  border-color: var(--color-secundario);
  box-shadow: 0 12px 24px -8px rgba(72, 61, 63, 0.25);
}

/* --- Botón magnético --- */
.btn-magnetico {
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}

/* --- Pulso de WhatsApp --- */
@keyframes pulsoWsp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-flotante, .floating-whatsapp {
  animation: pulsoWsp 2s infinite ease-in-out;
}

/* --- Acordeón de FAQs --- */
.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
  opacity: 0;
}
.faq-item.abierto .faq-respuesta {
  max-height: 300px;
  opacity: 1;
}
.faq-icono {
  transition: transform .3s ease;
}
.faq-item.abierto .faq-icono {
  transform: rotate(180deg);
}

/* --- Barra de progreso de fases --- */
.fases-progreso {
  position: relative;
  background: rgba(163, 154, 146, 0.2);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}
.fases-progreso-barra {
  height: 100%;
  background: var(--color-primario);
  width: 0%;
  transition: width .4s ease;
}

/* --- Subrayado animado en menú --- */
.menu-enlace {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.menu-enlace::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--color-secundario);
  transition: width .3s ease;
}
.menu-enlace:hover::after {
  width: 100%;
}

/* --- Barra CTA fija inferior --- */
.cta-fija {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #483d3f;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform .35s ease;
  z-index: 40;
}
.cta-fija.visible {
  transform: translateY(0);
}

/* --- Shimmer de carga --- */
@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cargando {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
}

/* --- Accesibilidad: Respetar reducción de movimiento --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
