:root {
  --as-blue: #0e3b70;
  --as-blue-dark: #082747;
  --as-ink: #172033;
  --as-muted: #667085;
  --as-line: #dfe4ea;
  --as-soft: #f4f6f8;
  --as-white: #fff;
  --as-radius: 18px;
}

.as-site-home,
.as-section,
.as-hero,
.as-request-section,
.as-about {
  color: var(--as-ink);
}

.as-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.as-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--as-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.as-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.as-section-heading h2,
.as-about h1,
.as-request-intro h1 {
  margin: 0;
  color: var(--as-ink);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.as-heading-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.as-heading-split > a,
.as-text-link {
  color: var(--as-blue);
  font-weight: 800;
  text-decoration: none;
}

.as-hero {
  padding: 42px 20px 26px;
  background: linear-gradient(135deg, #081d35 0%, var(--as-blue) 58%, #285f9c 100%);
}

.as-hero-inner {
  width: min(1240px, 100%);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 48px;
}

.as-hero-copy {
  padding: 50px 0;
}

.as-hero .as-eyebrow { color: #b7d8ff; }

.as-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.as-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 20px;
  line-height: 1.65;
}

.as-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.as-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--as-blue);
  border-radius: 999px;
  background: var(--as-blue);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.as-btn:hover {
  transform: translateY(-2px);
  background: var(--as-blue-dark);
  border-color: var(--as-blue-dark);
}

.as-hero .as-btn {
  background: #fff;
  border-color: #fff;
  color: var(--as-blue) !important;
}

.as-btn-light,
.as-hero .as-btn-light {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff !important;
}

.as-hero-media {
  position: relative;
}

.as-hero-media:before {
  content: "";
  position: absolute;
  inset: -20px 20px 20px -20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
}

.as-hero-media img,
.as-hero-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 480px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.as-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e7edf4, #fff);
  color: var(--as-blue);
}

.as-hero-placeholder strong { font-size: clamp(34px, 5vw, 66px); letter-spacing: .08em; }
.as-hero-placeholder span { margin-top: 12px; color: var(--as-muted); }

.as-services {
  padding-top: 92px;
}

.as-service-grid,
.as-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.as-service-grid article,
.as-about-grid article {
  padding: 30px;
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  background: #fff;
}

.as-service-number {
  color: var(--as-blue);
  font-weight: 900;
}

.as-service-grid h3,
.as-about-grid h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.as-service-grid p,
.as-about-grid p,
.as-project-card p,
.as-request-intro p,
.as-about-intro p {
  color: var(--as-muted);
  line-height: 1.7;
}

.as-projects-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  background: var(--as-soft);
}

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

.as-project-card,
.as-product-card {
  overflow: hidden;
  border-radius: var(--as-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23,32,51,.06);
}

.as-project-image,
.as-product-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9edf2;
}

.as-project-image img,
.as-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.as-project-card:hover img,
.as-product-card:hover img { transform: scale(1.04); }

.as-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8594;
  font-weight: 700;
}

.as-project-card-body,
.as-product-body {
  padding: 24px;
}

.as-project-card-body > span {
  color: var(--as-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-project-card h3,
.as-product-card h3 {
  margin: 9px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.as-project-card h3 a,
.as-product-card h3 a {
  color: var(--as-ink);
  text-decoration: none;
}

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

.as-product-image { aspect-ratio: 1 / 1; }
.as-product-body .as-price { margin: 12px 0; color: var(--as-blue); font-size: 18px; font-weight: 800; }

.as-empty-state {
  padding: 40px;
  border: 1px dashed #b7c0cc;
  border-radius: var(--as-radius);
  background: #fbfcfd;
  text-align: center;
}

.as-quote-cta {
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 26px;
  background: var(--as-blue);
  color: #fff;
}

.as-quote-cta .as-eyebrow { color: #bad9ff; }
.as-quote-cta h2 { max-width: 780px; margin: 0; color: #fff; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }

.as-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.as-project-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #eef1f4;
}

.as-project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.as-project-gallery a:hover img { transform: scale(1.04); }

.as-request-section,
.as-about {
  padding-top: 90px;
  padding-bottom: 90px;
}

.as-request-intro,
.as-about-intro {
  max-width: 800px;
  margin-bottom: 38px;
}

.as-request-intro p,
.as-about-intro p { font-size: 18px; }

.as-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--as-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23,32,51,.07);
}

.as-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-field span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.as-field input,
.as-field textarea,
.as-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  color: var(--as-ink);
}

.as-field input:focus,
.as-field textarea:focus,
.as-field select:focus {
  border-color: var(--as-blue);
  box-shadow: 0 0 0 4px rgba(14,59,112,.1);
  outline: 0;
}

.as-wide { grid-column: 1 / -1; }
.as-honeypot { position: absolute !important; left: -99999px !important; opacity: 0 !important; }

.as-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #667085;
  border-radius: 8px;
  background: #f7f8fa;
}

