/* ARCED · capa común de usabilidad de la web pública (02/10/2026, agente W1).
   Se carga la última en todas las páginas públicas. Solo corrige: zonas táctiles de 44 px, foco visible,
   anclas que no se esconden bajo la cabecera fija y el contraste del botón verde de WhatsApp. */

/* las anclas (#precios, #faq…) no quedan tapadas por la cabecera fija */
html { scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 84px; } }

/* foco de teclado siempre visible */
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F05613; outline-offset: 3px;
}
.h-btn-primary:focus-visible, .btn-primary:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #C2430C; }

/* botón verde de WhatsApp con texto blanco legible (antes 2,9:1 en el tema oscuro) */
html .btn-wa, html[data-theme] .btn-wa { background: #14803F; color: #fff; }

/* zonas táctiles de 44 px en móvil y pantallas táctiles */
@media (max-width: 760px), (pointer: coarse) {
  .arced-tt button { width: 38px !important; height: 38px !important; }
  .burger { width: 44px !important; height: 44px !important; }
  .nav-logo { min-height: 44px; display: flex; align-items: center; }
  .nav-enter, .btn-enter { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta, .nav-client-link { min-height: 44px; min-width: 44px; justify-content: center; }
  .mobile-menu a, .mobile-menu button.mm-link { min-height: 48px; display: flex; align-items: center; }
  .mm-close { width: 48px !important; height: 48px !important; }

  /* pie de página (todas las variantes de pie de la web) */
  html[data-theme] .site-foot .foot-col a, html[data-theme] .site-foot .foot-legal-links a,
  .footer-col a, .footer-legal a, .footer-bottom a, .foot-legal a, .pie a, footer .legal a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .nums a, .ubi-right a { display: inline-flex; align-items: center; min-height: 44px; }
  .madre { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
  .quicknav a { min-height: 44px; display: inline-flex; align-items: center; }
  .cc a { display: inline-flex; align-items: center; min-height: 44px; }
  .funnel-toggle { min-height: 44px; }
  .btn.btn-ghost, .btn.btn-primary { min-height: 44px; }

  /* enlaces de tarjeta, migas de pan, chips y botones sueltos */
  .h-link, .service-link, .prod-link, .link-res, .breadcrumb a, .ht-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .chip:not(span), button.chip { min-height: 44px; }
  .replay { min-height: 44px; min-width: 44px; }
  .rm-bubble-opt { display: flex; align-items: center; min-height: 44px; }
  .rm-hit { min-width: 44px; min-height: 44px; }
  .vert-tab { min-height: 44px; }
  input[type="range"] { margin: 12px 0; }
  input[type="range"]::-webkit-slider-thumb { width: 32px; height: 32px; }
  input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
}

/* 03/10/2026: una imagen con width/height en el HTML no se estira si el CSS solo le pone width:100% (especificidad 0: cualquier regla propia la gana) */
:where(img[width][height]){height:auto;}
.footer-brand img{width:auto;height:30px;aspect-ratio:1/1;object-fit:contain;}

/* ===== 03/10/2026 · auditoría D1: encuadres de fotos, alturas razonables en móvil/tablet y zonas táctiles ===== */

/* servicios.html: la foto tenía 400 px fijos también en móvil (recorte 0,58 del original). Ahora conserva proporción y el ponente queda dentro del encuadre */
.service-media-inner img{object-position:50% 50%;}
img[src$="web-evento-auditorio.webp"]{object-position:74% 50%;}
img[src$="web-evento-escenario-publico.webp"]{object-position:72% 50%;}
img[src$="web-evento-ponente-contexto.webp"]{object-position:62% 50%;}
img[src$="web-evento-ponente-sala.webp"]{object-position:58% 50%;}
img[src$="web-evento-abrazo-aplausos.webp"]{object-position:42% 50%;}
@media (max-width: 980px) {
  .service-media-inner img{height:auto;aspect-ratio:16/10;}
}
@media (max-width: 600px) {
  .service-media-inner img{aspect-ratio:4/3;}
}

/* resultados.html: galería con teselas de 166x324 px en móvil (recortaba caras y al ponente). Teselas uniformes 3:2 (4:3 en móvil) */
.gallery-grid{grid-auto-rows:auto;}
.gallery-grid a, .gallery-grid a:nth-child(3n+1){grid-row:auto;}
.gallery-grid .g-item{height:auto;aspect-ratio:3/2;}
.gallery-grid .g-item img{display:block;}
@media (max-width: 600px) {
  .gallery-grid{gap:10px;}
  .gallery-grid .g-item{aspect-ratio:4/3;}
}
@media (max-width: 480px) {
  .gallery-grid{grid-template-columns:1fr;}
}

/* leads-frios: "Ahorras un 19 %" en tema claro daba 3,9:1; verde más oscuro */
html[data-theme="light"] .lf-p .sv{color:#0A6439;}

/* zonas táctiles de 44 px en tablet y móvil (antes solo bajo 760 px: a 768 px había 30 elementos de 28-38 px) */
@media (max-width: 1024px), (pointer: coarse) {
  .arced-tt button { width: 44px !important; height: 44px !important; }
  .burger { width: 44px !important; height: 44px !important; }
  .nav-logo { min-height: 44px; display: flex; align-items: center; }
  .nav-enter, .btn-enter, .nav-cta, .nav-client-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .breadcrumb a, .ht-crumb a { min-width: 44px; justify-content: center; }
  .h-link, .service-link, .prod-link, .link-res { display: inline-flex; align-items: center; min-height: 44px; }
  /* enlaces sueltos de las páginas legales y de la 404 (eran de 19-27 px) */
  .enlaces-legales a.link, main ul li a.link, .legal .link { display: inline-flex; align-items: center; min-height: 44px; }
  .enlaces-legales { gap: 0 18px; }
  /* acceso.html */
  .top a.logo, .madre { display: inline-flex; align-items: center; min-height: 44px; }
  /* mascota Arbot: sus estilos cargan después, hace falta más especificidad */
  html .rm-bubble .rm-bubble-opt { min-height: 44px; }
  html .robot-mascot .rm-hit { min-width: 44px; min-height: 44px; }
  /* tarjetas "pack" de Max Call y deslizadores de la calculadora */
  .pack-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .crow input[type="range"] { box-sizing: content-box; padding: 19px 0; margin: 0; background-clip: content-box; }
  .seg button, .toggle .seg button { min-height: 44px; }
  .lf-check { min-height: 44px; display: flex; align-items: center; }
  .breadcrumb a, .ht-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .quicknav a, .nums a, .ubi-right a, .cc a, .madre { display: inline-flex; align-items: center; min-height: 44px; }
  .chip:not(span), button.chip, .funnel-toggle, .replay, .vert-tab { min-height: 44px; }
  .mobile-menu a, .mobile-menu button.mm-link { min-height: 48px; display: flex; align-items: center; }
  .btn.btn-ghost, .btn.btn-primary { min-height: 44px; }
  html[data-theme] .site-foot .foot-col a, html[data-theme] .site-foot .foot-legal-links a,
  .footer-col a, .footer-legal a, .footer-bottom a, .foot-legal a, .pie a, footer .legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .pie a { min-height: 44px; }
}

/* ===== 07/10/2026 · CABECERA MOVIL: que quepa SIEMPRE el boton de menu (iPhone SE 320 px) ===== */
@media (max-width: 420px) {
  .nav > .wrap, .nav > .nav-in { gap: 6px !important; padding: 8px 6px 8px 12px !important; min-width: 0; }
  .nav .nav-right, .nav .nav-actions { gap: 4px !important; min-width: 0; flex-shrink: 0; }
  .nav .burger { flex-shrink: 0 !important; }
  html .nav .arced-tt { padding: 2px !important; }
  html .nav .arced-tt button { width: 28px !important; height: 28px !important; min-height: 0 !important; }
  .nav .nav-enter, .nav .btn-enter, .nav .nav-cta, .nav .nav-client-link { padding-left: 10px !important; padding-right: 10px !important; }
  .nav .nav-logo { min-width: 0; flex-shrink: 1; }
  .nav .nav-name, .nav .nav-logo b { font-size: 12px !important; white-space: normal !important; line-height: 1.1 !important; }
}

/* El menu movil abierto va por ENCIMA del aviso de cookies (antes el aviso tapaba los enlaces de abajo en la primera visita) */
.mobile-menu { z-index: 2147483250 !important; }

/* Botones largos de la portada: que se partan en dos lineas en vez de salirse de la pantalla (320 px) */
@media (max-width: 420px) {
  .h-btn { white-space: normal !important; max-width: 100%; text-align: center; box-sizing: border-box; }
}
