:root {
  --background: #f2f6fa;
  --foreground: #1d3045;
  --blue-dark: #132d48;
  --blue: #215689;
  --muted: #4a5c70;
  --line: #dbe4ed;
}
html { scroll-behavior: auto; scroll-padding-top: 96px; }
body {
  background:
    radial-gradient(ellipse at 85% 0, #d9e9f7 0, transparent 740px),
    linear-gradient(180deg, #eef4f9, #f7f9fc 920px, #f2f6fa);
  color: var(--foreground);
}
.site-shell { width: min(1360px, 100%); padding-inline: clamp(16px, 3vw, 40px); }
.site-header {
  top: 12px;
  gap: clamp(12px, 1.3vw, 18px);
  align-items: center;
  padding: 9px 11px 9px 19px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #f8fbfe;
  box-shadow: 0 7px 22px #163c6120, inset 0 1px 0 #ffffff;
  backdrop-filter: none;
}
@supports (backdrop-filter: blur(6px)) {
  @media (min-width: 1081px) {
    .site-header {
      background: rgb(250 253 255 / 88%);
      backdrop-filter: blur(6px);
    }
  }
}
.site-header .brand { min-width: 0; flex: 0 0 auto; }
.site-header .brand img { width: clamp(138px, 13.4vw, 184px); }
.site-header .nav-links { gap: 2px; }
.site-header .nav-links a {
  padding: 9px clamp(7px, .67vw, 11px);
  color: #354b61;
  font-size: .91rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-header .nav-links a[data-active] {
  background: #e6eff8;
  color: #173d61;
  font-weight: 600;
}
.site-header .nav-links a:hover { background: #eaf2f9; }
.site-header .header-search {
  position: relative;
  flex: 0 1 172px;
  min-width: 124px;
  margin: 0;
  gap: 0;
}
.site-header .header-search input {
  min-width: 0;
  height: 38px;
  padding: 0 33px 0 12px;
  border: 1px solid #d6e4f0;
  color: #213e5a;
  background: #f2f7fb;
  font-size: .81rem;
}
.site-header .header-search input::placeholder { color: #566e85; }
.site-header .header-search button {
  position: absolute;
  inset: 3px 3px 3px auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
}
.site-header .header-search button:hover { background: #dcebf8; }
.site-header .header-cta {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #175437;
  background: #e4f3eb;
  border: 1px solid #d0e9db;
  box-shadow: none;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-header .header-cta:hover { background: #d7eddf; }
.site-header .menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid #d6e4f0;
  background: #f6faff;
}
.site-header .menu-toggle span { width: 16px; height: 1px; }
.site-header a:focus-visible,
.site-header input:focus-visible,
.site-header button:focus-visible,
.business-card--link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.section-panel {
  border: 1px solid #e1e9f1;
  border-radius: 28px;
  box-shadow: 0 8px 24px #223e5810;
  backdrop-filter: none;
}
.hero.section-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  gap: clamp(22px, 4.5vw, 64px);
  padding: clamp(24px, 4.4vw, 64px);
  background: linear-gradient(118deg, #fcfdff, #f4f9fe 58%, #e6f0f9);
}
.hero::before, .solar-section::before { content: none; }
.hero h1, .page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(2.5rem, 4.35vw, 4.25rem); }
.hero .hero-copy p, .page-hero p {
  max-width: 55ch;
  font-size: clamp(1rem, 1.42vw, 1.16rem);
  line-height: 1.6;
}
.eyebrow { color: #32638f; font-weight: 650; letter-spacing: .095em; }
.eyebrow::before { width: 17px; }
.eyebrow-solar { color: #935315; }
.section-heading h2 { font-size: clamp(2rem, 3.7vw, 3.45rem); line-height: 1.08; }
.hero-card {
  position: relative;
  align-self: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 23px;
  box-shadow: 0 12px 26px #173b6425;
  overflow: hidden;
}
.hero-image-wrap { display: block; aspect-ratio: 45 / 32; min-height: 0; border-radius: 0; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-card-body {
  position: absolute;
  left: 13px;
  bottom: 13px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 26px);
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 13px;
  background: rgb(249 253 255 / 94%);
}
.hero .hero-card-body strong { color: #284d70; font-size: .96rem; font-weight: 650; }
.hero .hero-card-body span { color: #3d5871; font-size: .75rem; }
.btn,
.project-line-card--link b { font-weight: 650; }
.btn-primary { background: #234e77; box-shadow: 0 3px 9px #183f6820; }
.btn-secondary { color: #234e77; background: #f7fbff; border: 1px solid #d7e5f0; }
.btn:hover { transform: none; }
.stats-bar strong { font-weight: 680; }
.stats-bar span { font-weight: 550; }
section#servicios { padding-block: clamp(34px, 5vw, 66px); }
.business-grid { gap: clamp(14px, 2vw, 25px); }
.business-card.business-card--visual {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce6ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 10px #2545630d;
}
.business-card--visual:hover { border-color: #93b3d0; box-shadow: 0 5px 14px #25456318; }
.business-card--visual > img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.business-card .business-card-copy { display: grid; grid-template-rows: auto 1fr auto; padding: 16px 19px 18px; }
.business-card--visual h3 { margin-bottom: 7px; font-size: clamp(1.12rem, 1.7vw, 1.42rem); font-weight: 650; line-height: 1.23; }
.business-card--visual p { margin-bottom: 13px; color: #4a5c70; font-size: .94rem; line-height: 1.48; }
.business-card .business-card-action { color: #245587; font-size: .875rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.contact-grid a { min-width: 0; }
.contact-grid strong { overflow-wrap: anywhere; }
.whatsapp-icon { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-inline-end: .34em; }
.whatsapp-icon--text { margin-inline-start: .2em; }
.whatsapp-action:not(.whatsapp-card) { display: inline-flex; align-items: center; gap: .38em; }
.whatsapp-action:not(.whatsapp-card) .whatsapp-icon { margin: 0; }
.whatsapp-action.btn-primary { color: #174b35; background: #deefe5; border: 1px solid #cce5d6; }
.whatsapp-action.btn-primary:hover { background: #d3e9dc; }
.whatsapp-action.btn-solar { color: #50340f; }
.project-browser-host .folder-card { content-visibility: auto; contain-intrinsic-size: auto 228px; }
.project-browser-host .archive-image-card { content-visibility: auto; contain-intrinsic-size: auto 230px; }
.archive-loading { padding: 18px; color: var(--muted); }
.site-footer { border-top: 1px solid #dce6ef; margin-top: 44px; padding-top: 32px; }
.site-footer img { width: min(180px, 80%); }

@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; padding: 9px 12px; gap: 8px; border-radius: 18px; }
  .site-header .menu-toggle { order: 2; margin-left: 0; }
  .site-header .header-cta { order: 1; width: auto; margin-left: auto; }
  .site-header .nav-links { order: 3; display: none; }
  .site-header .nav-links.is-open { display: grid; grid-template-columns: 1fr 1fr; max-height: none; padding-top: 5px; }
  .site-header .nav-links a { background: #f2f7fb; border-radius: 10px; padding: 9px 12px; }
  .site-header .header-search { order: 4; display: none; flex: 1 0 100%; margin: 2px 0 4px; }
  .site-header .menu-toggle[aria-expanded="true"] ~ .header-search { display: flex; }
}
@media (max-width: 820px) {
  .hero.section-panel { grid-template-columns: 1fr; }
  .hero h1, .page-hero h1 { font-size: clamp(2.15rem, 7.8vw, 3.65rem); }
  .hero-card { border-radius: 17px; }
}
@media (max-width: 540px) {
  .site-shell { padding-inline: 12px; }
  .site-header .brand img { width: clamp(108px, 35vw, 142px); }
  .site-header .header-cta { padding: 8px 9px; font-size: .79rem; }
  .site-header .menu-toggle { width: 34px; height: 34px; }
  .hero.section-panel { gap: 20px; padding: 20px; }
  .business-grid { grid-template-columns: 1fr; }
  .business-card--visual > img { aspect-ratio: 2 / 1; }
  .section-panel { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header *, .btn, .business-card--visual { transition: none; }
}
