/**
 * Progruaz México - Estilos de Optimización SEO, WPO (Core Web Vitals) y Experiencia Móvil
 */

/* ==========================================================================
   1. WPO: Estabilización de Layout y Prevención de CLS (CLS = 0.000)
   ========================================================================== */

/* WPO iter.3: la geometría del slider (.slider-container / .main-carousel /
   .carousel-cell / .hero-copy) vive SÓLO en el CSS crítico inline de index.php.
   No redefinirla aquí: cualquier regla tardía reabre el CLS. */

/* --------------------------------------------------------------------------
   Todas las páginas — sin desbordamiento horizontal
   En nosotros, .animated.slideInRight entra desde translateX(100%): durante la
   animación sobresalía del viewport y Chrome móvil ensanchaba la página
   (501–823px de layout en un móvil de 412px: zoom-out, scroll lateral y las
   barras fijas fuera de pantalla). Se recorta en la fila que contiene la
   animación (clip no crea contenedor de scroll: no afecta al header sticky).
   No se usa overflow en html/body: en body no se propaga al viewport y en ambos
   convertiría body en contenedor de scroll y rompería position:sticky.
   -------------------------------------------------------------------------- */
.row:has(> .animated) { overflow-x: clip; }

/* --------------------------------------------------------------------------
   Todas las páginas — header en móvil
   style.css (L6344) deja el header en flujo en móvil (77px) y .stick lo pasa a
   position:fixed al bajar 100px: el contenido subía 77px de golpe (layout shift
   durante el scroll). Con sticky el header se queda en flujo y se fija igual.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* .header-top sólo tiene contenido hidden-xs: en móvil era una franja negra vacía de 47px */
  .header-top { display: none; }
  header.transparent-header { position: sticky; top: 0; }
  header.transparent-header.stick { position: sticky; border-bottom: 0; box-shadow: 0 1px 0 #ddd; }
}

/* --------------------------------------------------------------------------
   Páginas internas — banda de título (nosotros / servicios / contacto)
   style.css: .section-title-page { height:150px; padding-top:150px } con
   box-sizing:border-box => 0px para el contenido: el H1 (blanco) y la miga de
   pan se desbordaban sobre el fondo blanco (H1 invisible) y pisaban el primer
   párrafo. Además blanco sobre #aaa = contraste 2.3:1. Se usa la misma banda
   oscura que el H1 de la home y altura por contenido.
   -------------------------------------------------------------------------- */
