/* ===== 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);
}

/* --- Tarjetas con borde fino del color de los botones #EFA00B --- */
.tarjeta {
  border: 1px solid #EFA00B !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tarjeta:hover {
  transform: translateY(-4px);
  border-color: #EFA00B !important;
  box-shadow: 0 10px 24px -12px rgba(239, 160, 11, 0.45) !important;
}


/* --- 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;
  bottom: 20px !important;
  overflow: visible !important;
}
#veronica-modal {
  bottom: 90px !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;
}

/* Botones de tarjetas del Blog centrados al 50% de ancho */
article.tarjeta a.btn, .tarjeta a.btn {
  width: 50% !important;
  max-width: 220px !important;
  min-width: 130px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  display: block !important;
  text-align: center !important;
}

/* ==========================================================================
   Centrado de títulos (Hero, Secciones, Artículos, etc.)
   ========================================================================== */
#hero-slider h1,
#hero-slider h2,
header + main > section:first-of-type h1,
header + main > section:first-of-type h2,
.hero-banner h1,
.hero-banner h2,
section h1,
section h2,
section h3,
section h4,
article h1,
article h2,
article h3,
article h4,
.articulo-contenido h1,
.articulo-contenido h2,
.articulo-contenido h3,
.articulo-contenido h4,
.tarjeta h2,
.tarjeta h3,
.tarjeta h4,
.card-blog h2,
.card-blog h3,
.card-blog h4 {
  text-align: center !important;
}

#hero-slider .max-w-\[850px\] {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

footer h4 {
  text-align: left !important;
}

#hero-slider p,
#hero-slider p span {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   Tarjetas de contacto: Mismo tamaño al 100% y datos centrados
   ========================================================================== */
#contactanos .tarjeta,
#contacto .tarjeta {
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#contactanos .tarjeta a,
#contactanos .tarjeta p,
#contacto .tarjeta a,
#contacto .tarjeta p,
.tarjeta a[href*="maps.google.com"],
.tarjeta a[href*="mailto:"],
.tarjeta a[href*="tel:"],
.tarjeta a[href*="wa.me"] {
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   Centrado de texto bajo el nombre de persona en testimonios
   ========================================================================== */
#testimonios-clientes .tarjeta .pt-4,
#testimonios-clientes .tarjeta .pt-4 p,
#testimonios .tarjeta .pt-4,
#testimonios .tarjeta .pt-4 p,
.tarjeta .pt-4 h4,
.tarjeta .pt-4 p {
  text-align: center !important;
}

/* ==========================================================================
   Justificado de parrafos de todos los articulos (tarjetas y contenido)
   ========================================================================== */
article p,
article.tarjeta p,
.articulo-contenido > p {
  text-align: justify !important;
  text-justify: inter-word !important;
}


/* ==========================================================================
   Altura de 501px para todas las secciones (excepto header, hero y footer)
   ========================================================================== */
main:not([class*="max-w-[950px]"]) > section:not(#hero-slider):not(:first-of-type) {
  height: 501px !important;
  min-height: 501px !important;
  max-height: 501px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  box-sizing: border-box !important;
}

/* Ajuste proporcional de contenido para Quiénes Somos (Home e interiores) */
#quienes-somos, section[id="quienes-somos"] {
  height: 501px !important;
  min-height: 501px !important;
  max-height: 501px !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#quienes-somos > div, section[id="quienes-somos"] > div {
  max-height: 460px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#quienes-somos h3, section[id="quienes-somos"] h3 {
  margin-bottom: 0.5rem !important;
  line-height: 1.2 !important;
}

#quienes-somos p, section[id="quienes-somos"] p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.25rem !important;
}

#quienes-somos p.subtitulo, section[id="quienes-somos"] p.subtitulo {
  font-size: 16px !important;
  font-weight: 500 !important;
  margin-bottom: 1.75rem !important;
}

#quienes-somos .btn-wrap, section[id="quienes-somos"] .btn-wrap {
  margin-top: 1rem !important;
}

#quienes-somos .btn, section[id="quienes-somos"] .btn {
  padding: 0.75rem 1.8rem !important;
  font-size: 0.75rem !important;
}

