/* =====================================================================
   TSG — páginas institucionales: certificaciones internas y quiénes somos
   ===================================================================== */

.institutional-page{
  background:#f5f5f5;
  color:#232323;
}

.inner-hero{
  min-height:560px;
  display:flex;
  align-items:center;
  padding:calc(var(--header-h) + 84px) 0 92px;
  background:#111;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.74) 43%, rgba(0,0,0,.35) 100%),
    var(--page-hero-img);
  background-size:cover;
  background-position:center;
  border-bottom:4px solid var(--red);
}
.inner-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}
.inner-hero--cert{ --page-hero-img:url('../images/capacitacion1.png'); }
.inner-hero--ec0301{ --page-hero-img:url('../images/capacitacion2.png'); }
.inner-hero--ec0076{ --page-hero-img:url('../images/capacitacion3.png'); }
.inner-hero--about{ --page-hero-img:url('../images/tsg-team-clean.png'); background-position:center 38%; }

.inner-hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:56px;
  align-items:end;
}
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:rgba(255,255,255,.72);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:24px;
}
.breadcrumb a{ color:#fff; }
.breadcrumb a:hover{ color:var(--red); }
.inner-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  background:rgba(226,28,33,.16);
  border:1px solid rgba(226,28,33,.5);
  padding:8px 12px;
  border-radius:999px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:22px;
}
.inner-eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 6px rgba(226,28,33,.14);
}
.inner-hero h1{
  color:#fff;
  max-width:860px;
  font-size:clamp(40px, 5.2vw, 72px);
  line-height:.98;
  margin-bottom:22px;
}
.inner-hero h1 em{
  color:var(--red);
  font-style:normal;
}
.inner-hero p{
  color:rgba(255,255,255,.82);
  max-width:780px;
  font-size:clamp(15px, 1.4vw, 18px);
  line-height:1.75;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}
.hero-summary-card{
  background:rgba(255,255,255,.95);
  border-top:4px solid var(--red);
  border-radius:12px;
  padding:28px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.hero-summary-card img{
  width:76px;
  height:auto;
  margin-bottom:20px;
}
.hero-summary-card h2{
  font-size:24px;
  margin-bottom:12px;
  color:#111;
}
.hero-summary-card p{
  color:#555;
  font-size:14px;
  line-height:1.7;
}
.hero-chip-list{
  list-style:none;
  display:grid;
  gap:10px;
  margin-top:18px;
}
.hero-chip-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#333;
  font-size:13px;
  font-weight:600;
}
.hero-chip-list li::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--red);
  margin-top:7px;
  flex:0 0 auto;
}

