/* ===== Resto del sitio: todos los efectos aprobados por animar-interfaz ===== */

:root {
  --color-primario: var(--primary, #0A244A);
  --color-secundario: var(--secondary, #6C7A89);
  --color-acento: var(--accent, #F26522);
  --color-fondo: var(--dark, #051428);
  --color-tarjeta: var(--card-dark, #0B254A);
}

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

/* --- 2. Hover en tarjetas --- */
.tarjeta, .service-card, .contact-card, .logro-box, .client-card, .testimonial-card, .blog-card-home {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}
.tarjeta:hover, .service-card:hover, .contact-card:hover, .logro-box:hover, .client-card:hover, .testimonial-card:hover, .blog-card-home:hover {
  transform: translateY(-5px) !important;
  border-color: var(--color-acento) !important;
  box-shadow: 0 12px 28px -10px rgba(242, 101, 34, 0.45) !important;
}

/* --- 3. Hover en botones --- */
.btn, .btn-primary, .btn-secondary {
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}
.btn:active, .btn-primary:active, .btn-secondary:active {
  transform: translateY(0);
}

/* --- 4. Pulso del botón flotante de WhatsApp --- */
.whatsapp-flotante, .floating-wa {
  position: fixed !important;
}
.whatsapp-flotante::before, .floating-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  animation: pulso 2.4s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes pulso {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --- 5. Acordeón de FAQs --- */
.faq-pregunta, .accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-pregunta .icono, .accordion-header .accordion-icon {
  transition: transform .25s ease;
  color: var(--color-acento);
}
.faq-item.abierto .icono, .accordion-item.open .accordion-icon, .accordion-item.abierto .accordion-icon {
  transform: rotate(180deg);
}
.faq-respuesta, .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.abierto .faq-respuesta, .accordion-item.open .accordion-body, .accordion-item.abierto .accordion-body {
  max-height: 320px;
}

/* --- 6. Barra de progreso de fases --- */
.fases {
  position: relative;
  padding-left: 32px;
}
.fases .linea-base {
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, .12);
}
.fases .linea-progreso {
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: 0%;
  background: var(--color-acento);
  transition: height 1.2s ease;
}
.fase {
  position: relative;
}
.fase::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-fondo);
  border: 2px solid rgba(255, 255, 255, .2);
  transition: border-color .4s ease, background .4s ease;
}
.fase.activa::before {
  border-color: var(--color-acento);
  background: var(--color-acento);
}

/* --- 7. Subrayado animado en menú --- */
.nav-menu > li > a:not(.btn-primary) {
  position: relative;
}
.nav-menu > li > a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-acento);
  transition: width .25s ease;
}
.nav-menu > li > a:not(.btn-primary):hover::after {
  width: 100%;
}

/* --- 8. Barra CTA fija al hacer scroll --- */
.barra-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  background: rgba(11, 37, 74, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(242, 101, 34, 0.35);
  padding: 12px 105px;
  transform: translateY(100%);
  transition: transform .3s ease;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}
.barra-cta.visible {
  transform: translateY(0);
}
.barra-cta-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.barra-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}
.barra-cta-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-acento);
  display: inline-block;
  animation: pulso 2s infinite;
}
.barra-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- 9. Shimmer al cargar imágenes --- */
.img-wrap {
  position: relative;
  overflow: hidden;
}
.img-wrap.cargando::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-tarjeta) 25%, rgba(255, 255, 255, .08) 50%, var(--color-tarjeta) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  z-index: 2;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 10. Confirmación animada de formulario --- */
.confirmacion-envio {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.confirmacion-envio.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Accesibilidad: respeta "reducir movimiento" --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .whatsapp-flotante::before, .floating-wa::before, .barra-cta-dot { animation: none; display: none; }
  .tarjeta, .service-card, .contact-card, .logro-box, .client-card, .testimonial-card, .blog-card-home,
  .btn, .btn-primary, .btn-secondary, .faq-respuesta, .accordion-body, .faq-pregunta .icono, .accordion-icon,
  .fases .linea-progreso, .fase::before, .nav-menu > li > a::after,
  .barra-cta, .img-wrap.cargando::before, .confirmacion-envio {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .barra-cta-text { display: none; }
  .barra-cta-inner { justify-content: center; }
}

/* --- Utilidades CSS estáticas (Reemplazo autónomo de Tailwind CDN) --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.leading-tight { line-height: 1.25; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-white { color: #ffffff; }
.uppercase { text-transform: uppercase; }
.bg-dark-alt { background-color: var(--card-dark, #0B254A); }

