:root {
  --apex-content: 1180px;
  --apex-gutter: clamp(16px, 3.2vw, 30px);
  --apex-border: #e6dfd2;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.w { width: 100%; max-width: var(--apex-content) !important; padding-inline: var(--apex-gutter) !important; }
.w > *, .ct-grid > *, .ct-row > *, .em-hd > *, .em-cx > *, .g2 > * { min-width: 0; }
img, svg, iframe, input, select, textarea { max-width: 100%; }
a[href^="mailto:"], .ct-row strong, .ct-row em, .em-story, .apex-files li span { overflow-wrap: anywhere; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid #ac7d36; outline-offset: 3px; }
:where(section, article, div)[id] { scroll-margin-top: 88px; }
.apex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b, .bo, .bn, .mbtn { text-align: center; text-wrap: balance; min-width: 0; }
.apex-home-hero .w { padding-block: clamp(54px, 6vw, 80px) !important; }
.apex-home-hero .w > div { max-width: 540px !important; gap: 22px !important; }
.apex-home-hero .bo { color: #fff; border-color: #c6d1dc; }
.apex-home-hero .bo:hover { color: #efd5a9; border-color: #efd5a9; }

#empieza .sc[href="Reformas.dc.html"] .sc-ph::after {
  background: linear-gradient(180deg, rgb(6 30 53 / .89), rgb(6 30 53 / .74) 72%, rgb(6 30 53 / .68));
}
#empieza .sc[href="Reformas.dc.html"] .sc-t {
  font-size: clamp(24px, 2.65vw, 37px) !important;
  padding: clamp(14px, 1.6vw, 24px) !important;
  text-wrap: balance;
}

.apex-request {
  color: #16191f;
  background: #fff;
  display: grid !important;
  align-content: start;
  gap: 18px !important;
  width: 100%;
  min-width: 0;
  border: 1px solid #d8c39f;
  padding: clamp(18px, 3vw, 28px) !important;
}
.apex-request .h3, .dk .apex-request .h3 { color: #0a2a47; font-size: clamp(24px, 3vw, 32px); margin: 0; }
.apex-request .kick, .dk .apex-request .kick { color: #795921; }
.apex-request p { margin: 0; color: #4a5260; }
.apex-request-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.apex-request-progress { height: 4px; border-radius: 20px; background: #e6dfd2; overflow: hidden; }
.apex-request-progress span { display: block; height: 100%; background: #bf9352; transition: width .2s; }
.apex-request-step, .apex-request-field, .apex-request-options { display: grid; gap: 12px; min-width: 0; }
.apex-request-step > .b { justify-self: start; }
.apex-request-field { gap: 6px; color: #0a2a47; font-size: 14px; font-weight: 600; }
.apex-request-field small { display: inline; font-weight: 400; }
.apex-request-field .fi { width: 100%; min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #a9a19a; color: #16191f; font: 400 16px/1.45 Montserrat, system-ui, sans-serif; }
.apex-request-field textarea { min-height: 88px; resize: vertical; }
.apex-request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.apex-request .fop { display: flex; justify-content: space-between; text-align: left; align-items: center; gap: 10px; min-height: 48px; border: 1px solid #d8c39f; padding: 12px 14px; font: 500 15px/1.35 Montserrat, system-ui, sans-serif; color: #0a2a47; background: #fff; cursor: pointer; }
.apex-request .fop:hover { background: #f7f4ee; }
.apex-request .fbk { min-height: 44px; padding: 5px 10px; color: #795921; background: transparent; border: 0; font: 600 14px/1.3 Montserrat, system-ui, sans-serif; cursor: pointer; }
.apex-file { display: block; width: 100%; color: #3e4956; background: #f7f4ee; border: 1px dashed #b6a483; border-radius: 10px; font: 400 14px/1.35 Montserrat, system-ui, sans-serif; padding: 8px; }
.apex-file::file-selector-button { min-height: 38px; margin-right: 10px; padding: 5px 9px; color: #0a2a47; background: #fff; border: 1px solid #c9ac78; border-radius: 6px; font: inherit; cursor: pointer; }
.apex-request-note { font-size: 13px; line-height: 1.5; }
.apex-files { margin: 0; padding: 0; list-style: none; }
.apex-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--apex-border); font-size: 14px; }
.apex-request p.apex-request-error { color: #8e2b19; font-size: 14px; }
.apex-contact-request, .apex-agenda, .apex-agenda > * { min-width: 0; }
.apex-agenda { padding: clamp(14px, 2.3vw, 26px) !important; }
.apex-agenda .h3, .apex-agenda p { margin: 0; }
.apex-agenda .meetings-iframe-container { width: 100%; min-height: 520px; border-radius: 12px; background: #fff; }
.apex-agenda iframe { display: block; width: 100% !important; border: 0; border-radius: 12px; }
.apex-calendar-error { color: #fff; }
.apex-calendar-error a { color: #efd5a9; }

.apex-service-shell { display: grid; gap: 22px; }
.apex-service-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, .8fr)) minmax(0, 2.2fr);
  grid-template-rows: repeat(var(--apex-service-rows), min-content);
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
}
.apex-service-item { display: contents; }
.apex-service-toggle { min-height: 62px; max-width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.apex-service-toggle[aria-expanded="true"] { background: #0a2a47; color: #fff; border-color: #0a2a47; }
.apex-service-panel {
  grid-column: 3;
  grid-row: 1 / span var(--apex-service-rows);
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 20px;
}
.apex-service-panel :is(h2,h3,p,ul) { margin: 0; }
.apex-service-panel .h2 { font-size: clamp(28px, 3vw, 42px) !important; }
.apex-service-panel h3 { font-size: 16px; }
.apex-service-panel p { margin-top: 5px; line-height: 1.65; }
.apex-service-panel > div > p { color: #e0e8ef; }
.apex-service-related { border-top: 1px solid #35536d; padding-top: 12px; }
.apex-service-related ul { padding-left: 20px; }
.apex-service-related a { color: #efd5a9; line-height: 1.65; }

.cf-crit-item { display: contents; }
.cf-shape { display: grid; place-items: center; gap: 6px; margin: 0; padding: 12px; background: #f1f6f8; border: 1px solid #c8dae3; border-radius: 12px; }
.cf-shape svg { display: block; width: min(100%, 210px); height: auto; }
.cf-shape figcaption { color: #0a2a47; font-size: 13px; }
#configura .cf-grid { grid-template-columns: minmax(0, 2.5fr) minmax(210px, 1fr); gap: 18px; }
#configura .cf-nav {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.1fr);
  grid-template-rows: repeat(var(--apex-criteria-rows), min-content);
  align-items: start;
  gap: 10px 14px;
}
#configura .cf-nav > p, #configura .cf-c { grid-column: 1; }
#configura .cf-p { grid-column: 2; grid-row: 1 / span var(--apex-criteria-rows); min-width: 0; }

@media (min-width: 801px) {
  .apex-home-hero { min-height: clamp(520px, 47vw, 630px) !important; }
  h1.h1, .apex-home-hero h1.h1 { font-size: clamp(43px, 5.1vw, 69px) !important; line-height: 1.04; }
  .h2, .h2[style] { font-size: clamp(32px, 3.8vw, 50px) !important; }
  .es-wrap { grid-template-columns: minmax(0, 1fr) minmax(185px, 21%) !important; gap: 0 !important; }
  .es-carlos { margin: 0 0 0 -6px !important; align-self: center; }
  .es-carlos img { width: auto !important; height: min(44vw, 510px) !important; }
  .sc-grid { gap: 28px !important; padding-bottom: 0 !important; }
  .sc-go { left: 12px !important; right: 12px !important; bottom: 12px !important; min-height: 46px !important; padding-inline: 12px !important; }
  .sc-t { font-size: clamp(26px, 2.7vw, 38px) !important; }
  section[style*="padding: 112px 0"], section[style*="padding: 104px 0"], section[style*="padding: 96px 0"], section[style*="padding: 88px 0"] { padding-block: clamp(57px, 6vw, 76px) !important; }
}
@media (min-width: 801px) and (max-width: 960px) {
  .es-wrap { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1100px) {
  .hd .nv { display: none !important; }
}
@media (max-width: 800px) {
  .w { max-width: 100% !important; }
  .hd .w { gap: 8px !important; }
  .hd .w > a[aria-label] { width: auto !important; min-width: 0; }
  .hd img { max-width: min(38vw, 135px); object-fit: contain; object-position: left; }
  .mnav a { min-height: 44px; font-size: clamp(19px, 5.5vw, 25px); }
  .mnav a.sm { min-height: 44px; font-size: 15px; }
  .mbar { gap: 5px; padding-inline: 7px; }
  .mbar a { min-width: 0; font-size: 10px; letter-spacing: .075em; white-space: normal; }
  .apex-home-hero { min-height: 0 !important; }
  .apex-home-hero .w { padding-block: 52px !important; }
  .apex-home-hero h1.h1 { font-size: clamp(37px, 9.6vw, 54px) !important; }
  .h1, h1.h1 { line-height: 1.08; overflow-wrap: break-word; }
  .h2, .h2[style] { font-size: clamp(28px, 7.5vw, 40px) !important; line-height: 1.13; }
  .em-hd, .em-tw { align-items: stretch !important; width: 100%; min-width: 0; }
  .em-tw { flex: 0 1 auto !important; container-type: normal !important; }
  .em-t2 { white-space: normal !important; font-size: clamp(19px, 5.2vw, 28px) !important; }
  .em-cx { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .em-side, .apex-service-panel { position: static !important; }
  .em-story p, .em-story ul { font-size: 16px !important; }
  .ct-grid, .apex-service-choices, #configura .cf-grid, #configura .cf-nav { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; }
  .ct-row { display: grid !important; grid-template-columns: 36px minmax(0, 1fr); padding: 12px !important; gap: 9px !important; }
  .ct-ic { width: 36px !important; height: 36px !important; }
  .ct-row strong, .ct-row em { font-size: clamp(13px, 3.7vw, 17px) !important; }
  .apex-service-panel, #configura .cf-p, #configura .cf-nav > p, #configura .cf-c { grid-column: auto; grid-row: auto; }
  .apex-service-toggle { width: 100%; min-height: 52px; }
  .sc-grid { gap: 22px !important; padding-bottom: 0 !important; }
  .sc-go { left: 10px !important; right: 10px !important; bottom: 10px !important; min-height: 44px !important; padding-inline: 10px !important; }
  .sc-t { padding: 16px !important; font-size: clamp(25px, 6.3vw, 35px) !important; }
  .cf-gs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cf-s { position: static !important; }
}
@media (max-width: 480px) {
  .apex-request-fields { grid-template-columns: minmax(0, 1fr); }
  .apex-actions > :is(.b,.bo), .apex-request-step > .b { width: 100%; }
  .cf-g { padding-inline: 8px !important; }
  .apex-agenda { padding-inline: 10px !important; }
}

.apex-cookies{position:fixed;z-index:1000;inset:auto 20px 20px;margin-inline:auto;max-width:780px;padding:18px 22px;background:#fff;color:#0a2a47;border:1px solid #d9cdb8;border-radius:14px;box-shadow:0 8px 30px #061e3530;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;font:15px/1.5 system-ui,sans-serif}
.apex-cookies[hidden]{display:none}
.apex-cookies>div:first-child{flex:1 1 300px}
.apex-cookies p{margin:6px 0 0}
.apex-cookies a{color:inherit;text-decoration:underline}
.apex-cookies>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
.apex-cookies button,.apex-cookie-settings{font:600 14px/1.25 system-ui,sans-serif;cursor:pointer}
.apex-cookies button{padding:10px 13px;min-height:44px;color:#0a2a47;background:#fff;border:1px solid #0a2a47;border-radius:6px}
.apex-cookies button:hover,.apex-cookies button:focus-visible{background:#f7f4ee}
.apex-cookie-settings{display:block;margin:16px auto 0;padding:8px 14px;border:0;background:transparent;color:inherit;text-decoration:underline}
@media(max-width:720px){.apex-cookies{inset:auto 12px 72px;padding:14px;max-height:calc(100dvh - 90px);overflow:auto}}

.apex-phase { display: contents; }
#como-trabajamos .ct-tabs { grid-template-columns: repeat(5, minmax(0,1fr)); }
#como-trabajamos .ct-panel { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
@media (max-width: 800px) {
  #como-trabajamos .ct-tabs { grid-template-columns: minmax(0,1fr); }
  #como-trabajamos .ct-panel { grid-row: auto; grid-column: auto; }
  #como-trabajamos .ct-panel > aside { padding: 20px !important; }
}

.apex-agenda iframe { min-width: 0 !important; }
.fq2-cta > .b { max-width: 100%; white-space: normal; }
@media (max-width: 360px) {
  .fq2-cta > .b { flex-shrink: 1 !important; padding-inline: 13px !important; }
  #configura .cf-gs { grid-template-columns: minmax(0, 1fr) !important; }
  .apex-agenda { margin-inline: calc(-1 * var(--apex-gutter)); padding-inline: 0 !important; }
  .apex-agenda > :not(.meetings-iframe-container) { margin-inline: 15px; }
}

.apex-request .apex-change { justify-self: start; padding-inline: 0; text-decoration: underline; }
@media (min-width: 801px) {
  .apex-home-hero .w > div { max-width: 605px !important; }
  .apex-home-hero h1.h1 { font-size: clamp(42px, 4.55vw, 63px) !important; text-wrap: balance; }
}

.ft,
.footer-card-line {
  position: relative;
}

.ft .footer-card-link {
  position: absolute;
  right: 8px;
  bottom: 4px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8fa3b6;
}

.footer-card-line .footer-card-link {
  top: 0;
  right: 0;
  bottom: auto;
  transform: translate(50%, -50%);
  background: #0a2a47;
}

.ft .footer-card-link:hover,
.ft .footer-card-link:focus-visible {
  color: #fff;
}
