/* ===== Resto del sitio: animaciones.css (animar-interfaz) ===== */
:root {
  --color-primario: #2661AD;
  --color-secundario: #253C78;
  --color-acento: #253C78;
  --color-fondo: #080E16;
  --color-tarjeta: #0F1A29;
  --c-primario: #2661AD;
  --c-secundario: #253C78;
  --c-acento: #253C78;
  --c-fondo: #080E16;
  --c-tarjeta: #0F1A29;
  --c-cyan: #253C78;
}

/* --- Justificación tipográfica de párrafos --- */
p {
  text-align: justify;
  text-justify: inter-word;
}

/* Excepciones de alineación intencional */
.text-center,
.text-center p,
p.text-center {
  text-align: center !important;
}

.text-left,
.text-left p,
p.text-left {
  text-align: left !important;
}

.text-right,
.text-right p,
p.text-right {
  text-align: right !important;
}


/* --- 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-primario);
  box-shadow: 0 10px 24px -12px rgba(0, 74, 173, 0.55);
}

/* --- Hover en botones --- */
.btn {
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* --- Pulso del botón flotante de WhatsApp y avatar de asistente Verónica --- */
.whatsapp-flotante,
a[title="Contacto por WhatsApp"],
#veronica-trigger-btn {
  position: fixed !important;
  overflow: visible !important;
}
.whatsapp-flotante::before,
a[title="Contacto por WhatsApp"]::before,
#veronica-trigger-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: .55;
  animation: pulso 2.4s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}
.whatsapp-flotante::before,
a[title="Contacto por WhatsApp"]::before {
  background: #25D366;
}
#veronica-trigger-btn::before {
  background: var(--color-secundario, #253C78);
}
@keyframes pulso {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --- Acordeón de FAQs --- */
.faq-pregunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-pregunta .icono {
  transition: transform .25s ease;
  color: var(--color-secundario);
}
.faq-item.abierto .icono {
  transform: rotate(45deg);
}
.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.abierto .faq-respuesta {
  max-height: 600px;
  display: block !important;
}

/* --- Barra de progreso de fases --- */
.fases {
  position: relative;
  padding-left: 36px;
}
.fases .linea-base {
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.fases .linea-progreso {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 2px;
  height: 0%;
  background: var(--color-acento);
  transition: height .8s ease;
}
.fase {
  position: relative;
}
.fase::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-fondo);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
  z-index: 2;
}
.fase.activa::before {
  border-color: var(--color-acento);
  background: var(--color-acento);
  box-shadow: 0 0 10px rgba(52, 168, 83, 0.6);
}

/* --- Subrayado animado en menú --- */
nav a {
  position: relative;
}
nav a:not(.btn):not([class*="bg-"])::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-secundario);
  transition: width .25s ease;
}
nav a:not(.btn):not([class*="bg-"]):hover::after {
  width: 100%;
}

/* --- Barra CTA fija al hacer scroll (removida a petición del usuario) --- */
.barra-cta {
  display: none !important;
}

/* --- Shimmer al cargar imágenes --- */
.img-wrap.cargando {
  position: relative;
}
.img-wrap.cargando::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-tarjeta) 25%, rgba(255, 255, 255, 0.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; }
}

/* --- Confirmación animada de formulario --- */
.confirmacion-envio {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.confirmacion-envio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tipografía ajustada para email en un solo renglón --- */
.email-tarjeta-contacto {
  font-size: 11px;
  white-space: nowrap !important;
  word-break: normal !important;
  letter-spacing: -0.02em;
  display: block !important;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .email-tarjeta-contacto {
    font-size: 8.5px !important;
    letter-spacing: -0.03em !important;
  }
}
@media (min-width: 1280px) {
  .email-tarjeta-contacto {
    font-size: 9.5px !important;
    letter-spacing: -0.025em !important;
  }
}

/* --- Accesibilidad: respeta "reducir movimiento" --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .whatsapp-flotante::before,
  #veronica-trigger-btn::before {
    animation: none !important;
    display: none !important;
  }
  .tarjeta, .btn, .faq-respuesta, .faq-pregunta .icono,
  .fases .linea-progreso, .fase::before, nav a::after,
  .barra-cta, .img-wrap.cargando::before, .confirmacion-envio {
    transition: none !important;
    animation: none !important;
  }
}


/* Las secciones nunca deben tener fade-in con translate ni bordes divisorios para evitar lneas oscuras al hacer scroll */
section, section.reveal {
  opacity: 1 !important;
  transform: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
