/* Electric Control — unified access for Minerva portals. */
body.ec-portals-editorial {
  --portal-navy: #0f1c2e;
  --portal-green: #7dbf2a;
  --portal-line: #cfd4d9;
  color: var(--portal-navy);
  background: #fff;
  font-family: "Montserrat", "Open Sans", system-ui, sans-serif;
}
body.ec-portals-editorial .ec-portales-hero {
  display: flex;
  align-items: flex-end;
  min-height: min(720px,78svh);
  padding: clamp(170px,19vh,220px) max(48px,calc((100vw - 1440px)/2)) clamp(78px,9vw,116px);
  text-align: left;
  background: linear-gradient(90deg,rgba(15,28,46,.95),rgba(15,28,46,.76) 48%,rgba(15,28,46,.18)),linear-gradient(0deg,rgba(15,28,46,.45),transparent 58%),url('/assets/public/heroes/hero-proyectos.jpg') center 53%/cover no-repeat;
  border: 0;
}
body.ec-portals-editorial .ec-portales-hero::before { display: none; }
body.ec-portals-editorial .ec-portales-hero-inner { width: min(100%,1440px); max-width: 1440px; margin: 0 auto; }
body.ec-portals-editorial .ec-portales-badge { padding: 8px 11px; border: 0; border-radius: 0; background: rgba(125,191,42,.16); color: #b2e173; font-size: .64rem; letter-spacing: .12em; }
body.ec-portals-editorial .ec-portales-hero h1 { max-width: 920px; margin: 8px 0 22px; color: #fff; font-size: clamp(4rem,9vw,8rem); font-weight: 700; line-height: .94; letter-spacing: -.08em; }
body.ec-portals-editorial .ec-portales-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(1rem,1.4vw,1.18rem); line-height: 1.8; }
body.ec-portals-editorial .ec-portales-section { padding: clamp(64px,8vw,104px) 48px; background: #fff; }
body.ec-portals-editorial .ec-portales-section > .ec-container { max-width: 1440px; padding: 0; }
body.ec-portals-editorial .ec-portales-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 26px; margin-bottom: clamp(60px,8vw,100px); }
body.ec-portals-editorial .ec-portal-card { grid-column: span 6; display: grid; grid-template-columns: minmax(170px,.72fr) minmax(0,1fr); min-width: 0; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 0; background: #fff; box-shadow: none; transition: border-color .2s ease,transform .2s ease; }
body.ec-portals-editorial .ec-portal-card:hover { transform: translateY(-3px); border-color: #91a0ac; box-shadow: none; }
body.ec-portals-editorial .ec-portal-card-img { height: 100%; min-height: 300px; background-position: center; }
body.ec-portals-editorial .ec-portal-card-img::after { background: linear-gradient(0deg,rgba(15,28,46,.5),transparent 62%); }
body.ec-portals-editorial .ec-portal-card-img-badge { bottom: 18px; left: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.42); border-radius: 0; color: var(--portal-navy); background: var(--portal-green) !important; box-shadow: none; }
body.ec-portals-editorial .ec-portal-card-body { padding: 25px 24px 22px; }
body.ec-portals-editorial .ec-portal-card-tag { color: #5b8a27 !important; font-size: .62rem; letter-spacing: .12em; }
body.ec-portals-editorial .ec-portal-card-title { margin: 7px 0 10px; color: var(--portal-navy); font-size: clamp(1.3rem,2vw,1.75rem); line-height: 1.15; letter-spacing: -.05em; }
body.ec-portals-editorial .ec-portal-card-desc { margin-bottom: 18px; color: #5b6570; font-size: .78rem; line-height: 1.7; }
body.ec-portals-editorial .ec-portal-card-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 20px; padding-top: 16px; border-color: #e2e5e8; }
body.ec-portals-editorial .ec-portal-card-feature { align-items: flex-start; color: #4f5b68; font-size: .68rem; line-height: 1.5; }
body.ec-portals-editorial .ec-portal-card-feature svg { margin-top: 2px; color: #66972f !important; }
body.ec-portals-editorial .ec-portal-card-footer { display: grid; grid-template-columns: 1fr; gap: 8px; }
body.ec-portals-editorial .ec-portal-card-btn { min-height: 44px; padding: 11px 15px; border: 0; border-radius: 0; background: var(--portal-navy) !important; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: none; }
body.ec-portals-editorial .ec-portal-card-btn:hover { background: #243e5e !important; box-shadow: none; }
body.ec-portals-editorial .ec-portal-card-secondary { min-height: 40px; padding: 10px; border: 1px solid #cbd1d7; border-radius: 0; background: #fff; color: #596574; font-size: .68rem; }
body.ec-portals-editorial .ec-portales-erp-banner { align-items: flex-start; padding: clamp(30px,5vw,64px); border: 0; border-top: 3px solid var(--portal-green); border-radius: 0; background: var(--portal-navy); text-align: left; box-shadow: none; }
body.ec-portals-editorial .ec-portales-erp-banner::before { display: none; }
body.ec-portals-editorial .ec-portales-erp-icon { width: 50px; height: 50px; margin-bottom: 24px; border: 0; border-radius: 0; background: rgba(255,255,255,.08); }
body.ec-portals-editorial .ec-portales-erp-banner h2 { margin: 0 0 12px; color: #fff; font-size: clamp(2rem,4vw,3.3rem); letter-spacing: -.06em; }
body.ec-portals-editorial .ec-portales-erp-banner p { max-width: 760px; margin: 0 0 24px; color: rgba(255,255,255,.76); font-size: .9rem; line-height: 1.8; }
body.ec-portals-editorial .ec-portales-erp-roles { justify-content: flex-start; margin-bottom: 28px; }
body.ec-portals-editorial .ec-portales-erp-role { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); font-size: .64rem; }
body.ec-portals-editorial .ec-portales-erp-banner > .ec-btn { min-height: 48px; border-radius: 0; background: var(--portal-green); color: var(--portal-navy); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1050px) {
  body.ec-portals-editorial .ec-portal-card { grid-column: span 12; grid-template-columns: minmax(190px,.55fr) minmax(0,1fr); }
  body.ec-portals-editorial .ec-portal-card-img { min-height: 260px; }
}
@media (max-width: 650px) {
  body.ec-portals-editorial .ec-portales-hero { min-height: 580px; padding: 150px 22px 64px; }
  body.ec-portals-editorial .ec-portales-hero h1 { font-size: clamp(3.4rem,16vw,5.6rem); }
  body.ec-portals-editorial .ec-portales-section { padding: 56px 20px; }
  body.ec-portals-editorial .ec-portales-grid { gap: 18px; }
  body.ec-portals-editorial .ec-portal-card { grid-template-columns: 1fr; }
  body.ec-portals-editorial .ec-portal-card-img { height: 190px; min-height: 190px; }
  body.ec-portals-editorial .ec-portal-card-body { padding: 22px 20px; }
  body.ec-portals-editorial .ec-portal-card-features { gap: 9px; }
  body.ec-portals-editorial .ec-portales-erp-banner { padding: 28px 22px; }
}
