/* Electric Control — industrial project archive. */
body.ec-cases-editorial {
  --cases-navy: #0f1c2e;
  --cases-green: #7dbf2a;
  --cases-line: #cfd4d9;
  color: var(--cases-navy);
  background: #fff;
  background-image: none;
  font-family: "Montserrat", "Open Sans", system-ui, sans-serif;
}
body.ec-cases-editorial .ec-page-hero--premium {
  min-height: max(620px,min(720px,76svh));
  padding: clamp(170px,19vh,210px) 0 clamp(76px,9vw,118px);
  align-items: flex-end;
  background-image: linear-gradient(90deg,rgba(15,28,46,.94),rgba(15,28,46,.72) 54%,rgba(15,28,46,.18)),linear-gradient(0deg,rgba(15,28,46,.42),transparent 55%),url('/assets/public/heroes/hero-proyectos.jpg');
  background-position: center,center,center 54%;
  border: 0;
}
body.ec-cases-editorial .ec-page-hero--premium::before,
body.ec-cases-editorial .ec-page-hero--premium::after { display: none; }
body.ec-cases-editorial .ec-page-hero--premium .ec-container { width: min(100% - 96px,1440px); }
body.ec-cases-editorial .ec-page-hero--premium .ec-breadcrumb { margin-bottom: 30px; }
body.ec-cases-editorial .ec-page-hero--premium .ec-heading-xl { max-width: 1050px; margin: 0 0 22px; color: #fff; font-size: clamp(3.5rem,8vw,7.6rem); line-height: .96; letter-spacing: -.075em; }
body.ec-cases-editorial .ec-page-hero--premium .ec-highlight { background: none; color: var(--cases-green); -webkit-text-fill-color: currentColor; }
body.ec-cases-editorial .ec-page-hero--premium .ec-subtitle { max-width: 680px; color: rgba(255,255,255,.82); font-size: clamp(1rem,1.35vw,1.16rem); line-height: 1.8; }
body.ec-cases-editorial .ec-section { padding: clamp(64px,8vw,104px) 0; }
body.ec-cases-editorial #casos-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--cases-line); }
body.ec-cases-editorial #casos-filter-bar .ec-filter-btn { min-height: 42px; padding: 10px 14px; border: 1px solid #c4cbd2; border-radius: 0; background: #fff; color: #42505e; font-size: .65rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
body.ec-cases-editorial #casos-filter-bar .ec-filter-btn.active,
body.ec-cases-editorial #casos-filter-bar .ec-filter-btn:hover { border-color: var(--cases-navy); background: var(--cases-navy); color: #fff; }
body.ec-cases-editorial #casos-list { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 30px; }
body.ec-cases-editorial #casos-list .ec-caso-card-item { grid-column: span 6; min-width: 0; border-radius: 0 !important; border-color: var(--cases-line) !important; box-shadow: none !important; transition: transform .25s ease,border-color .25s ease; }
body.ec-cases-editorial #casos-list .ec-caso-card-item:first-child { grid-column: span 7; grid-row: span 2; }
body.ec-cases-editorial #casos-list .ec-caso-card-item:hover { transform: translateY(-4px); border-color: #92a0ad !important; }
body.ec-cases-editorial #casos-list .ec-premium-card__visual { height: 280px !important; background-size: cover !important; }
body.ec-cases-editorial #casos-list .ec-caso-card-item:first-child .ec-premium-card__visual { height: 420px !important; }
body.ec-cases-editorial #casos-list .ec-premium-card__body { padding: 24px 28px 18px !important; }
body.ec-cases-editorial #casos-list .ec-blueprint-badge { padding: 7px 10px; border-radius: 0; background: var(--cases-green); color: var(--cases-navy); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.ec-cases-editorial #casos-list .ec-heading-sm { margin: 8px 0 10px; color: var(--cases-navy) !important; font-size: clamp(1.2rem,2vw,1.75rem) !important; line-height: 1.25 !important; letter-spacing: -.04em; }
body.ec-cases-editorial #casos-list .ec-body-sm { color: #626d79 !important; line-height: 1.75 !important; }
body.ec-cases-editorial .ec-page-cta { background: var(--cases-navy); }
body.ec-cases-editorial #caso-detail-desc { color: #3e4a57 !important; line-height: 1.8 !important; }
@media (max-width: 820px) {
  body.ec-cases-editorial #casos-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.ec-cases-editorial #casos-list .ec-caso-card-item, body.ec-cases-editorial #casos-list .ec-caso-card-item:first-child { grid-column: span 1; grid-row: auto; }
  body.ec-cases-editorial #casos-list .ec-caso-card-item:first-child .ec-premium-card__visual { height: 280px !important; }
}
@media (max-width: 620px) {
  body.ec-cases-editorial .ec-page-hero--premium .ec-container { width: min(100% - 40px,1440px); }
  body.ec-cases-editorial .ec-page-hero--premium .ec-heading-xl { font-size: clamp(3rem,15vw,5rem); }
  body.ec-cases-editorial #casos-list { grid-template-columns: 1fr; gap: 20px; }
  body.ec-cases-editorial #casos-list .ec-premium-card__visual { height: 225px !important; }
  body.ec-cases-editorial #casos-list .ec-premium-card__body { padding: 20px 20px 14px !important; }
}