.section-title-page {
  height: auto;
  padding: 170px 0 30px;           /* el header es absoluto (~138px) en ≥768px */
  margin-bottom: 50px;
  background: #111111;
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  border-bottom: 3px solid #ffc627;
}
.section-title-page h1 {
  margin: 0 0 8px;
  line-height: 1.35;
  /* va en MAYÚSCULAS (estilo en línea): fallback "Caps" para que el corte de línea no cambie */
  font-family: 'Merriweather', 'Merri Caps Fallback', 'Merri Caps Fallback Android', serif;
}
.section-title-page .bread .breadcrumb { margin: 0; padding: 6px 0; background: transparent; }
.section-title-page .breadcrumb li a { color: #ffc627; }
.section-title-page .breadcrumb > .active { color: #e5e7eb; }
.section-title-page .breadcrumb > li + li:before { color: #9ca3af; }
@media (min-width: 768px) {
  .section-title-page .row { display: flex; align-items: flex-end; }
}
@media (max-width: 767px) {
  /* en móvil el header ya está en flujo: no hace falta reservar su altura */
  .section-title-page { padding: 26px 0 18px; margin-bottom: 30px; }
  .section-title-page h1 { font-size: 22px !important; }
  .section-title-page .text-right { text-align: left; }
}

/* --------------------------------------------------------------------------
   Home: sección de pestañas (#servicios)
   -------------------------------------------------------------------------- */
/* style.css da a .home-tabs margin-top negativo (-60px tablet / -100px desktop)
   para montarlas sobre el bloque anterior. Tras insertar .seo-intro-section,
   ese margen hacía que el título "Catálogo Especializado…" pisara las tarjetas. */
@media (min-width: 768px) {
  .seo-intro-section + .home-tabs {
    margin-top: 0;
    padding-top: 50px;
  }
}

/* "Ver Catálogo Completo": .btn-clean es blanco sobre transparente (pensado para
   fondos oscuros) y en la pestaña quedaba invisible (recuadro vacío). */
.home-tabs .tab-content .btn-clean,
.home-tabs .tab-content .btn-clean:visited {
  color: #1f2937 !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
}
.home-tabs .tab-content .btn-clean:hover,
.home-tabs .tab-content .btn-clean:focus {
  color: #ffffff !important;
  background-color: #111827 !important;
  border-color: #111827 !important;
}

/* Ficha de descarga del currículum: no es una pestaña, así que no debe quedarse
   "activa" (naranja) tras el clic; sí conserva hover y foco de teclado visibles. */
.tabs-container .nav.nav-tabs li.tab-download > a:focus:not(:focus-visible) {
  background: #ffc627;
  border-bottom: 0;
}
/* El icono PDF (Font Awesome: inline-block, line-height 1 => caja de 64px) se iguala a
   la caja de los iconos Flaticon de las otras fichas (block, 28.2px medidos), así
   las cuatro fichas miden lo mismo. */
.tabs-container .nav-tabs > li.tab-download > a .tab-image .icon.fa {
  display: block;
  line-height: 28.2px;
}
/* 768–1199px: las etiquetas largas ("Técnicos calificados", "Diseño y fabricación")
   se parten en 2 líneas y esa ficha crecía. Se reservan 2 líneas en todas y el texto
   se centra en vertical => las fichas miden igual se parta o no la etiqueta. */
@media (min-width: 768px) and (max-width: 1199px) {
  .tabs-container .nav-tabs > li > a > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54.4px; /* 2 × line-height 27.2px */
  }
  /* style.css fija li=180px y la activa=200px en este rango: con la etiqueta de 2 líneas
     el contenido desbordaba y la activa quedaba más baja que las demás. Altura por
     contenido: la activa conserva su realce (margin-top -10px + borde inferior 10px). */
  .tabs-container .nav.nav-tabs li,
  .tabs-container .nav.nav-tabs li.active a {
    height: auto;
  }
}
.tabs-container .nav.nav-tabs li.tab-download > a.is-downloading,
.tabs-container .nav.nav-tabs li.tab-download > a.is-downloading:hover {
  background: #fa8c00;
  cursor: progress;
}

/* Dimensiones fijas para el logo del header (evita saltos al cargar) */
.transparent-header .navigation-2 .navbar-default .navbar-header img.logo-menu {
  width: 133px;
  height: 45px;
  aspect-ratio: 133 / 45;
  max-height: 45px;
  display: inline-block;
  vertical-align: middle;
}

/* Espacio reservado para el bloque de contenido descriptivo (Altura calculada real) */
.seo-intro-section {
  background-color: #f8f9fa;
  padding: 55px 0 50px 0;
  border-bottom: 1px solid #e5e7eb;
  min-height: 685px;
  contain: layout;
}

/* --- Desktop ≥992px --- */
@media (min-width: 992px) {
  .seo-intro-section {
    min-height: 685px;
  }
}

/* --- Tablet 768-991px --- */
@media (max-width: 991px) and (min-width: 768px) {
  .seo-intro-section {
    min-height: 950px;
  }
}

/* --- Móvil <768px: aspect-ratio 16:9 puro, sin altura fija, sin saltos --- */
@media (max-width: 767px) {
  .seo-intro-section {
    min-height: auto;
  }
}

/* Cuadrícula del portafolio con aspect-ratio 4:3 para evitar saltos en lazy load */
.portfolio-item {
  contain: layout;
}

.portfolio-item .portfolio {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: #1f2937;
  overflow: hidden;
  position: relative;
}

.portfolio-item .portfolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-item:hover .portfolio img {
  transform: scale(1.05);
}

.portfolio-info .project-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  padding: 0 10px !important;
  text-transform: none !important;
  line-height: 1.3 !important;
  margin-top: 10px !important;
}

/* ==========================================================================
   2. Encabezado H1 y Bloques de Contenido SEO (On-Page)
   ========================================================================== */
.seo-hero-title-wrap {
  background: #1a1a1a;
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  border-bottom: 3px solid #ffc627;
  padding: 30px 0 25px 0;
  color: #ffffff;
  position: relative;
  z-index: 5;
  min-height: 155px;
  contain: layout;
}

.seo-hero-h1 {
  font-family: 'Source Sans Pro', 'SSP Fallback', 'SSP Fallback Android', sans-serif;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 36px;
  display: block;
  contain: layout;
}

.seo-hero-h1 span {
  color: #ffc627;
}

.seo-hero-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
  margin: 0;
  max-width: 980px;
  min-height: 48px;
}

@media (min-width: 992px) {
  .seo-hero-title-wrap { min-height: 155px; }
  .seo-hero-h1 { min-height: 36px; font-size: 26px; }
}

@media (max-width: 991px) and (min-width: 768px) {
  .seo-hero-title-wrap { min-height: 175px; }
  .seo-hero-h1 { min-height: 70px; }
}

