/* ===== Fluinomex · ajustes de coherencia (tipografía, cierre y footer) ===== */
:root{
  --fx-text:1.125rem;      /* 18px párrafos y descripciones */
  --fx-text-lh:1.6;
  --fx-small:.875rem;      /* 14px etiquetas, direcciones, notas */
  --fx-small-lh:1.5;
}
@media (max-width:767px){ :root{ --fx-text:1rem; --fx-small:.8125rem; } }

/* Párrafos y descripciones: una sola medida en todo el sitio */
.text-block-63,.text-block-64,.sub-dato-grande,.single-big,
.uui-text-size-large,.uui-text-size-large-2.card,.fluino-text-size-medium,
.a-paragraph-regular,.ccc,.paragraph.repse,
.servicios-especializados-tabs:not(.title):not(.xl),
.full-parapraph-wrapper p,.only-paragraph-div p,.parapraph-wrapper p,.mision-vision p,
.hero-main-wrapper div:not([class]),.text-wrapper > div,
.success-text,.error-text{
  font-size:var(--fx-text)!important;
  line-height:var(--fx-text-lh)!important;
}
.servicios-especializados-tabs.w-richtext p,.servicios-especializados-tabs.w-richtext li{font-size:inherit!important;line-height:inherit!important}

/* Texto pequeño: etiquetas, direcciones, datos */
.text-block-56,.a-paragraph-small,.cta_pill,.cta_text,
.uui-text-size-large-2.small,.div-block-8.centre div{
  font-size:var(--fx-small)!important;
  line-height:var(--fx-small-lh)!important;
}

/* ===== Cierre (banda roja) igual en todas las páginas ===== */
.fx-cta .div-block-19{gap:1.5rem}
.fx-cta .h3-regular-normal{font-size:1.75rem;line-height:1.25}
@media (max-width:767px){ .fx-cta .h3-regular-normal{font-size:1.375rem;text-align:center} }

