/* AGMIDTEC V08.33 — Corrección quirúrgica de portada, soluciones y navegación móvil.
   CSS posterior a site.css: no alterar admin, CMS, enlace privado ni sesiones. */
.ag-service-title-action-v0833{
  all:unset;display:block;width:100%;color:inherit;font:inherit;line-height:inherit;
  letter-spacing:inherit;text-align:inherit;cursor:pointer;
}
.ag-service-title-action-v0833:hover{color:#128247}
.ag-service-title-action-v0833:focus-visible,
.ag-showcase-option-v0811:focus-visible{outline:3px solid #20b65f;outline-offset:4px;border-radius:5px}
/* Compatibilidad con tarjetas y contenidos variables desde CMS. */
.agmidtec-softdark .ag-showcase-layout-v0811,
.agmidtec-softdark .ag-showcase-feature-v0811,
.agmidtec-softdark .ag-showcase-side-v0811,
.agmidtec-softdark .ag-showcase-list-v0811,
.agmidtec-softdark .ag-showcase-option-v0811,
.agmidtec-softdark .ag-showcase-option-copy-v0811{min-width:0;box-sizing:border-box}
.agmidtec-softdark .ag-showcase-option-copy-v0811 strong,
.agmidtec-softdark .ag-showcase-option-copy-v0811 small{
  overflow-wrap:break-word;word-break:normal;hyphens:auto;
}
/* Hero desktop/tablet: fotografía real al lado derecho y copia superpuesta con contraste. */
@media (min-width:821px){
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-photo,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-photo{
    display:block!important;position:absolute!important;inset:76px 0 0 38%!important;
    height:auto!important;min-height:0!important;width:auto!important;opacity:1!important;
    overflow:hidden!important;z-index:0!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-photo-img,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-photo-img{
    width:100%!important;height:100%!important;object-fit:cover!important;
    object-position:51% 45%!important;opacity:1!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-overlay,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-overlay{
    position:absolute!important;inset:0!important;z-index:1!important;
    background:linear-gradient(90deg,#081914 0%,rgba(8,25,20,.98) 24%,rgba(8,25,20,.88) 40%,rgba(8,25,20,.27) 66%,rgba(8,25,20,.02) 100%)!important;
  }
}
@media(max-width:820px){
  /* La versión anterior imponía altura de pantalla y cubría el área de foto. */
  .agmidtec-softdark.page-inicio .hero-refined.hero-home,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa{
    display:flex!important;flex-direction:column!important;min-height:0!important;
    height:auto!important;padding:66px 0 0!important;overflow:hidden!important;
    background:#081914!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-photo,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-photo{
    display:block!important;position:relative!important;inset:auto!important;
    height:clamp(278px,76vw,430px)!important;width:100%!important;min-height:0!important;
    max-height:none!important;flex:0 0 auto!important;z-index:0!important;
    overflow:hidden!important;opacity:1!important;transform:none!important;
    background:none!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-photo-img,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-photo-img{
    display:block!important;width:100%!important;height:100%!important;
    object-fit:cover!important;object-position:center 43%!important;
    filter:none!important;opacity:1!important;transform:none!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-overlay,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-overlay{
    display:block!important;position:absolute!important;inset:66px 0 0!important;
    z-index:1!important;pointer-events:none!important;
    background:linear-gradient(180deg,rgba(8,25,20,.02) 0%,rgba(8,25,20,.09) 20%,rgba(8,25,20,.42) 36%,rgba(8,25,20,.94) 58%,#081914 77%,#081914 100%)!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-grid,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-grid{
    display:block!important;position:relative!important;z-index:2!important;
    min-height:0!important;max-height:none!important;height:auto!important;
    margin-top:-84px!important;align-items:initial!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-copy,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-copy{
    display:block!important;position:relative!important;max-width:100%!important;
    width:100%!important;margin:0!important;min-width:0!important;
    padding:0 0 32px!important;transform:none!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-copy h1,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-copy h1{
    font-size:clamp(36px,9.3vw,48px)!important;line-height:1.055!important;
    max-width:100%!important;letter-spacing:-.048em!important;
    overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-copy h1 .hero-rotator,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-copy h1 .hero-rotator{max-width:100%;width:100%;overflow:visible!important;white-space:normal!important}
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-copy .eyebrow,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-copy .eyebrow{font-size:11px!important;line-height:1.4!important;letter-spacing:.13em!important;margin:0 0 12px!important}
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-lead,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-lead{
    max-width:100%!important;font-size:clamp(15px,3.6vw,17px)!important;
    line-height:1.52!important;margin:15px 0 19px!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-actions .btn,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-actions .btn{
    min-height:49px!important;font-size:13px!important;padding:11px 15px!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-points,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-points{
    margin-top:16px!important;padding:3px 0 6px;gap:12px!important;overflow-x:auto!important;
    overflow-y:hidden!important;scrollbar-width:none!important;
    white-space:nowrap!important;display:flex!important;flex-wrap:nowrap!important;
    font-size:10px!important;
  }
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-points>* ,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-points>*{
    flex:0 0 auto!important;max-width:none!important;white-space:nowrap!important;
  }
  /* Pase a carrusel lateral las etapas largas de Solución ejecutada. */
  .agmidtec-softdark .process-section .process-grid,
  .agmidtec-softdark .process-section-services .process-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!important;overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch;padding:5px 14px 18px 2px!important;
    margin-right:-14px!important;scrollbar-width:none!important;
  }
  .agmidtec-softdark .process-section .process-grid::-webkit-scrollbar{display:none}
  .agmidtec-softdark .process-section .process-grid article,
  .agmidtec-softdark .process-section-services .process-grid article{
    flex:0 0 min(79vw,330px)!important;width:min(79vw,330px)!important;
    min-width:0!important;scroll-snap-align:start!important;align-self:stretch!important;
    min-height:210px!important;max-height:none!important;
    margin:0!important;padding:20px 19px!important;
    border:1px solid #dce6df!important;border-radius:19px!important;
  }
  .agmidtec-softdark .process-section .process-grid article h3{
    font-size:21px!important;line-height:1.22!important;margin:7px 0 9px!important;
  }
  .agmidtec-softdark .process-section .process-grid article p{
    font-size:14px!important;line-height:1.5!important;overflow-wrap:break-word!important;
  }
  .agmidtec-softdark .process-section .process-grid article i{margin:0 0 12px!important}
  /* Corregir desbordes en las opciones de soluciones y facilitar su interacción. */
  .agmidtec-softdark.page-inicio .ag-showcase-side-v0811{padding:13px 10px!important;min-height:0!important;overflow:hidden!important}
  .agmidtec-softdark.page-inicio .ag-showcase-list-v0811{
    display:flex!important;flex-direction:column!important;gap:9px!important;
    max-height:min(57svh,430px)!important;overflow-y:auto!important;overflow-x:hidden!important;
    min-height:0!important;padding:2px 4px 12px!important;overscroll-behavior-y:contain!important;
  }
  .agmidtec-softdark.page-inicio .ag-showcase-option-v0811{
    display:grid!important;grid-template-columns:24px minmax(0,1fr) 30px!important;
    min-height:91px!important;height:auto!important;flex:0 0 auto!important;
    align-items:start!important;padding:13px 10px!important;gap:8px!important;
  }
  .agmidtec-softdark.page-inicio .ag-showcase-option-copy-v0811{min-width:0!important;overflow:hidden!important}
  .agmidtec-softdark.page-inicio .ag-showcase-option-copy-v0811 strong{
    display:block!important;font-size:13px!important;line-height:1.32!important;
    white-space:normal!important;max-width:100%!important;overflow-wrap:break-word!important;
  }
  .agmidtec-softdark.page-inicio .ag-showcase-option-copy-v0811 small{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;overflow:hidden!important;
    white-space:normal!important;font-size:11px!important;line-height:1.42!important;
    max-width:100%!important;overflow-wrap:break-word!important;
  }
  .agmidtec-softdark.page-inicio .ag-showcase-option-arrow-v0811{align-self:center!important}
  .agmidtec-softdark.page-inicio .ag-showcase-side-footer-v0811{padding:10px 3px 2px!important}
  .agmidtec-softdark.page-inicio .ag-showcase-photo-v0811{scroll-margin-top:80px!important}
}
@media(max-width:420px){
  .agmidtec-softdark.page-inicio .hero-refined.hero-home .hero-copy h1,
  .agmidtec-softdark.page-empresa .hero-refined.hero-empresa .hero-copy h1{
    font-size:clamp(34px,9.1vw,40px)!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .agmidtec-softdark .process-grid{scroll-behavior:auto!important}
}
