/* Fortunato Design System 3.1.1
   Escala tipográfica y reglas visuales comunes para el sitio público. */
:root{
  --fy-font-family:"Segoe UI Variable","Aptos","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --fy-font-size-base:16px;
  --fy-text-xs:.75rem;
  --fy-text-sm:.875rem;
  --fy-text-md:1rem;
  --fy-text-lg:1.125rem;
  --fy-title-sm:clamp(1.35rem,2vw,1.75rem);
  --fy-title-md:clamp(2rem,3.8vw,3.25rem);
  --fy-title-lg:clamp(2.65rem,5vw,4.85rem);
  --fy-line-body:1.65;
  --fy-line-heading:1.08;
  --fy-letter-heading:-.032em;
  --fy-radius-sm:4px;
  --fy-radius-md:10px;
  --fy-shadow-card:0 18px 42px rgba(20,15,68,.09);
}
html{font-size:var(--fy-font-size-base)}
body,
body.fy-site,
body.press-page,
body.press-article-page,
body.career-page,
body.legal-public-page,
button,input,select,textarea{
  font-family:var(--fy-font-family)!important;
}
body,body.fy-site,body.press-page,body.press-article-page,body.career-page,body.legal-public-page{font-size:var(--fy-text-md)!important;line-height:var(--fy-line-body)}
h1,h2,h3,h4,h5,h6,
.fy-hero h1,.fy-hero__brief h2,.fy-heading h2,.fy-about h2,.fy-contact h2,
.fy-experience h2,.fy-credentials h2,.fy-service h3,.fy-sectors-intro h3,
.fy-team__body h3,.fy-document-features h3,.fy-experience__stat-card strong,
.press-hero h1,.career-hero h1,.press-article h1,.legal-page h1,
.press-card__body h2,.rich-content h2,.fy-coverage-v2__title{
  font-family:var(--fy-font-family)!important;
  font-synthesis:none;
}
h1,.fy-hero h1,.fy-hero--approved h1,.press-hero h1,.career-hero h1,.press-article h1,.legal-page h1{
  font-size:var(--fy-title-lg);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:760;
}
h2,.fy-heading h2,.fy-about h2,.fy-contact h2,.fy-experience h2,.fy-credentials h2,.fy-documents-copy h2{
  font-size:var(--fy-title-md);
  line-height:var(--fy-line-heading);
  letter-spacing:var(--fy-letter-heading);
  font-weight:740;
}
h3,.fy-service h3,.fy-team__body h3,.fy-document-features h3,.press-card__body h2{
  font-weight:720;
}
.fy-kicker,.eyebrow,.press-article__category{font-size:var(--fy-text-xs);letter-spacing:.12em}
.fy-hero__lead,.fy-lead,.press-hero__content>p:last-child,.legal-page .lead{font-size:var(--fy-text-lg)}
.fy-nav a,.page-nav>a:not(.button),.fy-button,.button{font-size:var(--fy-text-sm)}
.fy-service>p,.fy-service ul,.fy-values p,.fy-team__body>strong,.fy-press span,
.fy-document-features p,.fy-contact__copy>p,.press-card p,.rich-content p,
.rich-content li,.application-form label,.application-guidance p{font-size:var(--fy-text-md)}

/* Ritmo editorial: superficies limpias, líneas firmes y jerarquía corporativa. */
.fy-section{padding-block:clamp(72px,8vw,112px)}
.fy-heading{gap:clamp(28px,6vw,72px);margin-bottom:clamp(30px,4vw,48px)}
.fy-button,.button{border-radius:var(--fy-radius-sm);min-height:48px;font-weight:750}
.fy-service,.fy-press article,.press-card,.application-form,.application-guidance,.legal-page,.press-article__body{
  border-radius:var(--fy-radius-sm)!important;
}
.fy-service:focus-within,.press-card:focus-within{outline:3px solid color-mix(in srgb,var(--fy-accent) 32%,transparent);outline-offset:3px}
.fy-nav a:focus-visible,.page-nav a:focus-visible,.fy-button:focus-visible,.button:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{
  outline:3px solid color-mix(in srgb,var(--fy-accent) 38%,transparent);
  outline-offset:3px;
}