.as-notice.success { border-left-color: #138a4b; background: #effaf3; }
.as-notice.error { border-left-color: #a61b1b; background: #fff1f1; }

.as-about-grid { grid-template-columns: repeat(2, 1fr); }
.as-about-grid h2 { margin-top: 0; }

@media (max-width: 980px) {
  .as-hero-inner { min-height: auto; grid-template-columns: 1fr; }
  .as-hero-media { max-width: 720px; }
  .as-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .as-section { width: min(100% - 28px, 1180px); padding: 56px 0; }
  .as-hero { padding: 22px 14px 18px; }
  .as-hero-copy { padding: 36px 0 12px; }
  .as-hero h1 { font-size: clamp(40px, 13vw, 60px); }
  .as-hero p { font-size: 17px; }
  .as-hero-media img,
  .as-hero-placeholder { min-height: 330px; }
  .as-heading-split,
  .as-quote-cta { align-items: flex-start; flex-direction: column; }
  .as-project-grid,
  .as-product-grid,
  .as-project-gallery,
  .as-request-form,
  .as-about-grid { grid-template-columns: 1fr; }
  .as-request-form { padding: 22px; }
  .as-wide { grid-column: auto; }
  .as-quote-cta { width: calc(100% - 28px); padding: 30px; }
}

/* Visor ampliado para las galerías de proyectos */
.as-project-gallery-item {
  cursor: zoom-in;
}

body.as-lightbox-open {
  overflow: hidden;
}

.as-lightbox[hidden] {
  display: none !important;
}

.as-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.as-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 24, .94);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
}

.as-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  height: min(92vh, 960px);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
}

.as-lightbox-figure {
  min-width: 0;
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.as-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .55);
  opacity: 1;
  transition: opacity .18s ease;
}

.as-lightbox-image.is-loading {
  opacity: .35;
}

.as-lightbox-meta {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}

.as-lightbox-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-lightbox-counter {
  flex: 0 0 auto;
  font-weight: 800;
}

.as-lightbox-close,
.as-lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(15, 31, 51, .72);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.as-lightbox-close:hover,
.as-lightbox-nav:hover,
.as-lightbox-close:focus-visible,
.as-lightbox-nav:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--as-blue-dark);
  outline: none;
  transform: scale(1.05);
}

.as-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 31px;
  line-height: 1;
}

.as-lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.as-lightbox-nav[hidden] {
  visibility: hidden;
}

@media (max-width: 720px) {
  .as-lightbox {
    padding: 12px;
  }

  .as-lightbox-panel {
    height: 96vh;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
  }

  .as-lightbox-image {
    max-height: calc(96vh - 82px);
    border-radius: 6px;
  }

  .as-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .as-lightbox-close {
    top: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .as-lightbox-meta {
    padding: 0 4px;
    font-size: 12px;
  }
}

/* Elementor: estructura nativa por contenedores (AllSaavedra Core 1.4+) */
.as-el-section.elementor-element,
.as-el-hero-section.elementor-element {
  --widgets-spacing: 0px;
}

.as-el-section > .e-con-inner,
.as-el-hero-section > .e-con-inner {
  width: 100%;
  max-width: none;
}

.as-el-hero-section .as-hero-inner {
  margin-inline: auto;
}

.as-el-hero-section .elementor-widget-heading,
.as-el-hero-section .elementor-widget-text-editor,
.as-el-section .elementor-widget-heading,
.as-el-section .elementor-widget-text-editor {
  margin-bottom: 0;
}

.as-el-hero-section .as-eyebrow .elementor-heading-title,
.as-el-section .as-eyebrow .elementor-heading-title {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.as-el-hero-title .elementor-heading-title {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

.as-el-hero-text .elementor-widget-container > :last-child,
.as-el-section .elementor-widget-text-editor .elementor-widget-container > :last-child {
  margin-bottom: 0;
}

.as-el-button .elementor-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--as-blue);
  border-radius: 999px;
  background: var(--as-blue);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.as-el-button .elementor-button:hover {
  transform: translateY(-2px);
  background: var(--as-blue-dark);
  border-color: var(--as-blue-dark);
  color: #fff;
}

.as-el-hero-section .as-el-button-primary .elementor-button {
  border-color: #fff;
  background: #fff;
  color: var(--as-blue);
}

.as-el-hero-section .as-el-button-secondary .elementor-button,
.as-quote-cta .as-el-button-secondary .elementor-button {
  border-color: rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
}

.as-el-text-button .elementor-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--as-blue);
  font-weight: 800;
  box-shadow: none;
}

