/* AGMIDTEC V08.32 — Pulido movil de Inicio y Proyectos
   Scope: layout/typography only; preserves CMS, auth, private links and mail. */
.mobile-swipe-note.ag-v0832-swipe{display:none}
.ag-pain-kicker-v0832{
  display:block;text-align:center;font-weight:800;letter-spacing:.13em;
  text-transform:uppercase;color:#4f7760;font-size:10px;margin:0 0 15px;
}
@media (max-width:820px){
  html{scroll-padding-top:80px}
  #soluciones,#proyectos,#empresa,#proyectos-listado{scroll-margin-top:84px}
  .section-heading h2,.section-row h2,.faq-home-copy h2,
  .hero-refined .hero-copy h1{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  .section-heading,.section-row{min-width:0}
  .section-heading h2,.section-row h2{text-wrap:balance}
  .section{padding-top:40px!important;padding-bottom:40px!important}
  .section .section-heading{margin-bottom:19px!important}
  .pain-section .before-after-grid{
    display:flex!important;grid-template-columns:none!important;
    gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x mandatory;scroll-padding-inline:16px;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;padding:5px 18px 14px 1px!important;
    margin-right:-16px!important;
  }
  .pain-section .before-after-grid::-webkit-scrollbar,
  .real-project-grid::-webkit-scrollbar,
  .project-grid.projects-page::-webkit-scrollbar{display:none}
  .pain-section .before-after-card{
    display:flex!important;flex-direction:column!important;
    flex:0 0 min(85vw,350px)!important;width:min(85vw,350px)!important;
    scroll-snap-align:start;box-sizing:border-box;border-radius:18px!important;
  }
  .pain-section .before-after-card .before,
  .pain-section .before-after-card .after{min-height:0!important;padding:20px 19px!important}
  .pain-section .before-after-card .before{flex:1;min-height:178px!important}
  .pain-section .before-after-card .after{flex:1;min-height:178px!important}
  .pain-section .before-after-card .before h3,
  .pain-section .before-after-card .after h3{font-size:clamp(18px,4.7vw,21px)!important;line-height:1.21!important;letter-spacing:-.025em}
  .pain-section .before-after-card .before p,
  .pain-section .before-after-card .after p{font-size:12px!important;line-height:1.55!important}
  .pain-section .before-after-card .transition-arrow{
    flex:0 0 28px;height:28px!important;display:grid;place-items:center;
  }
  .mobile-swipe-note.ag-v0832-swipe{display:flex;align-items:center;justify-content:center;gap:8px;
    margin:0 0 9px;color:#628477;font-size:11px;font-weight:700;letter-spacing:.01em}
  .mobile-swipe-note.ag-v0832-swipe span{font-size:18px;line-height:1;color:#3c915c}
  .real-projects-section .real-project-grid{
    display:flex!important;grid-template-columns:none!important;
    overflow-x:auto!important;overflow-y:hidden!important;gap:12px!important;
    scroll-snap-type:x mandatory;scroll-padding-inline:14px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
    padding:4px 17px 14px 1px;margin-right:-16px;
  }
  .real-projects-section .real-project-grid .real-project-card{
    flex:0 0 min(82vw,345px)!important;width:min(82vw,345px)!important;
    min-height:285px!important;height:315px!important;scroll-snap-align:start;
  }
  .real-projects-section .real-project-grid .real-project-card img{object-fit:cover!important;object-position:center 34%!important}
  .project-area-filters{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:5px!important}
  .project-area-filters button{flex:0 0 auto!important;white-space:nowrap}
  .project-grid.projects-page.real-projects-page{
    display:flex!important;grid-template-columns:none!important;
    overflow-x:auto!important;overflow-y:hidden!important;gap:12px!important;
    scroll-snap-type:x mandatory;scroll-padding-inline:12px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
    padding:2px 18px 16px 1px!important;margin-right:-16px!important;
  }
  .project-grid.projects-page.real-projects-page .project-tile{
    flex:0 0 min(84vw,350px)!important;width:min(84vw,350px)!important;
    scroll-snap-align:start;max-width:none!important;min-width:0;
  }
  .project-grid.projects-page .tile-image{height:225px!important;overflow:hidden}
  .project-grid.projects-page .tile-image img{height:100%!important;width:100%!important;object-fit:cover!important;object-position:center 35%!important}
  .project-grid.projects-page .tile-body{padding:17px!important}
  .project-grid.projects-page .tile-body h3{line-height:1.22!important}
}
@media (max-width:700px){
  .hero-refined.hero-home{padding-top:0!important;min-height:calc(100svh - 66px)!important;min-height:calc(100dvh - 66px)!important;overflow:hidden}
  .hero-refined.hero-home .hero-photo{
    inset:0!important;height:100%!important;min-height:100%!important;
    background-position:center 43%!important;
  }
  .hero-refined.hero-home .hero-photo .hero-photo-img{
    width:100%!important;height:100%!important;object-fit:cover!important;
    object-position:center 42%!important;
  }
  .hero-refined.hero-home .hero-overlay{
    inset:0!important;background:linear-gradient(180deg,rgba(6,22,20,.11) 0%,
      rgba(6,22,20,.25) 24%,rgba(5,20,19,.70) 48%,
      rgba(5,20,19,.96) 77%,#071a17 100%)!important;
  }
  .hero-refined.hero-home .hero-grid{min-height:calc(100svh - 66px)!important;
    min-height:calc(100dvh - 66px)!important;display:flex!important;
    align-items:flex-end!important;box-sizing:border-box}
  .hero-refined.hero-home .hero-copy{
    min-width:0;width:100%;max-width:100%;margin:0!important;
    padding:clamp(125px,21svh,200px) 0 19px!important;
  }
  .hero-refined.hero-home .hero-copy h1{
    font-size:clamp(28px,8vw,38px)!important;line-height:1.045!important;
    letter-spacing:-.047em!important;max-width:100%!important;
    word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
    text-wrap:balance;
  }
  .hero-refined.hero-home .hero-copy h1 .hero-rotator{
    width:100%;max-width:100%;min-height:0;overflow:visible;
  }
  .hero-refined.hero-home .hero-copy h1 .hero-rotator em{
    font-size:inherit;white-space:normal;overflow-wrap:normal;word-break:normal;
  }
  .hero-refined.hero-home .hero-copy>.eyebrow{margin-bottom:9px!important;font-size:9px!important;line-height:1.3!important}
  .hero-refined.hero-home .hero-lead{margin:10px 0 13px!important;font-size:12px!important;line-height:1.42!important}
  .hero-refined.hero-home .hero-actions{gap:7px!important;margin-top:6px!important}
  .hero-refined.hero-home .hero-actions .btn{min-height:39px!important;padding:9px 12px!important;font-size:11px!important}
  .hero-refined.hero-home .hero-points{margin-top:11px!important;gap:12px!important;font-size:9px!important;scrollbar-width:none}
  .hero-refined.hero-home .hero-points>*{flex:0 0 auto}
  .hero-refined.hero-home .hero-stamp{display:none!important}
  .proof-section .proof-stats{margin-top:0!important;gap:0!important}
  .proof-section .proof-stats article{min-height:69px!important;padding:12px!important}
  .proof-section .proof-stats strong{font-size:22px!important}
}
@media (max-width:700px) and (max-height:720px){
  .hero-refined.hero-home .hero-copy{padding-top:92px!important;padding-bottom:10px!important}
  .hero-refined.hero-home .hero-copy h1{font-size:clamp(27px,7.7vw,34px)!important}
  .hero-refined.hero-home .hero-lead{font-size:11.5px!important}
  .hero-refined.hero-home .hero-actions .btn{min-height:36px!important;padding:7px 10px!important}
}
@media (max-width:360px){
  .hero-refined.hero-home .hero-copy h1{font-size:clamp(26px,7.7vw,30px)!important}
  .hero-refined.hero-home .hero-points{font-size:8px!important}
}
@media (prefers-reduced-motion:reduce){
  .pain-section .before-after-grid,.real-project-grid,.project-grid.projects-page{scroll-behavior:auto!important}
}