/* Cobertura nacional: estilos trasladados desde la plantilla para mantener HTML semántico. */
.fy-coverage-v2{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);gap:clamp(28px,4vw,44px);align-items:stretch;padding:clamp(28px,4vw,40px);border:1px solid var(--fy-border,#d9e0d7);border-radius:18px;background:#fff;box-shadow:var(--fy-shadow-card);overflow:hidden}
.fy-coverage-v2__copy{display:flex;flex-direction:column;min-width:0}
.fy-coverage-v2__eyebrow{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;margin:0 0 22px;padding:11px 16px;border-radius:8px;background:#eef7ef;color:#2f7d3f;font-weight:750;font-size:var(--fy-text-sm);line-height:1}
.fy-coverage-v2__eyebrow .icon{width:22px;height:22px}
.fy-coverage-v2__title{margin:0;color:var(--fy-primary,#1f175f);font-size:clamp(2.3rem,5vw,4.15rem);line-height:1;letter-spacing:-.04em;max-width:13ch;text-wrap:balance;font-weight:750}
.fy-coverage-v2__title-accent{display:inline-block;background:#dfeedd;padding:.04em .28em .09em;border-radius:7px}
.fy-coverage-v2__rule{width:62px;height:5px;border-radius:999px;background:#44a05b;margin:28px 0 24px}
.fy-coverage-v2__text{max-width:38ch;margin:0;color:#4d5c70;font-size:var(--fy-text-lg);line-height:1.68}
.fy-coverage-v2__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
.fy-coverage-v2__card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:15px;align-items:start;padding:18px;border:1px solid #e5eaed;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.fy-coverage-v2__card-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#e7f3e9;color:#2f7d3f}
.fy-coverage-v2__card-icon .icon{width:28px;height:28px}
.fy-coverage-v2__card-body{padding-left:15px;border-left:1px solid #dfe5e8}
.fy-coverage-v2__card-body h4{margin:0 0 8px;color:var(--fy-primary,#1f175f);font-size:var(--fy-text-md);line-height:1.2}
.fy-coverage-v2__card-body p{margin:0;color:#5d6b7e;font-size:var(--fy-text-sm);line-height:1.55}
.fy-coverage-v2__media{position:relative;min-width:0;display:flex;align-items:stretch;padding:12px 0 0 14px}
.fy-coverage-v2__image-wrap{position:relative;display:flex;align-items:stretch;width:100%;min-height:100%;overflow:hidden;border:1px solid #dfe6ee;border-radius:26px 26px 78px 26px;background:linear-gradient(180deg,#f5f7fb 0%,#e7eef6 100%);box-shadow:0 26px 50px rgba(15,23,42,.12)}
.fy-coverage-v2__image-wrap::before{content:"";position:absolute;inset:-12px 22px 22px -14px;border-radius:32px 32px 88px 32px;background:linear-gradient(135deg,rgba(223,238,237,.95),rgba(206,221,235,.55));z-index:-1}
.fy-coverage-v2__image-wrap::after{content:"";position:absolute;top:18px;left:18px;width:78px;height:78px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.34),rgba(255,255,255,.05));backdrop-filter:blur(1.5px);border:1px solid rgba(255,255,255,.28);pointer-events:none}
.fy-coverage-v2__image{display:block;width:100%;height:100%;min-height:620px;object-fit:cover}
.fy-coverage-v2__badge{position:absolute;left:24px;right:24px;bottom:24px;display:grid;grid-template-columns:58px minmax(0,1fr);gap:15px;align-items:center;padding:17px 18px;border-radius:14px;background:rgba(9,28,91,.96);box-shadow:0 18px 32px rgba(6,18,58,.28);color:#fff}
.fy-coverage-v2__badge-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#edf7ef;color:#2f7d3f}
.fy-coverage-v2__badge-icon .icon{width:28px;height:28px}
.fy-coverage-v2__badge strong{display:block;margin:0 0 4px;font-size:var(--fy-text-md);line-height:1.2}
.fy-coverage-v2__badge p{margin:0;color:rgba(255,255,255,.9);font-size:var(--fy-text-sm);line-height:1.5}

/* Evitar desbordamientos en contenidos administrables. */
.fy-site :where(h1,h2,h3,h4,p,li,a,strong,span),
.press-page :where(h1,h2,h3,h4,p,li,a,strong,span),
.career-page :where(h1,h2,h3,h4,p,li,a,strong,span),
.legal-public-page :where(h1,h2,h3,h4,p,li,a,strong,span){overflow-wrap:anywhere}
.fy-hero h1,.fy-heading h2,.fy-coverage-v2__title{overflow-wrap:normal;word-break:normal;hyphens:none}

@media(max-width:1100px){
  .fy-coverage-v2{grid-template-columns:minmax(0,1fr)}
  .fy-coverage-v2__title,.fy-coverage-v2__text{max-width:none}
  .fy-coverage-v2__image{min-height:480px}
}
@media(max-width:768px){
  :root{--fy-font-size-base:15px}
  .fy-container{width:min(100% - 28px,1180px)}
  .fy-section{padding-block:64px}
  .fy-heading{grid-template-columns:1fr;align-items:start}
  .fy-coverage-v2{padding:20px;border-radius:12px}
  .fy-coverage-v2__eyebrow{padding:10px 13px}
  .fy-coverage-v2__title{font-size:clamp(2.05rem,10vw,3.1rem)}
  .fy-coverage-v2__cards{grid-template-columns:1fr}
  .fy-coverage-v2__media{padding:8px 0 0 8px}
  .fy-coverage-v2__image-wrap{border-radius:20px 20px 48px 20px}
  .fy-coverage-v2__image-wrap::before{inset:-8px 14px 14px -8px;border-radius:24px 24px 54px 24px}
  .fy-coverage-v2__image-wrap::after{top:14px;left:14px;width:60px;height:60px;border-radius:16px}
  .fy-coverage-v2__image{min-height:360px}
  .fy-coverage-v2__badge{left:14px;right:14px;bottom:14px;grid-template-columns:50px minmax(0,1fr);padding:13px 14px}
  .fy-coverage-v2__badge-icon,.fy-coverage-v2__card-icon{width:50px;height:50px}
  .fy-coverage-v2__badge-icon .icon,.fy-coverage-v2__card-icon .icon{width:24px;height:24px}
  .fy-coverage-v2__card{grid-template-columns:50px minmax(0,1fr)}
}
@media(max-width:480px){
  .fy-coverage-v2__media{padding:0}
  .fy-coverage-v2__image-wrap{display:block;border-radius:18px 18px 34px 18px}
  .fy-coverage-v2__image-wrap::before{display:none}
  .fy-coverage-v2__image-wrap::after{top:12px;left:12px;width:48px;height:48px;border-radius:14px}
  .fy-coverage-v2__image{min-height:300px;height:300px}
  .fy-coverage-v2__badge{position:relative;left:auto;right:auto;bottom:auto;width:auto;margin:12px;grid-template-columns:44px minmax(0,1fr);border-radius:10px}
  .fy-coverage-v2__badge-icon{width:44px;height:44px}
}

/* Integración institucional con Mercado Público. */
.fy-procurement-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:28px;
  border:1px solid var(--fy-border,#d9e0d7);
  border-radius:7px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.fy-procurement-card__heading{margin-bottom:18px}
.fy-procurement-card__heading .fy-kicker{margin:0 0 10px;color:var(--fy-accent,#3f8246)}
.fy-procurement-card__heading h3{margin:0;color:var(--fy-primary,#1f175f);font-size:var(--fy-title-sm);line-height:1.12;letter-spacing:-.025em}
.fy-procurement-card__link{display:flex;flex:1;flex-direction:column;min-width:0;color:var(--fy-primary,#1f175f);text-decoration:none}
.fy-procurement-card__media{display:block;overflow:hidden;margin-top:auto;border:1px solid #e1e6ea;border-radius:6px;background:#f4f6f8;aspect-ratio:3/2}
.fy-procurement-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.fy-procurement-card__action{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;font-size:var(--fy-text-sm);font-weight:800}
.fy-procurement-card__link:hover .fy-procurement-card__media img{transform:scale(1.025)}
.fy-procurement-card__link:hover .fy-procurement-card__action{text-decoration:underline;text-underline-offset:4px}
.fy-procurement-card__link:focus-visible{outline:3px solid color-mix(in srgb,var(--fy-accent) 38%,transparent);outline-offset:5px}

/* Dirección interactiva y mapa dentro de la página. */
.fy-address-link,.fy-footer__address{
  display:inline;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  line-height:inherit;
  text-align:left;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
  cursor:pointer;
}
.fy-address-link:hover,.fy-footer__address:hover{color:#fff;text-decoration-thickness:2px}
.fy-footer__address{color:#c5d0d9}
.fy-map-is-open{overflow:hidden}
.fy-map-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  padding:clamp(14px,3vw,34px);
  background:transparent;
  color:var(--fy-ink,#2b2b2e);
}
.fy-map-modal[hidden]{display:none!important}
.fy-map-modal__backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(7,18,30,.76);cursor:pointer}
.fy-map-modal__dialog{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:auto minmax(300px,1fr) auto;
  width:min(1080px,100%);
  max-height:calc(100vh - clamp(28px,6vw,68px));
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.36);
}
.fy-map-modal__header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:22px 24px 18px;border-bottom:1px solid #e3e8eb;background:#fff}
.fy-map-modal__header .fy-kicker{margin:0 0 7px;color:var(--fy-accent,#3f8246)}
.fy-map-modal__header h3{margin:0;color:var(--fy-primary-deep,#120d36);font-size:var(--fy-title-sm);line-height:1.12}
.fy-map-modal__header p:not(.fy-kicker){margin:7px 0 0;color:#586775;font-size:var(--fy-text-sm)}
.fy-map-modal__close{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:1px solid #d7dde1;border-radius:50%;background:#fff;color:var(--fy-primary-deep,#120d36);font-size:1.8rem;line-height:1;cursor:pointer}
.fy-map-modal__close:hover{border-color:var(--fy-accent,#3f8246);background:#f3f8f3}
.fy-map-modal__frame{min-height:0;background:#e3e8eb}
.fy-map-modal__frame iframe{display:block;width:100%;height:min(58vh,610px);min-height:360px;border:0;background:#e3e8eb}
.fy-map-modal__footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:15px 24px;border-top:1px solid #e3e8eb;background:#f8faf9;color:#5a6874;font-size:var(--fy-text-sm)}
.fy-map-modal__footer a{color:var(--fy-primary,#1f175f);font-weight:800;text-decoration:none}
.fy-map-modal__footer a:hover{text-decoration:underline;text-underline-offset:4px}

@media(max-width:1200px){
  .fy-experience__layout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fy-experience__copy{grid-column:1/-1;max-width:900px}
  .fy-procurement-card,.fy-experience__stat-card{min-height:100%}
}
@media(max-width:900px){
  .fy-experience__layout{grid-template-columns:minmax(0,1fr)}
  .fy-experience__copy{grid-column:auto}
}
@media(max-width:600px){
  .fy-procurement-card{padding:22px}
  .fy-map-modal{padding:10px}
  .fy-map-modal__dialog{max-height:calc(100vh - 20px);border-radius:8px;grid-template-rows:auto minmax(260px,1fr) auto}
  .fy-map-modal__header{padding:18px;gap:14px}
  .fy-map-modal__frame iframe{height:54vh;min-height:300px}
  .fy-map-modal__footer{display:grid;padding:14px 18px}
}
@media(prefers-reduced-motion:reduce){
  .fy-procurement-card__media img{transition:none}
}
.fy-procurement-card__text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;margin:12px 0 0;color:#596775;font-size:var(--fy-text-sm);line-height:1.55}