.as-el-text-button .elementor-button:hover {
  background: transparent;
  color: var(--as-blue-dark);
}

.as-hero-media .elementor-widget-image,
.as-hero-media .elementor-widget-image .elementor-widget-container,
.as-hero-media .elementor-widget-image a {
  width: 100%;
}

.as-hero-media .elementor-widget-image img {
  display: block;
}

.as-service-grid > .e-con,
.as-el-service-card,
.as-about-grid > .e-con,
.as-el-about-card {
  padding: 30px;
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  background: #fff;
}

.as-service-grid .elementor-heading-title,
.as-about-grid .elementor-heading-title {
  color: var(--as-ink);
}

.as-service-grid .as-service-number .elementor-heading-title {
  color: var(--as-blue);
  font-size: 16px;
  font-weight: 900;
}

.as-service-grid h3.elementor-heading-title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.2;
}

.as-about-grid h2.elementor-heading-title {
  font-size: 24px;
  line-height: 1.2;
}

.as-service-grid .elementor-widget-text-editor,
.as-about-grid .elementor-widget-text-editor,
.as-el-intro .elementor-widget-text-editor,
.as-el-project-description {
  color: var(--as-muted);
  line-height: 1.7;
}

.as-el-intro {
  padding-top: 90px;
  padding-bottom: 36px;
}

