body[data-page="template-custom"] {
  --template-ink: var(--us-navy, #08274f);
  --template-orange: #e66b18;
  --template-line: rgba(8, 39, 79, 0.12);
  background:
    radial-gradient(circle at 10% 8%, rgba(230, 107, 24, 0.09), transparent 18rem),
    linear-gradient(180deg, #fff8ef 0%, #f6efe5 44rem, #ffffff 100%) !important;
}

body[data-page="template-custom"] .page-main {
  width: min(92rem, calc(100vw - 3rem)) !important;
  padding-top: clamp(1rem, 2.2vw, 1.65rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.4rem) !important;
}

body[data-page="template-custom"] .module-page-shell {
  display: grid;
  width: 100%;
  gap: clamp(1rem, 2vw, 1.35rem);
  padding: 0 !important;
  background: none !important;
}

body[data-page="template-custom"] .module-panel {
  border-color: var(--template-line) !important;
  border-radius: 0.5rem !important;
  background: rgba(255, 252, 246, 0.92) !important;
  box-shadow: 0 1.2rem 3.2rem rgba(8, 39, 79, 0.08) !important;
}

body[data-page="template-custom"] .module-hero-card {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  gap: clamp(1rem, 3vw, 3.2rem);
  align-items: center;
  min-height: clamp(29rem, 48vw, 37rem);
  padding: clamp(1.4rem, 4vw, 3.6rem) !important;
  overflow: hidden;
}

body[data-page="template-custom"] .module-hero-copy {
  display: grid;
  gap: clamp(0.8rem, 1.3vw, 1.05rem);
  max-width: 36rem;
}

body[data-page="template-custom"] .module-kicker {
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(230, 107, 24, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--template-orange) !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  line-height: 1.2;
}

body[data-page="template-custom"] .module-title {
  max-width: 10.8em !important;
  margin: 0 !important;
  color: var(--template-ink) !important;
  font-family: var(--font-sans) !important;
  font-size: clamp(2.45rem, 4.4vw, 4.15rem) !important;
  font-weight: 950 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  padding-bottom: 0.06em;
}

@media (min-width: 1041px) {
  html[lang="es"][lang] body[data-page="template-custom"][data-page][data-page]:not([data-page="home"]) main
    .module-hero-card
    .module-title {
    max-width: 13.4em !important;
    font-size: clamp(2.1rem, 3.35vw, 3rem) !important;
    line-height: 1.24 !important;
  }
}

body[data-page="template-custom"] .module-copy {
  max-width: 35rem;
  margin: 0;
  color: rgba(8, 39, 79, 0.68);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  font-weight: 820;
  line-height: 1.52;
}

body[data-page="template-custom"] .module-feature-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.25rem 0 0 !important;
}

body[data-page="template-custom"] .module-feature-list span {
  display: grid !important;
  gap: 0.18rem;
  min-height: 4.2rem;
  min-width: 0;
  padding: 0.78rem !important;
  border: 1px solid var(--template-line) !important;
  border-radius: 0.5rem !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--template-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body[data-page="template-custom"] .module-feature-list small {
  color: rgba(8, 39, 79, 0.58) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.24;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body[data-page="template-custom"] .module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

body[data-page="template-custom"] .module-action-button {
  min-height: 2.9rem;
  border-radius: 0.46rem !important;
  background: var(--template-orange) !important;
  color: #fff !important;
  box-shadow: 0 0.9rem 1.8rem rgba(230, 107, 24, 0.2) !important;
  white-space: nowrap !important;
}

body[data-page="template-custom"] .module-action-button.secondary {
  border: 1px solid rgba(8, 39, 79, 0.2) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--template-ink) !important;
  box-shadow: none !important;
}

body[data-page="template-custom"] .module-hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(8, 39, 79, 0.1);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1rem 2.8rem rgba(8, 39, 79, 0.12);
}

body[data-page="template-custom"] .module-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.56;
  object-fit: cover;
}

body[data-page="template-custom"] .template-media-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--template-ink);
  color: #fff;
}

body[data-page="template-custom"] .template-media-stats span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.78rem 0.55rem;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="template-custom"] .template-media-stats span:first-child {
  border-left: 0;
}

body[data-page="template-custom"] .template-media-stats strong {
  color: #fff;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  font-weight: 950;
  line-height: 1.3;
}

body[data-page="template-custom"] .module-section {
  margin: 0 !important;
}

body[data-page="template-custom"] .module-section-head {
  align-items: end !important;
  gap: 1rem;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.05rem) !important;
}

body[data-page="template-custom"] .module-section-head h2 {
  margin: 0 !important;
  color: var(--template-ink) !important;
  font-size: clamp(1.5rem, 2.7vw, 2.45rem) !important;
  font-weight: 950 !important;
  line-height: 1.28 !important;
  padding-bottom: 0.05em;
}

body[data-page="template-custom"] .module-section-head p {
  margin: 0.25rem 0 0 !important;
  color: rgba(8, 39, 79, 0.64) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
}

body[data-page="template-custom"] .module-more-link {
  color: var(--template-ink) !important;
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
}

body[data-page="template-custom"] .module-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
}

body[data-page="template-custom"] .module-info-card {
  border-radius: 0.5rem !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

body[data-page="template-custom"] .service-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem !important;
}

