:root{
  --upfim-primary:#0f5132;
  --upfim-green:#5f8f2f;
  --upfim-blue:#063f86;
  --upfim-blue-2:#0b5db8;
  --upfim-dark:#06192e;
  --upfim-gold:#c9902b;
  --upfim-brown:#3b2a1f;
  --upfim-soft:#f4f7fb;
  --upfim-border:#dbe4ef;
  --upfim-text:#1d2b3a;
  --gob-wine:#520f1d;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--upfim-text);
  background:#fff;
}

a{ color:inherit; }

.sgc-hero{
  min-height:430px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(110deg, rgba(6,25,46,.88), rgba(6,63,134,.74), rgba(15,81,50,.56)),
    url("../img/fondo-institucion.jpg");
  background-size:cover;
  background-position:center;
}

.sgc-hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.25));
}

.sgc-hero__content{ margin-top:3rem; }

.sgc-brand{
  display:inline-flex;
  align-items:center;
  gap:.8rem;
  padding:.55rem 1rem;
  background:rgba(255,255,255,.94);
  color:var(--upfim-dark);
  border-radius:999px;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  font-weight:800;
  text-decoration:none;
}

.sgc-brand img{
  width:48px;
  height:48px;
  object-fit:contain;
}

.sgc-hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -72px -10%;
  height:145px;
  background:rgba(255,255,255,.12);
  transform:skewY(-4deg);
}

.sgc-line-title{
  width:fit-content;
  position:relative;
  padding:0 4.5rem;
  font-size:1.9rem;
  font-weight:800;
}

.sgc-line-title::before,
.sgc-line-title::after{
  content:"";
  width:3.5rem;
  height:2px;
  background:rgba(255,255,255,.75);
  position:absolute;
  top:50%;
}

.sgc-line-title::before{ left:0; }
.sgc-line-title::after{ right:0; }

.section-white{ background:#fff; }
.section-soft{ background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%); }

.section-title{
  color:var(--upfim-blue);
  font-size:1.75rem;
  font-weight:800;
  position:relative;
  padding-bottom:.9rem;
}

.section-title::after{
  content:"";
  width:min(100%, 560px);
  max-width:560px;
  height:2px;
  background:linear-gradient(90deg,var(--upfim-gold),var(--upfim-green),transparent);
  position:absolute;
  left:0;
  bottom:0;
}

.sgc-checklist{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:.8rem;
}

.sgc-checklist li{
  font-weight:650;
  color:#26415f;
}

.sgc-checklist li::before{
  content:"\F26E";
  font-family:"bootstrap-icons";
  color:var(--upfim-primary);
  margin-right:.65rem;
}

.sgc-pill-card{
  min-height:104px;
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1.1rem 1.35rem;
  background:#fff;
  border:1px solid var(--upfim-border);
  border-radius:.65rem;
  box-shadow:0 12px 28px rgba(6,25,46,.11);
  position:relative;
  overflow:hidden;
  text-decoration:none;
  transition:.25s ease;
}

.sgc-pill-card:hover{
  transform:translateY(-4px);
  border-color:rgba(15,81,50,.35);
  box-shadow:0 18px 34px rgba(6,25,46,.16);
}

.sgc-pill-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background:linear-gradient(180deg,var(--upfim-gold),var(--upfim-green),var(--upfim-blue));
}

.sgc-pill-card::after{
  content:"";
  position:absolute;
  right:24px;
  width:70px;
  height:70px;
  border-radius:50%;
  background:rgba(6,63,134,.07);
}

.sgc-pill-card i{
  font-size:2.25rem;
  color:var(--upfim-blue);
  z-index:1;
}

.sgc-pill-card span{
  color:var(--upfim-blue);
  font-weight:800;
  z-index:1;
}

.objective-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--upfim-border);
  border-radius:.45rem;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(6,25,46,.10);
  border-bottom:6px solid var(--upfim-green);
  transition:.25s ease;
}

.objective-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 34px rgba(6,25,46,.16);
}

.objective-card h3{
  min-height:76px;
  margin:0;
  padding:1rem;
  color:#fff;
  background:linear-gradient(135deg,var(--upfim-blue),var(--upfim-dark));
  font-size:1rem;
  font-weight:800;
}

.objective-card i{
  display:block;
  padding:1.5rem 1rem .75rem;
  color:var(--upfim-blue);
  font-size:3.2rem;
  text-align:center;
}

.objective-card p{
  min-height:70px;
  padding:0 1rem 1.25rem;
  margin:0;
  text-align:center;
  color:#415369;
  font-size:.94rem;
}

.section-waves{
  position:relative;
  overflow:hidden;
}

.section-waves::after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-75px;
  height:160px;
  background:linear-gradient(135deg,rgba(6,63,134,.14),rgba(15,81,50,.05));
  transform:skewY(-5deg);
}

