/* Ecuarms — portada, categorías, hero, extras */

.eg-btn--fill {
  background: var(--eg-primary);
  border-color: var(--eg-primary);
  color: #fff !important;
}

.eg-btn--fill:hover {
  background: color-mix(in srgb, var(--eg-primary) 82%, #000);
  border-color: color-mix(in srgb, var(--eg-primary) 82%, #000);
}

.eg-sec__header--center {
  text-align: center;
  margin-bottom: 40px;
}

.eg-sec__header--center .eg-sec__text {
  margin-inline: auto;
}

.eg-hero,
.eg-page-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(9, 10, 11, 0.15) 0%, rgba(9, 10, 11, 0.82) 100%),
    var(--eg-hero-img) center / cover no-repeat;
  color: #fff;
}

.eg-page-hero {
  min-height: 360px;
  align-items: flex-end;
}

.eg-hero__overlay,
.eg-page-hero .eg-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 7, 0.58);
  pointer-events: none;
}

.eg-hero__inner,
.eg-page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 72px;
}

.eg-hero__title {
  margin: 0 0 16px;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.eg-hero__text {
  margin: 0 0 28px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.eg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eg-features {
  padding-top: 56px;
  padding-bottom: 24px;
}

.eg-features__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.eg-feature {
  padding: 22px 18px;
  border: 1px solid var(--eg-border);
  border-radius: 16px;
  background: var(--eg-glass);
}

.eg-feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  object-fit: contain;
}

.eg-feature h3 {
  margin: 0 0 8px;
  color: var(--eg-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eg-feature p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.eg-cats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.eg-cat {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none !important;
}

.eg-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.eg-cat:hover img {
  transform: scale(1.06);
}

.eg-cat__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78) 100%);
}

.eg-cat__copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eg-cat__copy strong {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eg-cat__copy em {
  color: color-mix(in srgb, var(--eg-primary) 80%, #fff);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.eg-cats__all {
  margin: 32px 0 0;
  text-align: center;
}

.eg-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eg-about__media {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--eg-border);
}

.eg-about__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.eg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.eg-stats div {
  padding: 16px 12px;
  border-top: 1px solid color-mix(in srgb, var(--eg-primary) 55%, transparent);
}

.eg-stats strong {
  display: block;
  color: var(--eg-primary);
  font-size: 28px;
  font-weight: 700;
}

.eg-stats span {
  color: var(--eg-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eg-clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.eg-clients__grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--eg-border);
}

.eg-media__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eg-media__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding-top: 56.25%;
  border: 1px solid var(--eg-border);
  background: #000;
}

.eg-media__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.eg-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.eg-facts--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 40px;
}

.eg-facts article {
  padding: 24px 22px;
  border: 1px solid var(--eg-border);
  border-radius: 18px;
  background: var(--eg-glass);
}

.eg-facts h3 {
  margin: 12px 0 8px;
  color: var(--eg-heading);
  font-size: 18px;
}

.eg-facts p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.eg-topbar {
  background: #050505;
  border-bottom: 1px solid color-mix(in srgb, var(--eg-primary) 35%, transparent);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 34px;
  padding: 6px 0;
  text-align: center;
}

.eg-topbar__phone {
  color: var(--eg-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.eg-topbar__sep {
  opacity: 0.45;
}

.eg-site-footer__grid--ecuarms {
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
}

.eg-site-footer__title--spaced {
  margin-top: 22px;
}

.eg-site-footer__wa {
  display: inline-flex;
  margin-top: 4px;
  color: var(--eg-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.eg-wa-float {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 901;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
}

body.eg-nav-open .eg-wa-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.egt-quote-btn {
  margin-top: 0;
}

.egt-price-note {
  color: var(--eg-muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .eg-features__grid,
  .eg-cats__grid,
  .eg-about__grid,
  .eg-facts,
  .eg-facts--three,
  .eg-media__grid,
  .eg-clients__grid,
  .eg-site-footer__grid--ecuarms {
    grid-template-columns: 1fr 1fr;
  }

  .eg-hero,
  .eg-page-hero {
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  .eg-features__grid,
  .eg-cats__grid,
  .eg-about__grid,
  .eg-facts,
  .eg-facts--three,
  .eg-media__grid,
  .eg-clients__grid,
  .eg-stats,
  .eg-site-footer__grid--ecuarms {
    grid-template-columns: 1fr;
  }

  .eg-hero__inner,
  .eg-page-hero__inner {
    width: calc(100% - 32px);
    padding: 56px 0 48px;
  }

  .eg-cat {
    min-height: 220px;
  }

  .eg-wa-float {
    right: 16px;
    bottom: 76px;
    width: 48px;
    height: 48px;
  }

  .eg-topbar__sep:nth-of-type(1),
  .eg-topbar__item:nth-of-type(2) {
    display: none;
  }
}
