.service-page {
  background: #f5f7f9;
  color: #0a1929;
}

.breadcrumbs {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 auto;
  padding: 18px 0;
  color: #657482;
  font-size: 13px;
}

.breadcrumbs a {
  color: #0f8a9d;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.service-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: clamp(72px, 8vw, 120px) clamp(20px, 5vw, 72px) 48px;
  overflow: hidden;
  background: #071522;
  color: #ffffff;
  isolation: isolate;
}

.service-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, rgba(4, 9, 16, 0.9), rgba(7, 18, 29, 0.55));
  content: "";
}

.service-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 55%;
  background: linear-gradient(to top, rgba(4, 9, 16, 0.9), transparent);
  content: "";
  pointer-events: none;
}

.service-hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-hero__copy,
.service-hero__panel {
  position: relative;
  z-index: 1;
}

.service-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #d2b48c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-hero__copy {
  min-width: 0;
  max-width: 820px;
  animation: service-rise-in 0.7s ease both;
}

.service-hero__copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.service-hero__copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  line-height: 1.7;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.service-action,
.service-cta a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.service-action:hover,
.service-cta a:hover {
  transform: translateY(-2px);
}

.service-action--primary,
.service-cta a {
  background: #d2b48c;
  box-shadow: 0 14px 30px rgba(210, 180, 140, 0.28);
  color: #0a1929;
}

.service-action--secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.service-hero__panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  animation: service-panel-in 0.8s 0.15s ease both;
}

.service-hero__panel span {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

.service-body {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(10, 25, 41, 0.07);
}

.service-intro h2,
.service-detail h2,
.related-services h2,
.service-cta h2 {
  margin: 0;
  line-height: 1.08;
}

.service-intro h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.service-intro p {
  margin: 0;
  color: #576675;
  font-size: 1.03rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(10, 25, 41, 0.07);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.feature-card:hover {
  box-shadow: 0 24px 48px rgba(10, 25, 41, 0.12);
  transform: translateY(-6px);
}

.feature-card h2 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: #576675;
  line-height: 1.6;
}

.feature-number {
  color: #0f8a9d;
  font-size: 13px;
  font-weight: 900;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 8px;
  background: #0a1929;
  color: #ffffff;
}

.service-detail h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.service-detail__copy p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.outcome-list {
  display: grid;
  gap: 12px;
}

.outcome-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.outcome-item span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: #35c2d1;
  box-shadow: 0 0 0 6px rgba(53, 194, 209, 0.12);
}

.outcome-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.related-services {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 8px;
  background: #e9eff3;
}

.related-services__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.related-services__heading p {
  max-width: 470px;
  margin: 0;
  color: #576675;
  line-height: 1.6;
  text-align: right;
}

.related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  align-content: end;
  padding: 20px;
  border: 1px solid rgba(10, 25, 41, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0a1929;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.related-card:hover {
  box-shadow: 0 18px 34px rgba(10, 25, 41, 0.12);
  transform: translateY(-4px);
}

.related-card span {
  color: #0f8a9d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-card strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.service-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(10, 25, 41, 0.08);
}

.service-cta h2 {
  font-size: 2rem;
}

.contact-page-static {
  min-height: calc(100vh - 120px);
  padding: 72px 24px;
  background:
    linear-gradient(135deg, rgba(10, 25, 41, 0.92), rgba(15, 43, 63, 0.86)),
    url("/assets/images/instalaciones-electricas.jpg") center / cover;
  color: #ffffff;
}

.contact-page-static__hero {
  width: min(980px, 100%);
  margin: 0 auto 36px;
}

.contact-page-static__hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.contact-page-static__hero > p:not(.service-eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.contact-grid-static {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.contact-card-static {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-card-static span {
  display: block;
  margin-bottom: 10px;
  color: #d2b48c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card-static strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.contact-card-static a {
  color: inherit;
}

.contact-card-static p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

@keyframes service-rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes service-panel-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .service-hero,
  .service-intro,
  .service-detail,
  .feature-grid,
  .related-services__grid {
    grid-template-columns: 1fr;
  }

  .service-hero__panel {
    max-width: 520px;
  }

  .related-services__heading {
    align-items: start;
    flex-direction: column;
  }

  .related-services__heading p {
    text-align: left;
  }

  .service-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .breadcrumbs,
  .service-body {
    width: min(100% - 28px, 1180px);
  }

  .service-hero {
    min-height: 640px;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .service-hero__copy h1 {
    font-size: 2.3rem;
    line-height: 1.02;
  }

  .service-body {
    padding-top: 34px;
  }

  .service-hero__copy p {
    font-size: 1rem;
  }

  .service-cta h2 {
    font-size: 1.7rem;
  }

  .contact-page-static {
    padding: 48px 18px;
  }

  .contact-grid-static {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero__copy,
  .service-hero__panel,
  .feature-card,
  .service-action,
  .service-cta a {
    animation: none;
    transition: none;
  }
}