@media (max-width: 767px) {
  .seo-hero-title-wrap { min-height: 210px; padding: 20px 0 18px 0; }
  .seo-hero-h1 { font-size: 20px; min-height: auto; }
  .seo-hero-lead { font-size: 13.5px; min-height: auto; }
}

.seo-intro-heading {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 12px;
}

.seo-intro-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #ffc627;
}

.seo-intro-text {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 20px;
}

.seo-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #ffc627;
  border-radius: 4px;
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: calc(100% - 24px);
}

.seo-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.seo-feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: #fff8e1;
  color: #d97706;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.seo-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.seo-feature-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* ==========================================================================
   3. Sección de Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.seo-faq-section {
  background: #ffffff;
  padding: 70px 0 60px 0;
  border-top: 1px solid #e5e7eb;
}

.seo-faq-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  text-align: center;
}

.seo-faq-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 40px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pgm-faq-accordion .panel {
  border: 1px solid #e5e7eb;
  border-radius: 6px !important;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.pgm-faq-accordion .panel-heading {
  background-color: #fafafa;
  padding: 0;
  border: none;
  transition: background-color 0.2s ease;
}

.pgm-faq-accordion .panel-heading:hover {
  background-color: #f3f4f6;
}

.pgm-faq-accordion .panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.pgm-faq-accordion .panel-title a {
  display: block;
  padding: 16px 20px;
  color: #1f2937;
  text-decoration: none;
  position: relative;
  padding-right: 45px;
}

.pgm-faq-accordion .panel-title a .faq-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #ffc627;
  color: #111111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.pgm-faq-accordion .panel-title a.collapsed .faq-icon::before {
  content: "+";
}

.pgm-faq-accordion .panel-title a:not(.collapsed) {
  color: #9a3412; /* antes #b45309: 4.44:1 sobre #f0f1f5, por debajo de 4.5:1 */
}

.pgm-faq-accordion .panel-title a:not(.collapsed) .faq-icon::before {
  content: "−";
}

.pgm-faq-accordion .panel-body {
  padding: 18px 22px 22px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5563;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
}

/* ==========================================================================
   4. Botones de Contacto Rápido y Experiencia Móvil (Mobile-First)
   ========================================================================== */
.pgm-floating-contact,
.pgm-mobile-action-bar {
  visibility: visible; /* el CSS crítico de index.php los oculta hasta que llega esta hoja */
}

.pgm-floating-contact {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.pgm-btn-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #ffffff !important;
  position: relative;
}

.pgm-btn-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.pgm-btn-float.whatsapp {
  background-color: #25d366;
  font-size: 30px;
}

.pgm-btn-float.phone {
  background-color: #ffc627;
  color: #111111 !important;
  font-size: 22px;
}

.pgm-btn-float .float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #b91c1c; /* antes #ef4444: 3.76:1 con texto blanco de 10px */
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pgm-btn-float .float-tooltip {
  display: none;
  position: absolute;
  right: 66px;
  background: #1f2937;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pgm-btn-float:hover .float-tooltip {
  display: block;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }

  .pgm-floating-contact {
    bottom: 70px;
    right: 15px;
    gap: 8px;
  }

  .pgm-btn-float {
    width: 48px;
    height: 48px;
  }

  .pgm-btn-float.whatsapp {
    font-size: 26px;
  }

  .pgm-btn-float.phone {
    display: none;
  }

  .pgm-mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #111827;
    border-top: 2px solid #ffc627;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  }

  .pgm-mobile-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0 4px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .pgm-mobile-action-bar .bar-call {
    background: #ffc627;
    color: #111111 !important;
  }

  .pgm-mobile-action-bar .bar-wa {
    background: #15803d; /* antes #25d366: 1.98:1 con texto blanco */
    color: #ffffff !important;
  }

  .seo-hero-h1 {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .pgm-mobile-action-bar {
    display: none !important;
  }
}

/* ==========================================================================
   PÁGINAS DE SERVICIO (Fase 1 SEO, 2026-11-18)
   Plantilla común de /gruas-viajeras-monopuente, /gruas-viajeras-bipuente,
   /gruas-portico, /gruas-bandera, /polipastos-electricos,
   /mantenimiento-gruas-viajeras, /modernizacion-gruas y
   /refacciones-gruas-viajeras. Generadas por
   _herramientas_wpo/generar_paginas_servicio.py (fuera del webroot).
   ========================================================================== */