.institution-section{
  padding:clamp(64px, 8vw, 96px) 0;
  background:#f7f7f7;
}
.institution-section--white{ background:#fff; }
.institution-section--dark{
  background:#151515;
  color:#fff;
}
.institution-section--dark h2,
.institution-section--dark h3{ color:#fff; }
.institution-section--dark p{ color:rgba(255,255,255,.72); }
.institution-head{
  display:grid;
  grid-template-columns:minmax(0, 460px) minmax(0, 1fr);
  gap:56px;
  align-items:end;
  margin-bottom:38px;
}
.institution-head h2{ margin-top:12px; }
.institution-head p{
  color:#5a5a5a;
  line-height:1.8;
  max-width:720px;
}
.institution-section--dark .institution-head p{ color:rgba(255,255,255,.68); }

.detail-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 380px;
  gap:36px;
  align-items:start;
}
.content-panel,
.side-panel,
.value-card,
.process-card,
.benefit-card,
.about-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  box-shadow:0 16px 44px rgba(0,0,0,.06);
}
.content-panel{ padding:34px; }
.content-panel + .content-panel{ margin-top:22px; }
.content-panel h2,
.side-panel h2{
  font-size:clamp(26px, 3vw, 38px);
  margin-bottom:16px;
}
.content-panel h3{
  font-family:var(--body);
  font-size:15px;
  line-height:1.45;
  text-transform:none;
  letter-spacing:0;
  color:#111;
  margin:24px 0 10px;
  font-weight:700;
}
.content-panel p,
.side-panel p{
  color:#555;
  line-height:1.85;
  margin-bottom:14px;
}
.check-list{
  list-style:none;
  display:grid;
  gap:12px;
  margin:18px 0 4px;
}
.check-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:#404040;
  line-height:1.65;
}
.check-list li::before{
  content:"✓";
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:50%;
  background:rgba(226,28,33,.1);
  color:var(--red);
  font-weight:800;
  font-size:12px;
  margin-top:2px;
}
.benefit-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}
.benefit-card{
  padding:24px;
  min-height:180px;
}
.benefit-card span,
.process-card span,
.value-card span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  border-radius:50%;
  background:#111;
  color:#fff;
  font-family:var(--mono);
  font-size:12px;
  margin-bottom:16px;
}
.benefit-card h3,
.process-card h3,
.value-card h3,
.about-card h3{
  font-size:21px;
  margin-bottom:10px;
}
.benefit-card p,
.process-card p,
.value-card p,
.about-card p{
  color:#5a5a5a;
  font-size:14px;
  line-height:1.72;
}
.process-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}
.process-card{
  padding:24px;
  border-top:3px solid var(--red);
}
.side-panel{
  padding:26px;
  position:sticky;
  top:98px;
}
.side-panel figure{
  margin:-26px -26px 24px;
  overflow:hidden;
  border-radius:14px 14px 0 0;
}
.side-panel figure img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.quick-facts{
  list-style:none;
  display:grid;
  gap:12px;
  margin:22px 0;
}
.quick-facts li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #eee;
  padding-bottom:10px;
  color:#555;
  font-size:13px;
}
.quick-facts strong{ color:#111; }
.cta-band{
  background:#111;
  color:#fff;
  border-radius:18px;
  padding:clamp(32px, 5vw, 54px);
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:24px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.cta-band::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 90% 20%, rgba(226,28,33,.32), transparent 36%);
  pointer-events:none;
}
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ color:#fff; font-size:clamp(30px, 4vw, 50px); }
.cta-band p{ color:rgba(255,255,255,.72); max-width:760px; margin-top:12px; line-height:1.75; }

.about-intro-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
  gap:34px;
  align-items:center;
}
.about-card{ padding:32px; }
.about-card--dark{
  background:#151515;
  border-color:#151515;
}
.about-card--dark h2,
.about-card--dark h3{ color:#fff; }
.about-card--dark p{ color:rgba(255,255,255,.72); }
.about-media{
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 22px 60px rgba(0,0,0,.16);
  border:1px solid #e4e4e4;
}
.about-media img{
  width:100%;
  aspect-ratio:5/4;
  object-fit:cover;
}
.metrics-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top:26px;
}
.metric-card{
  background:#fff;
  border:1px solid #e8e8e8;
  padding:24px;
  border-radius:12px;
}
.metric-card strong{
  display:block;
  font-family:var(--display);
  font-size:36px;
  line-height:1;
  color:var(--red);
  margin-bottom:8px;
}
.metric-card span{
  color:#555;
  font-size:13px;
  font-weight:600;
}
.values-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}
.value-card{
  padding:26px;
  border-left:4px solid var(--red);
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}
.sector-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.sector-tags span{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  border-radius:999px;
  padding:10px 13px;
  font-size:13px;
  font-weight:600;
}

.btn-light-outline{
  border:1px solid rgba(255,255,255,.45);
  color:#fff;
  background:transparent;
}
.btn-light-outline:hover{
  border-color:#fff;
  background:rgba(255,255,255,.08);
}

@media (max-width: 1024px){
  .inner-hero-grid,
  .detail-grid,
  .about-intro-grid,
  .institution-head{
    grid-template-columns:1fr;
  }
  .hero-summary-card{ max-width:520px; }
  .side-panel{ position:relative; top:auto; }
  .benefit-grid,
  .work-grid,
  .values-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .process-grid,
  .metrics-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .inner-hero{
    min-height:auto;
    padding:calc(var(--header-h) + 54px) 0 64px;
  }
  .inner-hero-grid{ gap:32px; }
  .breadcrumb{ font-size:10px; }
  .hero-summary-card,
  .content-panel,
  .side-panel,
  .about-card{ padding:22px; }
  .side-panel figure{ margin:-22px -22px 20px; }
  .benefit-grid,
  .process-grid,
  .metrics-grid,
  .values-grid,
  .work-grid{ grid-template-columns:1fr; }
  .cta-band{ grid-template-columns:1fr; }
  .hero-actions .btn,
  .cta-band .btn{ width:100%; justify-content:center; }
}
.text-red{ color:var(--red); }