/* ===== Footer ===== */
.fx-footer{background:#000;color:#fff;border-radius:var(--_radius---unified-radius);padding:4rem 3rem 1.75rem;font-family:inherit}
.fx-footer a{color:inherit;text-decoration:none}
.fx-footer__top{display:grid;grid-template-columns:1.5fr 1fr 1.2fr 1.3fr;gap:3rem;align-items:start}
.fx-footer__logo{display:inline-block;width:180px;max-width:100%}
.fx-footer__logo img{width:100%;height:auto;display:block}
.fx-footer__about{margin:1.25rem 0 0;max-width:22rem;color:rgba(255,255,255,.72);font-size:var(--fx-small);line-height:var(--fx-small-lh);font-weight:300}
.fx-footer__title{margin:0 0 1rem;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5);font-weight:500}
.fx-footer__list{display:flex;flex-direction:column;gap:.6rem;font-size:.9375rem;font-weight:300}
.fx-footer__list a{color:rgba(255,255,255,.85);transition:color .2s}
.fx-footer__list a:hover{color:#fff}
.fx-footer__list a[aria-current="page"]{color:#fff;font-weight:500;box-shadow:inset 0 -2px 0 #990003;width:fit-content}
.fx-footer__list span{color:rgba(255,255,255,.6)}
.fx-footer__certs{display:flex;flex-wrap:wrap;align-items:center;gap:1.25rem}
.fx-footer__certs img{height:30px;width:auto;max-width:110px;object-fit:contain}
.fx-footer__certs img.fx-invert{filter:invert(1)}
.fx-footer__bottom{margin-top:3.5rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.8125rem;color:rgba(255,255,255,.5);font-weight:300}
@media (max-width:991px){ .fx-footer__top{grid-template-columns:1fr 1fr;gap:2.5rem} .fx-footer{padding:3.5rem 2rem 1.5rem} }
@media (max-width:767px){ .fx-footer__top{grid-template-columns:1fr} .fx-footer{padding:3rem 1.5rem 1.5rem} .fx-footer__bottom{flex-direction:column;margin-top:2.5rem} }

/* ===== Correcciones de alturas fijas que cortaban o encimaban texto ===== */
.dato-destacado.spark-flexed-row-of-links.red{height:auto!important;min-height:12rem;padding-top:2rem;padding-bottom:2rem}
@media (max-width:991px){
  .mision-vision{height:auto!important;min-height:0!important}
  .div-block-20.v2.v3{height:auto!important}
}

/* Ancho de lectura cómodo (~75 caracteres) para bloques de párrafo anchos */
.full-parapraph-wrapper p{max-width:46rem;margin-left:auto;margin-right:auto}
.parapraph-wrapper p{max-width:52rem}

/* ===== Menú móvil (≤991px) ===== */
.fx-burger,.fx-menu{display:none}
/* Botón "Log in" sobrante de la plantilla */
.uui-button-secondary-gray-3.show-tablet{display:none!important}
@media (max-width:991px){
  .uui-navbar01_component .w-nav-button{display:none!important}
  .uui-navbar01_component .w-nav-menu{display:none!important}
  .uui-navbar01_container{display:flex;align-items:center;justify-content:space-between;gap:1rem}
  .fx-burger{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;margin-left:.5rem;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);cursor:pointer;-webkit-tap-highlight-color:transparent;flex:0 0 auto}
  .fx-burger span{display:block;width:20px;height:2px;border-radius:2px;background:#fff}
  .fx-burger:focus-visible{outline:2px solid #fff;outline-offset:2px}
  .fx-menu{display:flex;flex-direction:column;position:fixed;inset:0;z-index:10000;padding:1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));background:rgba(8,8,8,.97);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;overflow-y:auto}
  .fx-menu.is-open{opacity:1;visibility:visible;transform:none;transition:opacity .25s ease,transform .25s ease}
  .fx-menu a{color:#fff;text-decoration:none}
  .fx-menu__top{display:flex;align-items:center;justify-content:space-between;min-height:56px}
  .fx-menu__logo img{width:150px;height:auto;display:block}
  .fx-menu__close{position:relative;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);cursor:pointer}
  .fx-menu__close span{position:absolute;left:12px;top:21px;width:20px;height:2px;background:#fff;border-radius:2px}
  .fx-menu__close span:first-child{transform:rotate(45deg)}.fx-menu__close span:last-child{transform:rotate(-45deg)}
  .fx-menu__links{display:flex;flex-direction:column;margin-top:2rem}
  .fx-menu__links a{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:.25rem 0;font-size:1.75rem;font-weight:500;letter-spacing:-.01em;border-bottom:1px solid rgba(255,255,255,.12)}
  .fx-menu__links a::after{content:"→";font-size:1.25rem;opacity:.35}
  .fx-menu__links a[aria-current="page"]{color:#fff}
  .fx-menu__links a[aria-current="page"]::after{content:"";width:8px;height:8px;border-radius:50%;background:#e0151b;opacity:1}
  .fx-menu__bottom{margin-top:auto;padding-top:2rem;display:flex;flex-direction:column;gap:1.25rem}
  .fx-menu__cta{display:flex;align-items:center;justify-content:center;min-height:54px;border-radius:50rem;background:#990003;font-size:1rem;font-weight:500}
  .fx-menu__contact{display:flex;flex-direction:column;gap:.5rem;font-size:.9375rem;color:rgba(255,255,255,.7)}
  .fx-menu__contact a{color:rgba(255,255,255,.8)}
  html.fx-lock,html.fx-lock body{overflow:hidden}
}
@media (max-width:991px) and (prefers-reduced-motion:reduce){.fx-menu,.fx-menu.is-open{transition:none}}

/* ===== Optimización móvil ===== */
/* Evita el desplazamiento lateral causado por imágenes/efectos que se salen del ancho */
.full-page-wrapper{overflow-x:clip}
@media (max-width:767px){
  /* El texto justificado deja huecos grandes en pantallas angostas */
  .parapraph-wrapper,.parapraph-wrapper p,.fluino-text-size-medium.justified,.header-div.centre,.paragraph,
  .paragraph.repse.justified,.only-paragraph-div.justified,.only-paragraph-div.justified p,
  .full-parapraph-wrapper,.full-parapraph-wrapper p{text-align:left!important}
  /* Servicios en 2 columnas en lugar de una lista muy larga */
  .uui-layout94_list{grid-template-columns:1fr 1fr!important;gap:.75rem!important}
  .uui-layout94_item{padding:1rem!important}
  .uui-layout94_item .text-block-57{font-size:.8125rem!important;line-height:1.25!important}
  /* Áreas de toque cómodas en el footer y datos de contacto */
  .fx-footer__list{gap:0}
  .fx-footer__list a,.fx-footer__list span{display:flex;align-items:center;min-height:44px}
  a[href^="tel:"],a[href^="mailto:"]{min-height:44px;display:inline-flex;align-items:center}
}
@media (max-width:767px){
  /* Caja negra del home: aprovechar el ancho en celular */
  .div-block-4.black{padding:1.5rem!important}
  .div-block-4.black ._50._85{width:100%!important;max-width:100%!important}
}

/* ===== Mapa de cobertura y estados (celular) ===== */
.estados-todos-wrapper.fx-static{height:auto!important;overflow:visible!important}
.estados-todos-wrapper.fx-static .collection-list-4{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center;gap:.5rem!important;transform:none!important}
.estados-todos-wrapper.fx-static .estados-todos-item-wrapper{width:auto!important}
.estados-todos-wrapper.fx-static .estado-pill{width:auto!important;padding:.4rem .9rem!important;font-size:.875rem!important;line-height:1.3!important;opacity:1!important;color:#fff;border-color:rgba(255,255,255,.55)!important}
.vertical-wrapper.fx-static .top-difuser,.estados-todos-wrapper.fx-static .top-difuser{display:none!important}
.vertical-wrapper.fx-static{height:auto!important;max-height:none!important}
@media (max-width:767px){
  /* Agranda mapa y marcadores juntos (los marcadores están en % del contenedor) */
  .map-wrapper{width:145%!important;max-width:none!important}
  .map-states-wrapper{overflow:hidden}
  .location-wrapper .radius{width:34px!important;opacity:.55!important}
  .location-wrapper .radius.cdmx{width:24px!important}
  .location-wrapper .image-92{width:8px!important}
  .estados-wrapper{gap:1rem!important;margin-top:1.5rem;margin-bottom:2rem;flex-direction:column!important;align-items:center!important}
}

/* ===== Contacto y Nosotros en celular ===== */
@media (max-width:767px){
  /* Hero de Contacto: título visible debajo del menú y texto a todo el ancho */
  .background-video.padding:has(.hero-main-wrapper.left){padding-top:6.5rem!important}
  .hero-main-wrapper.left,.hero-main-wrapper.left .liquid-bubble.corners,.hero-main-wrapper.left .text-wrapper{width:100%!important;max-width:100%!important}
  .hero-main-wrapper.left .heading-2{font-size:1.75rem!important;line-height:1.1!important}
  .hero-main-wrapper.left .liquid-bubble.corners{padding:1.25rem!important}

  /* Oficinas: dato debajo de su etiqueta, sin flecha decorativa */
  .office-master-wrapper{padding:0 1.25rem!important}
  .office-wrapper,.div-block-13{width:100%!important}
  .div-block-8.centre{grid-template-columns:1fr!important;row-gap:.25rem!important;padding:1rem 0!important}
  .div-block-8.centre > :nth-child(2){display:none!important}
  .div-block-8.centre .tag-contacto{width:auto!important;font-size:.75rem!important;letter-spacing:.06em;text-transform:uppercase;color:#757575}
  .div-block-8.centre > :nth-child(3){font-size:1rem!important;line-height:1.5!important;width:auto!important}

  /* Tarjeta "Contáctanos": menos relleno y sin la cuadrícula de puntos */
  .contact-card._100{padding:2rem 1.5rem!important}
  .proyectos-wrapper .bubble-proyects{display:none!important}
  .contact-master-div{padding-top:2rem!important}

  /* Tarjetas rojas de datos más compactas */
  .dato-destacado.spark-flexed-row-of-links.red{min-height:0!important;padding:1.75rem 1.25rem!important}

  /* Nosotros: frase destacada legible y párrafos a todo el ancho */
  .servicios-especializados-tabs.black.xl{font-size:1.75rem!important;line-height:1.2!important;max-width:100%!important}
  .header-div.centre{padding-left:0!important;padding-right:0!important;width:100%!important}
  .paragrpagh-wrapper{width:100%!important;max-width:100%!important}
  .paragrpagh-wrapper .servicios-especializados-tabs{max-width:100%!important;width:100%!important}

  /* Organigrama: se puede deslizar de lado para leerlo */
  .fx-org-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -1rem;padding:0 1rem}
  .fx-org-scroll .organigrama{width:760px!important;max-width:none!important}
  .fx-org-hint{display:block;text-align:center;font-size:.8125rem;color:rgba(255,255,255,.75);margin-top:.5rem}
}
@media (min-width:768px){.fx-org-hint{display:none}}

/* ===== Home y Servicios en celular ===== */
@media (max-width:767px){
  /* Títulos principales del hero más legibles */
  .heading-2.v2{font-size:1.5rem!important;line-height:1.12!important}

  /* Testimonios: carrusel deslizable en lugar de 8 tarjetas apiladas */
  .a-testimonial-grid-large{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:.75rem!important;margin:0 -1rem!important;padding:0 1rem .75rem!important;scrollbar-width:none}
  .a-testimonial-grid-large::-webkit-scrollbar{display:none}
  .a-testimonial-grid-large > .a-testimonial-base{flex:0 0 85%!important;scroll-snap-align:center;opacity:1!important;transform:none!important;filter:none!important}
  .fx-swipe-hint{display:block;text-align:center;font-size:.8125rem;color:#757575;margin-top:.25rem}

  /* Sectores: 2 columnas */
  .servicios-collection-list{grid-template-columns:1fr 1fr!important;gap:.5rem!important}
  .servicios-collection-list .servicios-link-block,.servicios-collection-list .div-block-354{height:140px!important;min-height:0!important}
  .servicios-collection-list .liquid-bubble.less{max-width:calc(100% - 1rem)}
  .servicios-collection-list .text-block-57{font-size:.6875rem!important}
}
@media (min-width:768px){.fx-swipe-hint{display:none}}
@media (max-width:767px){
  /* El degradado que desvanece la última fila en desktop tapa el carrusel en celular */
  .testimoniales-component .white-glare,.a-section-regular .white-glare{display:none!important}
}