body[data-page="template-custom"] .service-card {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-rows: auto auto auto auto;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.58rem !important;
  border: 1px solid var(--template-line) !important;
  border-radius: 0.5rem !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: var(--template-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 0.6rem 1.6rem rgba(8, 39, 79, 0.05);
}

body[data-page="template-custom"] .service-card img {
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 0.42rem;
  object-fit: cover;
  background: #fff;
}

body[data-page="template-custom"] .service-card small {
  color: rgba(8, 39, 79, 0.44);
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.2;
}

body[data-page="template-custom"] .service-card strong {
  color: var(--template-ink) !important;
  font-size: clamp(0.92rem, 1.08vw, 1rem);
  font-weight: 950 !important;
  line-height: 1.2;
}

body[data-page="template-custom"] .service-card span {
  color: rgba(8, 39, 79, 0.6) !important;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

body[data-page="template-custom"] .custom-flow {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem !important;
}

body[data-page="template-custom"] .custom-flow-step {
  position: relative;
  display: grid !important;
  justify-items: center;
  gap: 0.34rem;
  min-width: 0;
  padding: 0.9rem 0.65rem !important;
  border: 1px solid rgba(8, 39, 79, 0.09);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
}

body[data-page="template-custom"] .custom-flow-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(8, 39, 79, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--template-ink);
  font-size: 0.82rem;
  font-weight: 950;
}

body[data-page="template-custom"] .custom-flow-step strong {
  color: var(--template-ink);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.22;
}

body[data-page="template-custom"] .custom-flow-step small {
  color: rgba(8, 39, 79, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.28;
}

body[data-page="template-custom"] .metric-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem !important;
}

body[data-page="template-custom"] .metric-strip span {
  display: grid !important;
  gap: 0.2rem;
  min-width: 0;
  padding: 1rem !important;
  border: 1px solid var(--template-line) !important;
  border-radius: 0.5rem !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: rgba(8, 39, 79, 0.62) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1.3;
}

body[data-page="template-custom"] .metric-strip strong {
  color: var(--template-ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1.28;
}

body[data-page="template-custom"] .module-section.module-panel:last-child {
  overflow: hidden;
  border-color: rgba(8, 39, 79, 0.2) !important;
  background: var(--template-ink) !important;
  color: #fff !important;
}

body[data-page="template-custom"] .module-section.module-panel:last-child h2,
body[data-page="template-custom"] .module-section.module-panel:last-child p {
  color: #fff !important;
}

body[data-page="template-custom"] .module-section.module-panel:last-child p {
  color: rgba(255, 255, 255, 0.72) !important;
}

body[data-page="template-custom"] .module-section.module-panel:last-child .module-action-button.secondary {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

body[data-page="template-custom"] .site-footer p,
body[data-page="template-custom"] .site-footer a {
  line-height: 1.38 !important;
}

@media (max-width: 1040px) {
  body[data-page="template-custom"] .module-hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="template-custom"] .module-hero-copy {
    max-width: 42rem;
  }

  body[data-page="template-custom"] .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="template-custom"] .custom-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="template-custom"] .page-main {
    width: min(100%, calc(100vw - 0.8rem)) !important;
    padding-top: 0.85rem !important;
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom)) !important;
  }

  body[data-page="template-custom"] .module-hero-card {
    gap: 1rem;
    min-height: 0;
    padding: 1rem !important;
  }

  body[data-page="template-custom"] .module-title {
    max-width: 10.5em !important;
    font-size: clamp(1.9rem, 8.8vw, 2.75rem) !important;
  }

  body[data-page="template-custom"] .module-copy {
    font-size: 0.92rem;
  }

  body[data-page="template-custom"] .module-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  body[data-page="template-custom"] .module-feature-list span {
    min-height: 0;
    padding: 0.58rem 0.4rem !important;
    text-align: center;
    font-size: 0.72rem !important;
  }

  body[data-page="template-custom"] .module-feature-list small {
    font-size: 0.66rem !important;
  }

  body[data-page="template-custom"] .module-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="template-custom"] .module-action-button {
    width: 100%;
    min-height: 2.65rem;
    padding-inline: 0.5rem !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
    line-height: 1.18 !important;
    text-align: center;
  }

  body[data-page="template-custom"] .template-media-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="template-custom"] .template-media-stats span {
    padding: 0.55rem 0.25rem;
    font-size: 0.68rem;
  }

  body[data-page="template-custom"] .template-media-stats strong {
    font-size: 0.92rem;
  }

  body[data-page="template-custom"] .module-section-head {
    align-items: start !important;
  }

  body[data-page="template-custom"] .module-section-head h2 {
    font-size: clamp(1.38rem, 7vw, 2rem) !important;
  }

  body[data-page="template-custom"] .module-info-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-page="template-custom"] .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem !important;
  }

  body[data-page="template-custom"] .service-card {
    padding: 0.48rem !important;
  }

  body[data-page="template-custom"] .service-card img {
    aspect-ratio: 1.18;
  }

  body[data-page="template-custom"] .service-card strong {
    font-size: 0.82rem;
  }

  body[data-page="template-custom"] .service-card span {
    font-size: 0.68rem;
  }

  body[data-page="template-custom"] .custom-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem !important;
  }

  body[data-page="template-custom"] .custom-flow-step {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 0.22rem 0.5rem;
    min-height: 5.4rem;
    padding: 0.72rem 0.62rem !important;
    text-align: left;
  }

  body[data-page="template-custom"] .custom-flow-step:nth-child(5) {
    grid-column: 1 / -1;
  }

  body[data-page="template-custom"] .custom-flow-icon {
    grid-row: span 2;
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }

  body[data-page="template-custom"] .custom-flow-step strong {
    font-size: 0.8rem;
  }

  body[data-page="template-custom"] .custom-flow-step small {
    display: block;
    font-size: 0.68rem;
  }

  body[data-page="template-custom"] .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="template-custom"] .module-section.module-panel:last-child .module-section-head {
    display: grid !important;
    gap: 0.8rem;
  }
}
