/* 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 {
  margin: 0 0 40px;
}

.eg-sec__header--center {
  text-align: center;
  margin-bottom: 40px;
}

.eg-sec__header--center .eg-sec__text {
  margin-inline: auto;
}

.eg-about-home__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eg-about-home .eg-sec__title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 40px;
}

.eg-about-home .eg-sec__text {
  margin-left: auto;
  margin-right: auto;
}

.eg-about-home .eg-btn {
  margin-top: 28px;
}

.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-hero--split {
  min-height: min(86vh, 760px);
  align-items: center;
  overflow: hidden;
  background: #000;
}

.eg-page-hero {
  min-height: 280px;
  align-items: flex-end;
}

.eg-page-hero .eg-hero__title {
  font-size: 50px;
  max-width: 16ch;
  line-height: 1.12;
}

.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--split .eg-hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  width: min(1140px, calc(100% - 48px));
  padding: 12px 0 0;
  min-height: min(86vh, 760px);
}

.eg-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 400px;
  padding: 24px 0 48px;
}

.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--split .eg-hero__title {
  margin: 0 0 14px;
  max-width: 18ch;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.eg-hero--split .eg-sec__eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
}

.eg-hero__title--wide {
  max-width: 14ch;
}

.eg-page-hero .eg-hero__title--wide {
  max-width: 16ch;
  font-size: 50px;
}

.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--split .eg-hero__text {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.eg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eg-hero--split .eg-hero__actions .eg-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.eg-hero__arrow {
  margin-left: 8px;
}

.eg-hero__btn-wa {
  gap: 10px;
}

.eg-hero__wa {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.eg-hero__wa svg {
  display: block;
  width: 18px;
  height: 18px;
}

.eg-hero__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: min(86vh, 760px);
  margin-left: -56px;
  margin-right: 0;
}

.eg-hero__visual img {
  display: block;
  width: auto;
  max-width: none;
  height: min(760px, 92vh);
  object-fit: contain;
  object-position: left bottom;
  transform: translateX(-8%) scale(1.12);
  transform-origin: left bottom;
}

.eg-lead {
  margin: 0 0 22px;
  color: var(--eg-heading);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}

.eg-prose .eg-sec__text {
  max-width: 68ch;
  margin: 0 0 18px;
}

.eg-prose .eg-sec__text:last-child {
  margin-bottom: 0;
}

.eg-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.eg-commit__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.eg-backing__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-backing__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--eg-border);
  border-radius: 14px;
  background: var(--eg-glass);
  color: var(--eg-heading);
  font-size: 15px;
  font-weight: 600;
}

.eg-backing__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--eg-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--eg-primary) 18%, transparent);
}

.eg-backing__list--long li {
  align-items: flex-start;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.eg-about-page__prose .eg-sec__text {
  max-width: 72ch;
  margin-bottom: 18px;
}

.eg-backing .eg-cats__all {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.eg-features {
  overflow: visible;
}

.eg-features.eg-sec {
  padding-top: 48px;
  padding-bottom: 48px;
}

.eg-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.eg-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.eg-feature + .eg-feature {
  border-left: 1px solid color-mix(in srgb, var(--eg-primary) 42%, transparent);
}

.eg-feature:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--eg-primary) 42%, transparent);
  background: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .eg-feature,
  .eg-feature:hover {
    transform: none;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
}

.eg-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.eg-feature__icon svg,
.eg-feature__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.eg-feature:hover .eg-feature__icon {
  color: var(--eg-primary);
  border-color: var(--eg-primary);
  background: color-mix(in srgb, var(--eg-primary) 12%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--eg-primary) 16%, transparent);
}

.eg-feature__copy {
  min-width: 0;
}

.eg-feature h3 {
  margin: 0 0 6px;
  color: var(--eg-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.eg-feature p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.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-about__media--logo {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-about__media--logo img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

.eg-about__copy .eg-btn {
  margin-top: 28px;
}

.eg-about--text .eg-sec__header {
  margin-bottom: 28px;
}

.eg-about--text .eg-sec__title {
  max-width: 22ch;
}

.eg-about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}

.eg-about__col {
  min-width: 0;
}

.eg-about__col p {
  margin: 0;
  max-width: none;
  color: var(--eg-muted);
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.eg-about__col p + p {
  margin-top: 18px;
}

.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-carousel {
  overflow: hidden;
  width: 100%;
}

.eg-clients-carousel__track {
  display: flex;
  width: 100%;
  animation: eg-clients-slide 15s linear infinite;
}

.eg-clients-carousel:hover .eg-clients-carousel__track,
.eg-clients-carousel:focus-within .eg-clients-carousel__track {
  animation-play-state: running;
}

.eg-clients-carousel__slide {
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.eg-clients-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

@keyframes eg-clients-slide {
  0%,
  24% {
    transform: translateX(0);
  }
  33%,
  57% {
    transform: translateX(-100%);
  }
  66%,
  90% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(-300%);
  }
}

.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-svc__header {
  margin-bottom: 36px;
}

.eg-svc__lead {
  max-width: 72ch;
}

.eg-svc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.eg-svc__card {
  padding: 32px 28px 34px;
  border: 1px solid var(--eg-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--eg-primary) 7%, transparent), transparent 40%),
    color-mix(in srgb, var(--eg-heading) 3.5%, transparent);
}

.eg-svc__card h3 {
  margin: 0 0 18px;
  max-width: 13ch;
  color: var(--eg-heading);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.eg-svc__card p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.eg-svc .eg-cats__all {
  margin-top: 36px;
}

.eg-site-footer__grid--ecuarms {
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
}

.eg-site-footer__brand .eg-footer-social {
  margin-top: 18px;
}

.eg-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eg-wa-float {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 901;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eb0606;
  color: #fff !important;
  box-shadow:
    0 0 0 6px rgba(235, 6, 6, 0.18),
    0 10px 28px rgba(235, 6, 6, 0.45);
  text-decoration: none !important;
  animation: eg-wa-glow 2.4s ease-in-out infinite;
}

.eg-wa-float svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
}

.eg-wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.eg-wa-float__tip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #111;
}

.eg-wa-float:hover,
.eg-wa-float:focus-visible {
  color: #fff !important;
}

.eg-wa-float:hover .eg-wa-float__tip,
.eg-wa-float:focus-visible .eg-wa-float__tip {
  opacity: 1;
  visibility: visible;
}

@keyframes eg-wa-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(235, 6, 6, 0.18),
      0 10px 28px rgba(235, 6, 6, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 11px rgba(235, 6, 6, 0.08),
      0 12px 32px rgba(235, 6, 6, 0.55);
  }
}

body.eg-nav-open .eg-wa-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.egt-quote-btn {
  margin-top: 12px;
}

.woocommerce div.product .summary .egt-quote-btn {
  margin-top: 40px;
}

.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-svc__grid,
  .eg-media__grid,
  .eg-clients__grid,
  .eg-story__grid,
  .eg-commit__grid,
  .eg-backing__list,
  .eg-site-footer__grid--ecuarms {
    grid-template-columns: 1fr 1fr;
  }

  .eg-feature:nth-child(odd) {
    border-left: 0;
  }

  .eg-feature:nth-child(n + 3) {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--eg-primary) 42%, transparent);
  }

  .eg-hero:not(.eg-hero--split) {
    min-height: 520px;
  }

  .eg-page-hero {
    min-height: 220px;
  }

  .eg-page-hero__inner {
    padding: 48px 0 40px;
  }

  .eg-hero--split {
    min-height: min(72vh, 640px);
  }

  .eg-hero--split .eg-hero__inner {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    width: min(1140px, calc(100% - 48px));
    min-height: min(72vh, 640px);
  }

  .eg-hero__visual {
    margin-left: -32px;
    margin-right: 0;
    min-height: min(72vh, 640px);
  }

  .eg-hero__visual img {
    width: auto;
    height: min(640px, 78vh);
    transform: translateX(-4%) scale(1.06);
  }
}

@media (max-width: 767px) {
  .eg-features__grid,
  .eg-cats__grid,
  .eg-about__grid,
  .eg-about__cols,
  .eg-facts,
  .eg-facts--three,
  .eg-svc__grid,
  .eg-media__grid,
  .eg-clients__grid,
  .eg-stats,
  .eg-story__grid,
  .eg-commit__grid,
  .eg-backing__list,
  .eg-site-footer__grid--ecuarms {
    grid-template-columns: 1fr;
  }

  .eg-feature,
  .eg-feature + .eg-feature,
  .eg-feature:nth-child(odd),
  .eg-feature:nth-child(n + 3) {
    margin-top: 0;
    padding: 16px 0;
    border-left: 0;
    border-top: 0;
  }

  .eg-feature + .eg-feature {
    border-top: 1px solid color-mix(in srgb, var(--eg-primary) 42%, transparent);
  }

  .eg-clients-carousel__slide {
    width: 100%;
  }

  .eg-clients-carousel__slide img {
    height: auto;
  }

  .eg-cat {
    min-height: 220px;
  }

  .eg-wa-float {
    right: 16px;
    bottom: 76px;
    width: 48px;
    height: 48px;
  }

  .eg-hero--split {
    min-height: 0;
  }

  .eg-hero--split .eg-hero__inner {
    grid-template-columns: 1fr;
    padding: 20px 0 0;
    min-height: 0;
    gap: 0;
  }

  .eg-hero__copy {
    max-width: none;
    padding: 8px 0 6px;
    text-align: center;
  }

  .eg-hero--split .eg-sec__eyebrow,
  .eg-hero--split .eg-hero__title,
  .eg-hero--split .eg-hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .eg-hero--split .eg-hero__actions {
    justify-content: center;
  }

  .eg-hero__visual {
    margin-left: 0;
    margin-right: 0;
    margin-top: -8px;
    min-height: 360px;
    justify-content: center;
  }

  .eg-hero__visual img {
    width: auto;
    max-width: 118%;
    height: min(540px, 64vh);
    object-position: center bottom;
    transform: scale(1.12);
    transform-origin: center bottom;
  }

  .eg-hero--split .eg-hero__title {
    font-size: 32px;
    font-weight: 800;
    max-width: 18ch;
  }

  .eg-page-hero {
    min-height: 180px;
  }

  .eg-page-hero__inner {
    padding: 28px 0 28px;
  }

  .eg-page-hero .eg-hero__title,
  .eg-page-hero .eg-hero__title--wide {
    font-size: 32px;
    max-width: none;
  }
}