/* Ajustes proporcionales para Más Informes para encajar sin corte */
#mas-informes .mb-14 { margin-bottom: 0.5rem !important; }
#mas-informes h3 { margin-bottom: 0.2rem !important; }
#mas-informes p { font-size: 16px !important; }
#mas-informes .gap-12 { gap: 1.25rem !important; }
#mas-informes .img-wrap { height: 310px !important; max-height: 310px !important; }
#mas-informes .img-wrap img { height: 100% !important; max-height: 310px !important; object-fit: cover !important; }
#mas-informes .p-8, #mas-informes .sm\:p-10 { padding: 0.85rem 1.25rem !important; }
#mas-informes .space-y-5 > * + * { margin-top: 0.35rem !important; }
#mas-informes input, #mas-informes textarea { padding: 0.35rem 0.6rem !important; font-size: 0.78rem !important; }
#mas-informes textarea { height: 40px !important; }
#mas-informes button[type="submit"] { padding: 0.45rem 1rem !important; font-size: 0.75rem !important; margin-top: 0.35rem !important; }

/* Ajustes proporcionales para Preguntas Frecuentes para encajar sin corte */
#preguntas-frecuentes .mb-14 { margin-bottom: 0.5rem !important; }
#preguntas-frecuentes h3 { margin-bottom: 0.2rem !important; }
#preguntas-frecuentes p { font-size: 16px !important; }
#preguntas-frecuentes .space-y-4 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem !important;
}
#preguntas-frecuentes .space-y-4 > * + * { margin-top: 0 !important; }
#preguntas-frecuentes .faq-pregunta { padding: 0.45rem 0.75rem !important; font-size: 0.8rem !important; }

/* Ajustes proporcionales para Blog (3 artículos en 1 fila) */
#blog .mb-14 { margin-bottom: 0.85rem !important; }
#blog h3 { margin-bottom: 0.25rem !important; }
#blog .grid { gap: 1.5rem !important; margin-bottom: 1rem !important; }
#blog article .h-48 { height: 130px !important; }
#blog article .p-6 { padding: 0.85rem 1.15rem !important; }
#blog article h4 { font-size: 0.95rem !important; margin-bottom: 0.35rem !important; line-height: 1.3 !important; }
#blog article p { font-size: 0.8rem !important; line-height: 1.35 !important; margin-bottom: 0.75rem !important; }
#blog article a.btn { padding: 0.4rem 1rem !important; font-size: 0.75rem !important; }
#blog div.text-center > a.btn { padding: 0.5rem 1.5rem !important; font-size: 0.75rem !important; }

/* ==========================================================================
   TIPOGRAFÍA PÁRRAFO HERO (20px y 2 renglones)
   ========================================================================== */
#hero-slider p {
  font-size: 20px !important;
  line-height: 28px !important;
  max-width: 980px !important;
}

#hero-slider p span.block {
  display: block !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  #hero-slider p span.block {
    white-space: normal !important;
  }
}

/* ==========================================================================
   TIPOGRAFÍA UNIFICADA DE TÍTULOS (30px) Y SUBTÍTULOS (16px) EN TODAS LAS SECCIONES
   ========================================================================== */
main section:not(#hero-slider) h1,
main section:not(#hero-slider) h2,
main section:not(#hero-slider) h3,
main section:not(#hero-slider) .text-center > h1,
main section:not(#hero-slider) .text-center > h2,
main section:not(#hero-slider) .text-center > h3,
#quienes-somos h3,
#servicios h3,
#contactanos h3,
#mas-informes h3,
#nuestros-logros h3,
#cta-asesoria h2,
#cta-asesoria h3,
#nuestros-clientes h3,
#preguntas-frecuentes h3,
#testimonios-clientes h3,
#blog h3 {
  font-size: 30px !important;
  line-height: 36px !important;
}

main section:not(#hero-slider) .text-center > p,
main section:not(#hero-slider) h1 + p,
main section:not(#hero-slider) h2 + p,
main section:not(#hero-slider) h3 + p,
#quienes-somos p.subtitulo,
#quienes-somos h3 + p,
#servicios div.text-center > p,
#contactanos div.text-center > p,
#mas-informes div.text-center > p,
#nuestros-logros div.text-center > p,
#cta-asesoria h2 + p,
#cta-asesoria h3 + p,
#nuestros-clientes div.text-center > p,
#preguntas-frecuentes div.text-center > p,
#testimonios-clientes div.text-center > p,
#blog div.text-center > p {
  font-size: 16px !important;
  line-height: 24px !important;
}