.pgm-svc-intro { padding: 10px 0 50px; }
.pgm-svc-lead { font-size: 17px; line-height: 1.75; color: #1f2937; margin: 0 0 16px; }
.pgm-svc-intro p { font-size: 15px; line-height: 1.8; color: #4b5563; }
.pgm-svc-cta-row { margin-top: 22px; }
.pgm-svc-cta-row .btn { margin: 0 10px 10px 0; font-weight: 700; }
.pgm-svc-wa { background: #25d366; border-color: #25d366; color: #ffffff !important; }
.pgm-svc-wa:hover, .pgm-svc-wa:focus { background: #1ebe57; border-color: #1ebe57; }
.pgm-svc-keyfacts { background: #f8f9fa; border: 1px solid #e5e7eb; border-top: 4px solid #ffc627; border-radius: 6px; padding: 20px 22px; margin-top: 24px; }
.pgm-svc-keyfacts h2 { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; }
.pgm-svc-keyfacts ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; color: #374151; }
.pgm-svc-figure { margin: 0; }
.pgm-svc-figure .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; box-shadow: 0 4px 15px rgba(0, 0, 0, .1); background: #e5e7eb; }
.pgm-svc-figure .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgm-svc-figure figcaption { font-size: 13px; color: #6b7280; margin-top: 8px; }

.pgm-svc-section { padding: 55px 0; border-top: 1px solid #e5e7eb; }
.pgm-svc-section.alt { background: #f8f9fa; }
.pgm-svc-section h2 { font-size: 26px; font-weight: 700; color: #111827; margin: 0 0 18px; line-height: 1.35; }
.pgm-svc-section h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 22px 0 8px; }
.pgm-svc-section p, .pgm-svc-section li { font-size: 15px; line-height: 1.8; color: #4b5563; }
.pgm-svc-section ul { padding-left: 22px; }
/* style.css quita las viñetas de las listas: en estas páginas se restauran para legibilidad */
.pgm-svc-section ul > li, .pgm-svc-keyfacts ul > li { list-style: disc outside; display: list-item; }
.pgm-svc-section p a, .pgm-svc-section li a, .pgm-svc-intro p a { color: #b45309; text-decoration: underline; text-decoration-color: #ffc627; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pgm-svc-section p a:hover, .pgm-svc-section li a:hover, .pgm-svc-intro p a:hover { color: #7c2d12; }
.pgm-svc-section li strong { color: #1f2937; }

.pgm-svc-specs { width: 100%; border-collapse: collapse; margin: 6px 0 10px; background: #ffffff; }
.pgm-svc-specs th, .pgm-svc-specs td { border: 1px solid #e5e7eb; padding: 12px 14px; font-size: 14.5px; vertical-align: top; text-align: left; }
.pgm-svc-specs th { width: 38%; background: #fff8e1; color: #1f2937; font-weight: 700; }
.pgm-svc-specs td { color: #374151; }
.pgm-svc-note { font-size: 13px !important; color: #6b7280 !important; }

.pgm-svc-steps { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: paso; }
.pgm-svc-steps li { position: relative; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 18px 18px 16px 58px; counter-increment: paso; }
.pgm-svc-steps li::before { content: counter(paso); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #ffc627; color: #111827; font-weight: 700; text-align: center; line-height: 30px; font-size: 15px; }
.pgm-svc-steps li strong { display: block; color: #111827; margin-bottom: 4px; }

.pgm-svc-why .seo-feature-card { height: 100%; margin-bottom: 0; }
.pgm-svc-why { display: flex; flex-wrap: wrap; }
.pgm-svc-why > [class*="col-"] { margin-bottom: 24px; }

.pgm-svc-photos { display: flex; flex-wrap: wrap; }
.pgm-svc-photos figure { margin: 0 0 24px; }
.pgm-svc-photos .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e5e7eb; }
.pgm-svc-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgm-svc-photos figcaption { font-size: 13.5px; color: #4b5563; margin-top: 8px; line-height: 1.5; }

.pgm-svc-related { display: flex; flex-wrap: wrap; }
.pgm-svc-related > [class*="col-"] { margin-bottom: 20px; }
.pgm-svc-related a { display: block; height: 100%; background: #ffffff; border: 1px solid #e5e7eb; border-left: 4px solid #ffc627; border-radius: 6px; padding: 16px 18px; color: #1f2937; text-decoration: none; transition: box-shadow .2s ease; }
.pgm-svc-related a:hover, .pgm-svc-related a:focus { box-shadow: 0 6px 16px rgba(0, 0, 0, .1); color: #b45309; }
.pgm-svc-related a strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pgm-svc-related a span { font-size: 13.5px; color: #6b7280; line-height: 1.5; display: block; }

@media (max-width: 767px) {
  .pgm-svc-section { padding: 40px 0; }
  .pgm-svc-section h2 { font-size: 22px; }
  .pgm-svc-lead { font-size: 16px; }
  .pgm-svc-figure { margin-top: 26px; }
  .pgm-svc-specs th { width: 44%; }
}

/* Enlaces internos a las páginas de servicio dentro de viñetas en negrita y de tarjetas:
   mismo color de texto, subrayado amarillo de marca (legibles y distinguibles). */
li > strong > a, .seo-feature-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ffc627;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
li > strong > a:hover, li > strong > a:focus, .seo-feature-card h3 a:hover, .seo-feature-card h3 a:focus {
  color: #b45309;
}

/* Accesibilidad (contraste ≥ 4.5:1) en las páginas de servicio */
.pgm-svc-cta-row .btn-primary { color: #111827 !important; }
.pgm-svc-cta-row .pgm-svc-wa { background: #15803d; border-color: #15803d; color: #ffffff !important; }
.pgm-svc-cta-row .pgm-svc-wa:hover, .pgm-svc-cta-row .pgm-svc-wa:focus { background: #166534; border-color: #166534; }
.pgm-svc-cta { background: #111111; background: linear-gradient(135deg, #111111 0%, #222222 100%); border-top: 3px solid #ffc627; padding: 40px 0; }
.pgm-svc-cta h2 { color: #ffffff; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.pgm-svc-cta p { color: #e5e7eb; font-size: 15px; margin: 0; }
.pgm-svc-cta .btn-primary { color: #111827 !important; background: #ffc627; border-color: #ffc627; font-weight: 700; margin-top: 10px; }
.pgm-svc-cta .btn-primary:hover, .pgm-svc-cta .btn-primary:focus { background: #ffffff; border-color: #ffffff; }
@media (max-width: 767px) { .pgm-svc-cta .text-right { text-align: left; } }

/* ==========================================================================
   ACCESIBILIDAD (2026-11-18): contraste ≥ 4.5:1 en todo el sitio
   El amarillo de marca (#ffc627) con texto blanco daba 1.57:1. Se mantiene el
   amarillo y el texto pasa a gris oscuro. El botón "Cotizar ahora" del
   encabezado (.pull-right) no cambia: va sobre fondo oscuro.
   ========================================================================== */
a.btn-primary:not(.pull-right):not(.pgm-svc-wa), button.btn-primary, input.btn-primary { color: #111827 !important; }
/* el botón verde de WhatsApp de las páginas de servicio conserva su texto blanco (#15803d: 5.0:1) */
ul#filter.filter-square li.active, ul#filter.filter-square li:hover { color: #111827; }
.parallex-small .parallex-text h2, .parallex-small .parallex-text h4, .parallex-small .parallex-text p { color: #111827 !important; }
.parallex-small .btn-clean { color: #111827 !important; border-color: #111827 !important; }
.parallex-small .btn-clean:hover, .parallex-small .btn-clean:focus { background-color: #111827 !important; color: #ffc627 !important; }

/* Home: el título de la franja pasó de <h4> a <h2> (orden de títulos) con las mismas métricas */
.parallex-text h2.pgm-cta-title { margin: 0; font-weight: 600; font-size: 28px; line-height: 60px; }
@media (min-width: 768px) and (max-width: 1279px) { .parallex-text h2.pgm-cta-title { font-size: 25px; line-height: 36px; } }
@media (min-width: 320px) and (max-width: 767px) { .parallex-text h2.pgm-cta-title { font-size: 23px; text-align: center; line-height: 36px; } }
/* Home: las etiquetas de las cifras pasaron de <h5> a <p> (no son títulos) con las mismas métricas */
p.count-title { font-family: 'Merriweather', 'Merri Fallback', 'Merri Fallback Android', serif; font-size: 18px; font-weight: 400; line-height: 1.6; color: #ffffff; margin: 0; }
@media (min-width: 768px) and (max-width: 1279px) { p.count-title { font-size: 14px; } }
@media (min-width: 320px) and (max-width: 767px) { p.count-title { font-size: 14px; } }
/* Servicios: botón de teléfono en caja clara (.btn-clean es blanco sobre transparente → 1.05:1, invisible) */
a.btn-clean.pgm-btn-outline-dark, a.btn-clean.pgm-btn-outline-dark:visited { color: #111827 !important; border-color: #111827 !important; background-color: transparent; }
a.btn-clean.pgm-btn-outline-dark:hover, a.btn-clean.pgm-btn-outline-dark:focus { background-color: #111827 !important; color: #ffc627 !important; }