.pdca-circle{
  width:260px;
  height:260px;
  border-radius:50%;
  position:relative;
  background:conic-gradient(from -45deg, #0b5db8 0 25%, #063f86 25% 50%, #5f8f2f 50% 75%, #c9902b 75% 100%);
  box-shadow:0 18px 34px rgba(6,25,46,.18);
  border:8px solid #fff;
}

.pdca-center{
  text-decoration:none;
  width:110px;
  height:110px;
  border-radius:50%;
  background:#fff;
  color:var(--upfim-blue);
  display:grid;
  place-items:center;
  font-size:2rem;
  font-weight:900;
  position:absolute;
  inset:0;
  margin:auto;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.pdca-item{
  position:absolute;
  color:#fff;
  font-weight:800;
  font-size:.85rem;
  text-decoration:none;
  text-shadow:0 2px 8px rgba(0,0,0,.25);
}

.pdca-item:hover,
.pdca-center:hover{ transform:scale(1.04); }

.pdca-planear{ top:42px; left:55px; }
.pdca-hacer{ top:80px; right:32px; }
.pdca-verificar{ bottom:48px; right:38px; }
.pdca-actuar{ bottom:72px; left:32px; }

.document-card{
  display:flex;
  gap:1.25rem;
  align-items:flex-start;
  padding:1.6rem;
  background:#fff;
  border:1px solid var(--upfim-border);
  border-radius:.75rem;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(6,25,46,.10);
  border-left:7px solid var(--upfim-green);
  transition:.25s ease;
}

.document-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 36px rgba(6,25,46,.16);
}

.document-card i{
  color:var(--upfim-blue);
  font-size:2.8rem;
}

.document-card h3{
  color:var(--upfim-blue);
  font-size:1.15rem;
  font-weight:900;
  margin:0 0 .45rem;
}

.document-card p{ margin:0; color:#415369; }

.info-card{
  padding:1.6rem;
  border-radius:.75rem;
  background:#fff;
  border:1px solid var(--upfim-border);
  box-shadow:0 10px 26px rgba(6,25,46,.08);
  border-top:5px solid var(--upfim-gold);
}

.info-card h2{
  color:var(--upfim-blue);
  font-size:1.35rem;
  font-weight:900;
  margin-bottom:.9rem;
}

.info-card p{
  color:#415369;
  margin:0;
  line-height:1.7;
}

.sgc-footer{
  color:#fff;
  background:linear-gradient(135deg,var(--upfim-dark),var(--upfim-blue));
  font-weight:600;
  border-bottom:8px solid var(--upfim-gold);
}

@media (max-width: 768px){
  .sgc-hero{ min-height:460px; }
  .sgc-brand{ border-radius:1rem; align-items:flex-start; }
  .sgc-brand img{ width:42px; height:42px; }
  .sgc-hero__content{ margin-top:2.2rem; }
  .sgc-line-title{ padding:0; font-size:1.45rem; }
  .sgc-line-title::before,
  .sgc-line-title::after{ display:none; }
  .section-title{ font-size:1.45rem; }
  .pdca-circle{ width:230px; height:230px; }
}

/* Páginas interiores del micrositio SGC */
.sgc-page-hero{
  min-height:360px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(110deg, rgba(6,25,46,.90), rgba(6,63,134,.78), rgba(15,81,50,.58)),
    url("../img/fondo-institucion.jpg");
  background-size:cover;
  background-position:center;
}

.sgc-page-hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -72px -10%;
  height:145px;
  background:rgba(255,255,255,.12);
  transform:skewY(-4deg);
}

.sgc-page-hero__content{ margin-top:3rem; }

.sgc-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.45rem .9rem;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  background:rgba(255,255,255,.13);
  font-weight:700;
}

.sgc-kicker::before{
  content:"";
  width:.65rem;
  height:.65rem;
  border-radius:50%;
  background:var(--upfim-gold);
  box-shadow:14px 0 0 var(--upfim-green), 28px 0 0 var(--upfim-blue);
  margin-right:1.9rem;
}

.sgc-page-hero__icon{
  font-size:8rem;
  color:rgba(255,255,255,.28);
}

.sgc-breadcrumb{
  padding:.85rem 1rem;
  background:#fff;
  border:1px solid var(--upfim-border);
  border-radius:.75rem;
  box-shadow:0 10px 22px rgba(6,25,46,.07);
}

.sgc-breadcrumb a{
  color:var(--upfim-blue);
  font-weight:700;
  text-decoration:none;
}

.sgc-content-card{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:1.5rem;
  padding:2.2rem;
  background:#fff;
  border:1px solid var(--upfim-border);
  border-radius:1rem;
  box-shadow:0 18px 42px rgba(6,25,46,.12);
  border-top:7px solid var(--upfim-gold);
  position:relative;
  overflow:hidden;
}

.sgc-content-card::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-80px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(201,144,43,.12), rgba(95,143,47,.10), rgba(6,63,134,.10));
}

.sgc-content-card__icon{
  width:96px;
  height:96px;
  display:grid;
  place-items:center;
  border-radius:1rem;
  color:#fff;
  background:linear-gradient(135deg,var(--upfim-blue),var(--upfim-primary));
  box-shadow:0 14px 26px rgba(6,63,134,.22);
  position:relative;
  z-index:1;
}

.sgc-content-card__icon i{ font-size:3rem; }

.sgc-content-card h2{
  color:var(--upfim-blue);
  font-size:2rem;
  font-weight:900;
  margin:0 0 1rem;
  position:relative;
  z-index:1;
}

.sgc-content-card p{
  color:#415369;
  font-size:1.13rem;
  line-height:1.85;
  margin:0;
  position:relative;
  z-index:1;
}

.sgc-btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--upfim-blue),var(--upfim-primary));
  border:0;
  border-radius:999px;
  padding:.85rem 1.35rem;
  font-weight:800;
  box-shadow:0 12px 26px rgba(6,25,46,.18);
}

.sgc-btn-primary:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(6,25,46,.22);
}

@media (max-width: 768px){
  .sgc-page-hero{ min-height:390px; }
  .sgc-content-card{
    grid-template-columns:1fr;
    padding:1.5rem;
  }
  .sgc-content-card__icon{
    width:78px;
    height:78px;
  }
  .sgc-content-card__icon i{ font-size:2.35rem; }
  .sgc-content-card h2{ font-size:1.65rem; }
  .sgc-content-card p{ font-size:1rem; }
}