.as-el-intro h1.elementor-heading-title {
  max-width: 900px;
  margin: 0;
  color: var(--as-ink);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.as-el-intro .elementor-widget-text-editor {
  max-width: 800px;
  font-size: 18px;
}

.as-el-form-section,
.as-el-admin-section {
  padding-top: 20px;
}

.as-el-project-content {
  width: 100%;
}

.as-el-project-description {
  font-size: 18px;
}

/* Mantener visibles las columnas configuradas en escritorio aunque Elementor
   agregue anchos automáticos a los contenedores internos. */
@media (min-width: 981px) {
  .as-service-grid > .e-con {
    width: auto;
  }

  .as-about-grid > .e-con {
    width: auto;
  }
}

@media (max-width: 980px) {
  .as-hero-inner > .e-con,
  .as-service-grid > .e-con,
  .as-about-grid > .e-con {
    width: 100% !important;
  }
}

@media (max-width: 680px) {
  .as-el-intro {
    width: min(100% - 28px, 1180px);
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .as-el-hero-title .elementor-heading-title {
    font-size: clamp(40px, 13vw, 60px);
  }

  .as-service-grid > .e-con,
  .as-about-grid > .e-con {
    padding: 24px;
  }
}

/* ================================================================
   Compatibilidad reforzada con contenedores Elementor
   AllSaavedra Core 1.5.0
   ================================================================ */
.elementor-page .e-con.as-el-hero-section,
.elementor-editor-active .e-con.as-el-hero-section {
  --width: 100%;
  width: 100%;
  max-width: none;
  padding: 42px 20px 26px;
}

.elementor-page .e-con.as-hero-inner,
.elementor-editor-active .e-con.as-hero-inner {
  --width: 100%;
  width: min(1240px, 100%);
  max-width: 1240px;
  min-height: 620px;
  margin-inline: auto;
  padding: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 48px;
}

.elementor-page .e-con.as-hero-copy,
.elementor-editor-active .e-con.as-hero-copy,
.elementor-page .e-con.as-hero-media,
.elementor-editor-active .e-con.as-hero-media {
  --width: 100%;
  width: 100%;
  max-width: none;
}

.elementor-page .e-con.as-hero-copy,
.elementor-editor-active .e-con.as-hero-copy {
  padding: 50px 0;
}

.elementor-page .e-con.as-hero-media,
.elementor-editor-active .e-con.as-hero-media {
  padding: 0;
}

.elementor-page .e-con.as-button-row,
.elementor-editor-active .e-con.as-button-row {
  --width: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.elementor-page .e-con.as-el-section,
.elementor-editor-active .e-con.as-el-section {
  --width: min(1180px, calc(100% - 40px));
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-inline: auto;
}

.elementor-page .e-con.as-section-heading,
.elementor-editor-active .e-con.as-section-heading {
  --width: 100%;
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 0;
}

.elementor-page .e-con.as-heading-split,
.elementor-editor-active .e-con.as-heading-split {
  max-width: none;
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.elementor-page .e-con.as-service-grid,
.elementor-editor-active .e-con.as-service-grid {
  --width: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.elementor-page .e-con.as-service-grid > .e-con,
.elementor-editor-active .e-con.as-service-grid > .e-con {
  --width: 100%;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  height: 100%;
}

.elementor-page .e-con.as-about-grid,
.elementor-editor-active .e-con.as-about-grid {
  --width: min(1180px, calc(100% - 40px));
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-inline: auto;
  padding: 78px 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.elementor-page .e-con.as-about-grid > .e-con,
.elementor-editor-active .e-con.as-about-grid > .e-con {
  --width: 100%;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  height: 100%;
}

.elementor-page .e-con.as-projects-section,
.elementor-editor-active .e-con.as-projects-section {
  --width: 100%;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 78px max(20px, calc((100vw - 1180px) / 2));
}

.elementor-page .e-con.as-shop-section,
.elementor-editor-active .e-con.as-shop-section,
.elementor-page .e-con.as-services,
.elementor-editor-active .e-con.as-services,
.elementor-page .e-con.as-el-intro,
.elementor-editor-active .e-con.as-el-intro,
.elementor-page .e-con.as-el-form-section,
.elementor-editor-active .e-con.as-el-form-section,
.elementor-page .e-con.as-el-admin-section,
.elementor-editor-active .e-con.as-el-admin-section {
  margin-inline: auto;
}

.elementor-page .e-con.as-quote-cta,
.elementor-editor-active .e-con.as-quote-cta {
  --width: min(1180px, calc(100% - 40px));
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 48px;
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.elementor-page .as-el-section > .elementor-widget,
.elementor-page .as-el-hero-section > .elementor-widget,
.elementor-editor-active .as-el-section > .elementor-widget,
.elementor-editor-active .as-el-hero-section > .elementor-widget {
  width: 100%;
}

.elementor-page .as-hero-media .elementor-widget-image,
.elementor-page .as-hero-media .elementor-widget-image .elementor-widget-container,
.elementor-editor-active .as-hero-media .elementor-widget-image,
.elementor-editor-active .as-hero-media .elementor-widget-image .elementor-widget-container {
  height: 100%;
}

.elementor-page .as-hero-media .elementor-widget-image img,
.elementor-editor-active .as-hero-media .elementor-widget-image img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .elementor-page .e-con.as-hero-inner,
  .elementor-editor-active .e-con.as-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .elementor-page .e-con.as-service-grid,
  .elementor-editor-active .e-con.as-service-grid {
    grid-template-columns: 1fr;
  }

  .elementor-page .e-con.as-hero-media,
  .elementor-editor-active .e-con.as-hero-media {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .elementor-page .e-con.as-el-hero-section,
  .elementor-editor-active .e-con.as-el-hero-section {
    padding: 22px 14px 18px;
  }

  .elementor-page .e-con.as-hero-copy,
  .elementor-editor-active .e-con.as-hero-copy {
    padding: 36px 0 12px;
  }

  .elementor-page .e-con.as-el-section,
  .elementor-editor-active .e-con.as-el-section,
  .elementor-page .e-con.as-about-grid,
  .elementor-editor-active .e-con.as-about-grid {
    --width: min(1180px, calc(100% - 28px));
    width: min(1180px, calc(100% - 28px));
  }

  .elementor-page .e-con.as-heading-split,
  .elementor-editor-active .e-con.as-heading-split,
  .elementor-page .e-con.as-quote-cta,
  .elementor-editor-active .e-con.as-quote-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .elementor-page .e-con.as-about-grid,
  .elementor-editor-active .e-con.as-about-grid {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .elementor-page .e-con.as-projects-section,
  .elementor-editor-active .e-con.as-projects-section {
    padding: 56px 14px;
  }

  .elementor-page .e-con.as-quote-cta,
  .elementor-editor-active .e-con.as-quote-cta {
    --width: calc(100% - 28px);
    width: calc(100% - 28px);
    padding: 30px;
  }
}

/* ================================================================
   Corrección definitiva del hero editable de Elementor
   AllSaavedra Core 1.7.0 / Tema 1.3.0

   Elementor escribe CSS por página después de las hojas del tema. Estas
   reglas usan !important únicamente en la portada para impedir que sus
   colores globales vuelvan blanco el fondo o oculten el título.
   ================================================================ */
html body.elementor-page .elementor-element.e-con.as-el-hero-section,
html body.elementor-editor-active .elementor-element.e-con.as-el-hero-section {
  --width: 100% !important;
  --max-width: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 42px 20px 26px !important;
  background-color: #081d35 !important;
  background-image: linear-gradient(135deg, #081d35 0%, #0e3b70 58%, #285f9c 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  color: #fff !important;
}

html body.elementor-page .elementor-element.e-con.as-hero-inner,
html body.elementor-editor-active .elementor-element.e-con.as-hero-inner {
  --width: 100% !important;
  --max-width: 1240px !important;
  width: 100% !important;
  max-width: 1240px !important;
  min-height: 620px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
  align-items: center !important;
  gap: 48px !important;
  background: transparent !important;
}

html body.elementor-page .elementor-element.e-con.as-hero-copy,
html body.elementor-editor-active .elementor-element.e-con.as-hero-copy,
html body.elementor-page .elementor-element.e-con.as-hero-media,
html body.elementor-editor-active .elementor-element.e-con.as-hero-media {
  --width: 100% !important;
  --max-width: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  background: transparent !important;
}

html body.elementor-page .elementor-element.e-con.as-hero-copy,
html body.elementor-editor-active .elementor-element.e-con.as-hero-copy {
  padding: 50px 0 !important;
}

html body.elementor-page .as-el-hero-section .as-eyebrow .elementor-heading-title,
html body.elementor-editor-active .as-el-hero-section .as-eyebrow .elementor-heading-title {
  color: #b7d8ff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body.elementor-page .as-el-hero-section .as-el-hero-title .elementor-heading-title,
html body.elementor-editor-active .as-el-hero-section .as-el-hero-title .elementor-heading-title {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body.elementor-page .as-el-hero-section .as-el-hero-text,
html body.elementor-page .as-el-hero-section .as-el-hero-text p,
html body.elementor-page .as-el-hero-section .as-el-hero-text .elementor-widget-container,
html body.elementor-editor-active .as-el-hero-section .as-el-hero-text,
html body.elementor-editor-active .as-el-hero-section .as-el-hero-text p,
html body.elementor-editor-active .as-el-hero-section .as-el-hero-text .elementor-widget-container {
  color: #d9e7f7 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body.elementor-page .as-el-hero-section .as-el-button-primary .elementor-button,
html body.elementor-editor-active .as-el-hero-section .as-el-button-primary .elementor-button {
  border-color: #fff !important;
  background-color: #fff !important;
  color: #0e3b70 !important;
}

html body.elementor-page .as-el-hero-section .as-el-button-secondary .elementor-button,
html body.elementor-editor-active .as-el-hero-section .as-el-button-secondary .elementor-button {
  border-color: rgba(255, 255, 255, .55) !important;
  background-color: transparent !important;
  color: #fff !important;
}

html body.elementor-page .as-hero-media .elementor-widget-image,
html body.elementor-page .as-hero-media .elementor-widget-image .elementor-widget-container,
html body.elementor-editor-active .as-hero-media .elementor-widget-image,
html body.elementor-editor-active .as-hero-media .elementor-widget-image .elementor-widget-container {
  width: 100% !important;
  height: auto !important;
}

html body.elementor-page .as-hero-media .elementor-widget-image img,
html body.elementor-editor-active .as-hero-media .elementor-widget-image img {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 560px !important;
  min-height: 0 !important;
  max-height: 560px !important;
  border-radius: 28px !important;
  object-fit: cover !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28) !important;
}

@media (max-width: 980px) {
  html body.elementor-page .elementor-element.e-con.as-hero-inner,
  html body.elementor-editor-active .elementor-element.e-con.as-hero-inner {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
  }

  html body.elementor-page .elementor-element.e-con.as-hero-media,
  html body.elementor-editor-active .elementor-element.e-con.as-hero-media {
    max-width: 720px !important;
  }
}

@media (max-width: 680px) {
  html body.elementor-page .elementor-element.e-con.as-el-hero-section,
  html body.elementor-editor-active .elementor-element.e-con.as-el-hero-section {
    padding: 22px 14px 18px !important;
  }

  html body.elementor-page .elementor-element.e-con.as-hero-copy,
  html body.elementor-editor-active .elementor-element.e-con.as-hero-copy {
    padding: 36px 0 12px !important;
  }

  html body.elementor-page .as-hero-media .elementor-widget-image img,
  html body.elementor-editor-active .as-hero-media .elementor-widget-image img {
    height: min(420px, 90vw) !important;
    max-height: none !important;
  }
}

