html[data-layout="compact"]{scroll-padding-top:0;scroll-snap-type:none}
/* Compact home. The approved opening and the gallery own their geometry. */
html.detail-open[data-layout="compact"] {
  overflow: hidden;
}

body.compact-home > .ug-dialog {
  position: fixed;
}

/* Retain the background pattern through glass without doubling page text. */
html:is(.detail-open, .ug-dialog-open) body.compact-home > :is(main, .site-header, .site-footer) {
  visibility: hidden;
}

body.compact-home {
  --compact-panel: rgba(9, 14, 9, .18);
}

body.compact-home > .site-header {
  background: rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.compact-home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.compact-home main > .section {
  padding-block: clamp(56px, 7vw, 96px);
}

body.compact-home .section-head {
  grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 32px;
}

body.compact-home .section-head h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.05;
}

body.compact-home .section-head p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

body.compact-home .opening-copy .partners {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 0;
  grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

body.compact-home .opening-copy .partner-item {
  gap: 14px;
  font-size: 14px;
}

body.compact-home .opening-copy .partner-odoo img {
  width: 88px;
}

body.compact-home .opening-copy .partner-ccl img {
  width: 70px;
  height: auto;
  border-radius: 0;
}

body.compact-home .service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
}

body.compact-home .service-card {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid #3c4932;
  background: var(--compact-panel);
}

body.compact-home .service-card:not(.service-card-brain) {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-content: start;
}

body.compact-home .service-card-brain {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(26px, 3vw, 40px);
  border-color: #74856b;
  background: var(--compact-panel);
}

body.compact-home .service-kicker {
  display: block;
  grid-column: 1;
  color: var(--green);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.compact-home div.service-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.compact-home .service-kicker .service-mark {
  flex: none;
  width: 32px;
}

body.compact-home .service-card h3 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

body.compact-home .service-card-brain h3 {
  max-width: none;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
}

body.compact-home .service-card > p:not([class]),
body.compact-home .service-description-full,
body.compact-home .service-description-short {
  grid-column: 1;
  max-width: 62ch;
  margin: 0;
  color: #c2c9bd;
  font-size: 16px;
  line-height: 1.6;
}

body.compact-home .service-description-short {
  display: none;
}

body.compact-home .service-card-brain .service-description-full {
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .service-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #d4dccd;
  font-size: 14px;
  line-height: 1.6;
}

body.compact-home .service-mark {
  display: block;
  width: 52px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body.compact-home .service-mark img {
  display: block;
  width: 100%;
  height: auto;
}

body.compact-home .service-logo {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 88px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body.compact-home .service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

body.compact-home .service-card:not(.service-card-brain) .service-actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: 4px;
}

body.compact-home .service-card-brain .service-actions {
  margin-top: auto;
  padding-top: 12px;
}

body.compact-home .detail-link,
body.compact-home .service-actions > a:not(.btn) {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #f7f7f3;
  font: 15px/1.4 Arial, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #74856b;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color .15s ease, text-decoration-color .15s ease;
}

body.compact-home .detail-link:hover,
body.compact-home .service-actions > a:not(.btn):hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

body.compact-home .detail-link:focus-visible,
body.compact-home .service-dialog-close:focus-visible,
body.compact-home .method-step > summary:focus-visible,
body.compact-home .compact-faq summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

body.compact-home .service-card[id] {
  scroll-margin-top: var(--header-offset, 100px);
}

body.compact-home .method-intro {
  max-width: 760px;
  margin: 0 0 28px;
  color: #c2c9bd;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .compact-method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.compact-home .method-step {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid #4e5949;
}

body.compact-home .method-step > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

body.compact-home .method-step > summary::-webkit-details-marker {
  display: none;
}

body.compact-home .method-step > summary::after {
  flex: none;
  color: var(--green);
  content: '+';
  font: 22px/1 Arial, sans-serif;
}

body.compact-home .method-step[open] > summary::after {
  content: '−';
}

body.compact-home .method-step h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
}

body.compact-home .method-step > p {
  margin: 16px 0 0;
  color: #c2c9bd;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .method-step > small {
  display: block;
  margin-top: 14px;
  color: #b5c0ad;
  font-size: 13px;
  line-height: 1.5;
}

body.compact-home .contact-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

body.compact-home .contact-intro {
  min-width: 0;
}

body.compact-home .contact-intro h2 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.08;
}

body.compact-home .contact-intro > p {
  max-width: 50ch;
  margin: 0;
  color: #c2c9bd;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .compact-faq {
  margin-top: 28px;
  border-top: 1px solid #4e5949;
}

body.compact-home .compact-faq > h3 {
  margin: 18px 0 4px;
  font-size: 22px;
  line-height: 1.2;
}

body.compact-home .compact-faq details {
  border-bottom: 1px solid #4e5949;
}

body.compact-home .compact-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  list-style: none;
  color: #f7f7f3;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

body.compact-home .compact-faq summary::-webkit-details-marker {
  display: none;
}

body.compact-home .compact-faq summary > span {
  flex: none;
  color: var(--green);
  font: 22px/1 Arial, sans-serif;
}

body.compact-home .compact-faq details[open] summary > span {
  transform: rotate(45deg);
}

body.compact-home .compact-faq details > p {
  margin: 0 0 18px;
  color: #c2c9bd;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .contact-action {
  min-width: 0;
  width: 100%;
  align-items: stretch;
  gap: 18px;
}

body.compact-home .contact-form {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

body.compact-home .contact-form label {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

body.compact-home .contact-form .full {
  grid-column: 1 / -1;
}

body.compact-home .contact-form input:not([type='checkbox']),
body.compact-home .contact-form textarea {
  min-width: 0;
  min-height: 46px;
  padding-block: 12px;
  font-size: 16px;
  line-height: 1.5;
}

body.compact-home .contact-form textarea {
  min-height: 112px;
}

body.compact-home .contact-form .contact-privacy-note,
body.compact-home .contact-form .contact-consent {
  overflow-wrap: anywhere;
}

body.compact-home .contact-consent > span {
  max-width: none;
  font-size: 14px;
  line-height: 1.6;
}

body.compact-home .contact-direct {
  gap: 12px 20px;
  margin: 0;
}

body.compact-home .contact-direct a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

body.compact-home .service-dialog {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  position: fixed;
  width: min(920px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #5d6859;
  background: rgba(8, 11, 8, .32);
  color: #f7f7f3;
  overflow: auto;
  overscroll-behavior: contain;
}

body.compact-home .service-dialog::backdrop {
  background: rgba(0, 0, 0, .34);
}

body.compact-home .service-dialog-close {
  position: sticky;
  top: 12px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 12px 12px 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid #74856b;
  background: rgba(8, 11, 8, .32);
  color: #f7f7f3;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

body.compact-home .service-dialog-inner {
  padding: 12px clamp(24px, 4vw, 44px) clamp(24px, 4vw, 40px);
}

body.compact-home .service-dialog-inner h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.1;
}

body.compact-home .service-dialog-inner h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

body.compact-home .service-dialog-inner p,
body.compact-home .service-dialog-inner li {
  color: #cbd3c5;
  font-size: 15px;
  line-height: 1.7;
}

body.compact-home .service-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

body.compact-home .service-dialog-grid > * {
  min-width: 0;
}

body.compact-home .service-dialog-example {
  padding: 22px;
  border: 1px solid #4e5949;
}

body.compact-home .service-dialog-example small {
  display: block;
  color: #b5c0ad;
  font-size: 12px;
  line-height: 1.6;
}

body.compact-home .service-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #4e5949;
}

body.compact-home .service-dialog-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

body.compact-home .service-dialog-footer a:not(.btn) {
  color: var(--green);
}

body.compact-home .compact-odoo {
  margin-top: 28px;
  scroll-margin-top: 105px;
}

body.compact-home .compact-odoo .odoo-grid {
  width: 100%;
  max-width: none;
  padding: clamp(28px, 3.5vw, 48px);
  gap: clamp(24px, 4vw, 52px);
}

body.compact-home .compact-odoo .odoo-copy p {
  color: #344052;
}

body.compact-home .site-footer {
  padding-block: 26px;
}

@media (max-width: 1024px) {
  body.compact-home .compact-odoo .odoo-copy h2 {
    font-size: 48px;
  }

  body.compact-home main > .section {
    padding-block: 64px;
  }

  body.compact-home .section-head {
    gap: 24px;
    margin-bottom: 28px;
  }

  body.compact-home .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.compact-home .service-card,
  body.compact-home .service-card:not(.service-card-brain),
  body.compact-home .service-card-brain {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
  }

  body.compact-home .service-card h3,
  body.compact-home .service-card-brain h3 {
    font-size: 28px;
    line-height: 1.15;
  }

  body.compact-home .service-card-brain .service-description-full {
    font-size: 16px;
    line-height: 1.6;
  }

  body.compact-home .service-card .service-actions,
  body.compact-home .service-card:not(.service-card-brain) .service-actions {
    flex-direction: row;
    align-self: stretch;
    align-items: center;
    gap: 4px 18px;
    margin-top: auto;
    padding-top: 4px;
  }

  body.compact-home .service-mark {
    width: 38px;
  }

  body.compact-home .compact-method {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid #4e5949;
  }

  body.compact-home .method-step {
    padding: 20px 0;
  }

  body.compact-home .method-step h3 {
    font-size: 24px;
  }

  body.compact-home .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.compact-home .contact-intro,
  body.compact-home .contact-action {
    max-width: 760px;
  }

  body.compact-home .contact-intro h2 {
    max-width: 18ch;
    font-size: clamp(34px, 4.7vw, 46px);
  }

  body.compact-home .compact-faq {
    margin-top: 24px;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  body.compact-home .service-card-brain {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.compact-home .service-card:not(.service-card-brain) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  body.compact-home .compact-odoo {
    scroll-margin-top: 80px;
  }

  body.compact-home .desktop-copy {
    display: none;
  }

  body.compact-home main > .section {
    padding-block: 44px;
  }

  body.compact-home .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  body.compact-home .section-head h2 {
    font-size: clamp(32px, 8vw, 42px);
    line-height: 1.08;
  }

  body.compact-home .section-head p {
    margin-top: 12px;
    font-size: 16px;
  }

  body.compact-home .opening-copy .partners {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-block: 16px;
  }

  body.compact-home .opening-copy .partners-label {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  body.compact-home .opening-copy .partner-item {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  body.compact-home .opening-copy .partner-odoo img {
    width: 68px;
  }

  body.compact-home .opening-copy .partner-ccl img {
    width: 54px;
  }

  body.compact-home .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.compact-home .service-card,
  body.compact-home .service-card:not(.service-card-brain),
  body.compact-home .service-card-brain {
    gap: 10px;
    padding: 20px;
  }

  body.compact-home .service-card h3,
  body.compact-home .service-card-brain h3 {
    max-width: none;
    font-size: 27px;
    line-height: 1.12;
  }

  body.compact-home .service-description-full {
    display: none;
  }

  body.compact-home .service-description-short {
    display: block;
    font-size: 16px;
    line-height: 1.6;
  }

  body.compact-home .service-note {
    font-size: 14px;
    line-height: 1.6;
  }

  body.compact-home .service-mark {
    width: 30px;
  }

  body.compact-home .service-logo {
    width: 78px;
  }

  body.compact-home .service-card .service-actions,
  body.compact-home .service-card:not(.service-card-brain) .service-actions {
    margin-top: 2px;
    padding-top: 0;
  }

  body.compact-home .method-intro {
    margin-bottom: 22px;
    font-size: 16px;
  }

  body.compact-home .method-step {
    padding-block: 18px;
  }

  body.compact-home .method-step h3 {
    font-size: 22px;
  }

  body.compact-home .contact-grid {
    gap: 28px;
  }

  body.compact-home .contact-intro h2 {
    max-width: none;
    font-size: 34px;
  }

  body.compact-home .contact-intro > p {
    font-size: 16px;
  }

  body.compact-home .contact-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.compact-home .contact-form label,
  body.compact-home .contact-form .full {
    grid-column: 1;
  }

  body.compact-home .contact-direct {
    display: grid;
    justify-items: start;
    gap: 4px;
  }

  body.compact-home .service-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  body.compact-home .service-dialog-inner {
    padding: 12px 20px 24px;
  }

  body.compact-home .service-dialog-inner h2 {
    font-size: 30px;
  }

  body.compact-home .service-dialog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.compact-home .service-dialog-example {
    padding: 16px;
  }

  body.compact-home .compact-odoo .odoo-grid {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
  }

  body.compact-home .compact-odoo .odoo-copy h2 {
    font-size: 46px;
  }

  body.compact-home .compact-odoo .odoo-board {
    padding: 32px 16px 18px;
  }

  body.compact-home .compact-odoo .odoo-apps {
    padding: 22px 0;
  }

  body.compact-home .compact-odoo .odoo-apps > div {
    padding: 0;
  }

  body.compact-home .compact-odoo .odoo-app-icon {
    width: 64px;
    height: 64px;
  }

  body.compact-home .service-dialog-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.compact-home .detail-link,
  body.compact-home .service-actions > a:not(.btn) {
    transition: none;
  }
}

/* Original visual elements, retained inside the shorter content structure. */
body.compact-home .service-actions .service-brain-compact {
  display: none;
}

body.compact-home .compact-brain-desktop {
  margin-top: 72px;
  padding-block: 64px 32px;
  border-top: 1px solid #4e5949;
  scroll-margin-top: var(--header-offset, 100px);
}

body.compact-home .compact-brain-desktop .brain-story {
  position: sticky;
  top: var(--header-offset, 108px);
  min-height: 0;
  padding-bottom: 28px;
}

body.compact-home .compact-brain-desktop .brain-step {
  min-height: 65vh;
}

body.compact-home .compact-brain-desktop .brain-card {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: var(--compact-panel);
}

body.compact-home .compact-brain-desktop .question-card strong {
  background: rgba(37, 41, 37, .22);
}

body.compact-home .service-card {
  transition: border-color .3s, transform .3s;
}

body.compact-home .service-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
}

body.compact-home .service-card .solution-graphic {
  flex: none;
  width: 100%;
  max-width: 100%;
  height: 112px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  gap: 9px;
}

body.compact-home .service-card .solution-graphic span {
  background: var(--compact-panel);
}

body.compact-home .service-card:not(.service-card-brain) .solution-graphic {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  width: clamp(160px, 14vw, 210px);
  height: 132px;
  gap: 5px;
}

body.compact-home .service-card:not(.service-card-brain) .solution-graphic span {
  padding: 6px;
  font-size: 12px;
}

body.compact-home .service-card .solution-graphic-flow .icon {
  font-size: 14px;
}

body.compact-home .service-card:not(.service-card-brain) .service-actions {
  grid-column: 1;
  grid-row: auto;
}

body.compact-home #detalle-cerebro {
  width: min(1180px, calc(100% - 48px));
}

body.compact-home #detalle-conexion {
  width: min(1100px, calc(100% - 48px));
}

body.compact-home .service-dialog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

body.compact-home .service-dialog-intro > p {
  margin: 0;
}

body.compact-home .service-dialog .brain-network {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
}

body.compact-home .service-dialog .brain-network > span {
  white-space: normal;
}

body.compact-home .service-dialog .brain-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  border: 0;
}

body.compact-home .service-dialog .brain-step {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

body.compact-home .service-dialog .brain-step::before {
  display: none;
}

body.compact-home .service-dialog .brain-step h3 {
  margin: 16px 0 12px;
  font-size: 24px;
}

body.compact-home .service-dialog .brain-step > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

body.compact-home .service-dialog .brain-card {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  width: 100%;
  max-width: none;
  padding: 18px;
  margin-top: auto;
  background: var(--compact-panel);
}

body.compact-home .service-dialog .brain-card-top {
  padding-bottom: 14px;
  margin-bottom: 16px;
}

body.compact-home .service-dialog .brain-card p {
  margin: 12px 0 22px;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .service-dialog .question-card strong {
  background: rgba(37, 41, 37, .22);
}

body.compact-home .service-dialog .status-pill {
  max-width: 100%;
  line-height: 1.5;
}

body.compact-home .service-dialog .connection-map {
  height: 520px;
  margin-top: 24px;
}

body.compact-home .service-dialog .connection-core {
  background: var(--compact-panel);
}

body.compact-home .service-dialog .connection-node {
  min-height: 156px;
  padding: 16px;
  background: var(--compact-panel);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.compact-home .service-dialog .connection-node > span {
  margin-bottom: 16px;
  font-size: 12px;
}

body.compact-home .service-dialog .connection-node strong {
  font-size: 15px;
  line-height: 1.35;
}

body.compact-home .service-dialog .connection-node small {
  font-size: 14px;
  line-height: 1.5;
}

body.compact-home .service-dialog .connection-core {
  width: 104px;
  height: 104px;
}

body.compact-home .service-dialog .connection-core img {
  width: 48px;
  height: 65px;
}

body.compact-home .service-dialog .map-caption {
  margin-bottom: 0;
  font-size: 12px;
}

@media (max-width: 1024px) {
  body.compact-home .compact-brain-desktop,
  body.compact-home .service-actions > a.service-brain-desktop {
    display: none;
  }

  body.compact-home .service-actions .service-brain-compact {
    display: inline-flex;
  }

  body.compact-home .service-card:not(.service-card-brain) .solution-graphic {
    width: 100%;
    height: 108px;
    gap: 9px;
  }

  body.compact-home .service-dialog .brain-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.compact-home .service-dialog .brain-step:last-child {
    grid-column: 1 / -1;
  }

  body.compact-home .service-dialog .brain-step:last-child .brain-card {
    max-width: 420px;
  }

  body.compact-home .service-dialog .connection-map {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0;
    overflow: visible;
  }

  body.compact-home .service-dialog .connection-lines,
  body.compact-home .service-dialog .map-note {
    display: none;
  }

  body.compact-home .service-dialog .connection-core {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 20px auto 30px;
    transform: none;
  }

  body.compact-home .service-dialog .connection-node {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 150px;
    padding: 18px;
  }

  body.compact-home .service-dialog .node-a,
  body.compact-home .service-dialog .node-c {
    grid-column: 1;
  }

  body.compact-home .service-dialog .node-b,
  body.compact-home .service-dialog .node-d {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  body.compact-home #detalle-cerebro,
  body.compact-home #detalle-conexion {
    width: calc(100% - 24px);
  }

  body.compact-home .service-card .solution-graphic,
  body.compact-home .service-card:not(.service-card-brain) .solution-graphic {
    height: 102px;
  }

  body.compact-home .service-dialog-intro,
  body.compact-home .service-dialog .brain-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.compact-home .service-dialog .brain-step:last-child {
    grid-column: auto;
  }

  body.compact-home .service-dialog .brain-step:last-child .brain-card {
    max-width: none;
  }

  body.compact-home .service-dialog .brain-network {
    width: min(100%, 320px);
  }

  body.compact-home .service-dialog .connection-map {
    gap: 12px;
  }

  body.compact-home .service-dialog .connection-node {
    min-height: 0;
    padding: 12px;
  }

  body.compact-home .service-dialog .connection-node strong {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  body.compact-home .service-dialog .connection-map {
    grid-template-columns: 1fr;
  }

  body.compact-home .service-dialog .connection-node {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.compact-home .service-card {
    transition: none;
  }

  body.compact-home .service-card:hover {
    transform: none;
  }
}

body.compact-home .compact-context {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid #4e5949;
  background: var(--compact-panel);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.compact-home .compact-problem {
  margin-bottom: 24px;
}

body.compact-home .compact-examples {
  margin-top: 28px;
}

body.compact-home .compact-context > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  list-style: none;
  cursor: pointer;
}

body.compact-home .compact-context > summary::-webkit-details-marker {
  display: none;
}

body.compact-home .compact-context > summary .eyebrow {
  grid-column: 1;
  margin: 0;
  font-size: 12px;
}

body.compact-home .compact-context > summary h3 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.1;
}

body.compact-home .compact-context > summary > .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--green);
  font-size: 22px;
  transition: transform .2s ease;
}

body.compact-home .compact-context[open] > summary > .icon {
  transform: rotate(180deg);
}

body.compact-home .compact-context > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

body.compact-home .compact-problem .problem-lines {
  margin-top: 24px;
}

body.compact-home .compact-problem .problem-lines > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px 0;
}

body.compact-home .compact-problem .problem-lines h3 {
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.25;
}

body.compact-home .compact-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

body.compact-home .compact-case-grid .case-card {
  min-height: 0;
  padding: 22px;
  background: var(--compact-panel);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.compact-home .compact-case-grid .case-card h3 {
  min-height: 0;
  margin: 24px 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

body.compact-home .compact-final-statement {
  padding-bottom: 42px;
  margin-bottom: 38px;
  border-bottom: 1px solid #4e5949;
}

body.compact-home .compact-final-statement > .eyebrow {
  display: block;
  margin-bottom: 18px;
}

body.compact-home .compact-final-statement h2 {
  margin: 0;
  max-width: 27ch;
  font-size: clamp(40px, 4.1vw, 60px);
  line-height: 1.15;
}

body.compact-home .compact-final-statement h2 > span {
  color: var(--green);
}

@media (min-width: 1600px) {
  body.compact-home .compact-method {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body.compact-home .compact-final-statement h2 {
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  body.compact-home > .site-header nav {
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  body.compact-home .compact-context {
    padding: 20px;
  }

  body.compact-home .compact-context > summary {
    gap: 8px 14px;
  }

  body.compact-home .compact-context > summary h3 {
    font-size: 25px;
  }

  body.compact-home .compact-case-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.compact-home .compact-case-grid .case-card {
    padding: 18px;
  }

  body.compact-home .compact-final-statement {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  body.compact-home .compact-final-statement h2 {
    font-size: clamp(30px, 8vw, 38px);
  }
}

/* Editorial scale. Keep diagrams legible without changing interface demos. */
body.compact-home .eyebrow {
  font-size: 12px;
  line-height: 1.6;
}

body.compact-home .partners-label {
  font-size: 12px;
}

body.compact-home .client-link,
body.compact-home .mobile-nav-actions,
body.compact-home .site-footer a {
  font-size: 14px;
}

body.compact-home .compact-case-grid .case-card li b {
  font-size: 13px;
}

body.compact-home .brain-network > span {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

body.compact-home .service-card .solution-graphic span {
  font-size: 12px;
  line-height: 1.45;
}

body.compact-home > .site-header nav,
body.compact-home .header-cta {
  font-size: 14px;
}

body.compact-home .compact-brain-desktop .brain-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: start;
}

body.compact-home .compact-brain-desktop .brain-story h2 {
  font-size: clamp(38px, 3.4vw, 54px);
  line-height: 1.08;
  margin: 20px 0;
}

body.compact-home .compact-brain-desktop .brain-story > p {
  max-width: 55ch;
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .compact-brain-desktop .brain-network {
  width: min(100%, 480px);
  margin: 24px 0 0;
}

body.compact-home .compact-brain-desktop .brain-step {
  padding-top: 24px;
  padding-bottom: 56px;
}

body.compact-home .compact-brain-desktop .brain-step::before {
  top: 30px;
}

body.compact-home .brain-step > p,
body.compact-home .brain-card p,
body.compact-home .compact-case-grid .case-card > p,
body.compact-home .compact-case-grid .case-answer p,
body.compact-home .compact-case-grid .case-card li {
  font-size: 16px;
  line-height: 1.65;
}

body.compact-home .brain-card-top,
body.compact-home .brain-card small,
body.compact-home .answer-label,
body.compact-home .case-label,
body.compact-home .compact-case-grid .case-answer small,
body.compact-home .odoo-board-bottom,
body.compact-home .site-footer span {
  font-size: 13px;
  line-height: 1.5;
}

body.compact-home .underlink,
body.compact-home .opening-down,
body.compact-home .contact-direct a,
body.compact-home .contact-submit {
  font-size: 15px;
}

body.compact-home .contact-form-note,
body.compact-home .contact-privacy-note,
body.compact-home .contact-consent,
body.compact-home .form-feedback {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.compact-home .contact-form label > small {
  font-size: 13px;
  line-height: 1.5;
}

body.compact-home .compact-odoo .odoo-copy p {
  font-size: 16px;
}

@media (min-width: 701px) and (max-width: 1024px) {
  body.compact-home .section-head {
    grid-template-columns: minmax(140px, .3fr) minmax(0, 1fr);
  }

  body.compact-home .service-card-brain {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px 28px;
    align-items: start;
  }

  body.compact-home .service-card-brain > * {
    grid-column: 1;
  }

  body.compact-home .service-card-brain > .service-kicker {
    grid-column: 1 / -1;
  }

  body.compact-home .service-card-brain > .solution-graphic {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    height: 170px;
  }

  body.compact-home .service-card-brain .service-description-full {
    max-width: none;
  }

  body.compact-home .compact-odoo .odoo-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    padding: 32px;
    gap: 28px;
  }

  body.compact-home .compact-odoo .odoo-copy h2 span {
    white-space: normal;
  }
}

@media (min-width: 1025px) and (max-height: 820px) {
  body.compact-home .compact-brain-desktop .brain-story h2 {
    font-size: clamp(36px, 3.1vw, 44px);
    margin-block: 16px;
  }

  body.compact-home .compact-brain-desktop .brain-network {
    width: min(100%, 380px);
    margin-top: 14px;
  }
}

@media (min-width: 1025px) and (max-height: 700px) {
  body.compact-home .compact-brain-desktop .brain-story {
    position: relative;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.compact-home .compact-context > summary > .icon {
    transition: none;
  }
}


/* Las dos alianzas se leen como pares: Odoo se explica y el sello CCL se sostiene por sí solo. */
body.compact-home .opening-copy .partners {
  grid-template-columns: minmax(0, 1.25fr) minmax(168px, .75fr);
  gap: 0;
  align-items: stretch;
}

body.compact-home .opening-copy .partner-odoo {
  padding-right: clamp(22px, 4vw, 56px);
}

body.compact-home .opening-copy .partner-ccl {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 16px clamp(22px, 4vw, 48px);
  border-left: 1px solid rgba(115, 132, 101, .48);
}

body.compact-home .opening-copy .partner-ccl img {
  width: clamp(138px, 13vw, 176px);
  max-width: 100%;
  height: auto;
  border-radius: 16% / 24%;
}

@media (max-width: 700px) {
  body.compact-home .opening-copy .partners { grid-template-columns: minmax(0, 1.15fr) minmax(122px, .85fr); }
  body.compact-home .opening-copy .partner-odoo { padding-right: 14px; }
  body.compact-home .opening-copy .partner-ccl { min-height: 104px; padding: 12px 14px; }
  body.compact-home .opening-copy .partner-ccl img { width: clamp(112px, 32vw, 138px); }
}

/* La relación Odoo se lee como una sola firma: texto, logotipo y enlace en una misma línea. */
body.compact-home .opening-copy .partner-odoo {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: center;
  align-content: center;
  column-gap: clamp(12px, 1.5vw, 20px);
  min-height: 132px;
}

body.compact-home .opening-copy .partner-odoo > span:first-child {
  margin-left: 0;
  align-self: center;
  white-space: nowrap;
}

body.compact-home .opening-copy .partner-odoo img {
  width: clamp(100px, 8.5vw, 118px);
}

@media (max-width: 700px) {
  body.compact-home .opening-copy .partner-odoo {
    min-height: 104px;
    column-gap: 8px;
  }

  body.compact-home .opening-copy .partner-odoo img { width: clamp(68px, 18vw, 82px); }
}


/* Una sola franja clara une las alianzas y libera los logotipos del fondo gráfico. */
body.compact-home .opening-copy .partners {
  position: relative;
  z-index: 1;
  padding-block: clamp(28px, 3vw, 42px);
  background: #eef0e9;
  border-block: 0;
  box-shadow: 0 0 0 100vmax #eef0e9;
  clip-path: inset(0 -100vmax);
}

body.compact-home .opening-copy .partner-item,
body.compact-home .opening-copy .partner-odoo > span:first-child {
  color: #182014;
}

body.compact-home .opening-copy .partner-ccl {
  border-left-color: rgba(24, 32, 20, .22);
}

body.compact-home .opening-copy .partner-ccl img {
  box-shadow: 0 8px 22px rgba(31, 38, 26, .12);
}

@media (max-width: 700px) {
  body.compact-home .opening-copy .partners { padding-block: 22px; }
}


/* El sello CCL conserva su archivo original y se integra sin tarjeta de fondo. */
body.compact-home.reading-light .opening-copy .partner-ccl img {
  width: clamp(190px, 18vw, 250px);
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 700px) {
  body.compact-home.reading-light .opening-copy .partner-ccl img {
    width: clamp(142px, 36vw, 172px);
  }
}

/* Las tarjetas explican el servicio con un flujo legible, no con iconos abstractos. */
body.compact-home .solution-graphic-meaning {
  gap: 10px;
  color: #edf2e9;
}

body.compact-home .solution-graphic-meaning .meaning-card,
body.compact-home .solution-graphic-meaning .meaning-metric,
body.compact-home .solution-graphic-meaning .meaning-node,
body.compact-home .solution-graphic-meaning .meaning-core {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(184, 200, 174, .5);
  background: rgba(238, 240, 233, .07);
  color: #edf2e9;
  text-align: center;
}

body.compact-home .solution-graphic-meaning b,
body.compact-home .solution-graphic-meaning small {
  display: block;
  font: inherit;
}

body.compact-home .solution-graphic-meaning b { font-weight: 700; }
body.compact-home .solution-graphic-meaning small { margin-top: 3px; color: #b7c1b1; font-size: .83em; }
body.compact-home .solution-graphic-meaning .meaning-card { width: min(29%, 104px); min-height: 58px; padding: 7px; font-size: 11px; line-height: 1.25; }
body.compact-home .solution-graphic-meaning .meaning-core { width: 58px; height: 58px; border-color: var(--green); background: rgba(199, 255, 30, .12); color: var(--green); font-size: 10px; font-weight: 700; }
body.compact-home .solution-graphic-meaning .meaning-link { width: min(9%, 28px); height: 1px; flex: 1 1 20px; background: var(--green); }
body.compact-home .solution-graphic-meaning .meaning-link::after { content: '›'; display: block; margin-top: -14px; color: var(--green); font-size: 22px; font-style: normal; text-align: right; }

body.compact-home .solution-graphic-software.solution-graphic-meaning { flex-direction: row; align-items: stretch; justify-content: center; }
body.compact-home .solution-graphic-meaning .meaning-metric { width: min(29%, 84px); min-height: 70px; padding: 7px; align-content: center; }
body.compact-home .solution-graphic-meaning .meaning-metric b { color: var(--green); font: 29px/1 Righteous, Arial, sans-serif; }
body.compact-home .solution-graphic-meaning .meaning-metric small { font-size: 10px; }

body.compact-home .solution-graphic-meaning .meaning-node { width: min(28%, 88px); min-height: 56px; padding: 7px; font-size: 10px; line-height: 1.25; }
body.compact-home .solution-graphic-meaning .meaning-node-main { border-color: var(--green); background: rgba(199, 255, 30, .12); color: var(--green); font-weight: 700; }

/* La galería abre un descanso cálido y mantiene el patrón con contraste bajo. */
body.compact-home .projects {
  position: relative;
  isolation: isolate;
  color: #182014;
}

body.compact-home .projects::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: #eef0e9;
  background-image: repeating-linear-gradient(-28deg, transparent 0 26px, rgba(111, 130, 91, .095) 27px 28px), radial-gradient(circle at 76% 24%, rgba(199, 255, 30, .14), transparent 28%);
}

body.compact-home .projects .section-head h2 { color: #182014; }
body.compact-home .projects .unified-gallery { --ug-line: #aab4a4; --ug-muted: #566253; color: #182014; }
body.compact-home .projects .unified-gallery button { border-color: #aab4a4; background: rgba(255, 255, 251, .72); color: #182014; }
body.compact-home .projects .unified-gallery button:hover { border-color: #6e8920; }
body.compact-home .projects .ug-surface { border-color: #aab4a4; background: rgba(255, 255, 251, .36); }
body.compact-home .projects .ug-viewport { scrollbar-color: #8b9d82 #eef0e9; }
body.compact-home .projects .ug-panel > .ug-screen { border-color: #aab4a4; box-shadow: 0 22px 45px rgba(28, 38, 23, .16); }
body.compact-home .projects .ug-screen > .mock-app {
  --app-bg: #f8f9f4 !important;
  --app-text: #182014 !important;
  --app-muted: #586354 !important;
  --app-line: #c3cbc0 !important;
  --app-raised: #eef0e9 !important;
  background: #f8f9f4;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.compact-home .projects .ug-screen .mock-card { background: #fff; }
body.compact-home .projects .ug-screen .mock-app button:hover,
body.compact-home .projects .ug-screen .mock-app button[aria-pressed=true] { background: #c7ff1e; color: #182014; }
body.compact-home .projects .ug-counter { color: #566253; }

body.compact-home .projects .ug-screen > .c4-demo { background: #f8f9f4; }
body.compact-home .projects .c4-demo-main { background: linear-gradient(135deg, #f9faf5, #eef0e9 56%, #e5ebdf); }
body.compact-home .projects .c4-demo-heading small,
body.compact-home .projects .c4-time,
body.compact-home .projects .c4-activity small,
body.compact-home .projects .c4-dependency span { color: #586354; }
body.compact-home .projects .c4-tabs { border-color: #c3cbc0; }
body.compact-home .projects .c4-tabs button[aria-selected=true] { border-color: #779341; background: #dceab8; color: #182014; }
body.compact-home .projects .c4-gantt-row { border-color: #d0d6cb; color: #182014; }
body.compact-home .projects .c4-activity { border-color: #c3cbc0; color: #182014; background: rgba(255,255,251,.58); }
body.compact-home .projects .c4-activity b,
body.compact-home .projects .c4-dependency i::after { color: #5f7819; }
body.compact-home .projects .c4-dependency { color: #182014; }
body.compact-home .projects .c4-dependency i { background: #789357; }

@media (max-width: 700px) {
  body.compact-home .solution-graphic-meaning .meaning-card { width: min(29%, 98px); font-size: 10px; }
  body.compact-home .solution-graphic-meaning .meaning-core { width: 52px; height: 52px; }
  body.compact-home .projects .ug-viewport { min-height: 560px; perspective: none; }
  body.compact-home .projects .ug-panel { width: calc(100% - 20px); }
  body.compact-home .projects .ug-panel[data-camera-position=left],
  body.compact-home .projects .ug-panel[data-camera-position=right],
  body.compact-home .projects .ug-panel[data-camera-position=far-left],
  body.compact-home .projects .ug-panel[data-camera-position=far-right] { visibility: hidden; opacity: 0; pointer-events: none; }
  body.compact-home .projects .ug-panel[data-camera-position=center] { transform: translateX(-50%); }
}

body.compact-home .projects { z-index: 0; }

/* El blanco cálido ocupa toda la sección: el patrón queda detrás del contenido. */
body.compact-home .projects::before { z-index: 0; }
body.compact-home .projects > * { position: relative; z-index: 1; }

body.compact-home .projects {
  background-color: #eef0e9;
  background-image: repeating-linear-gradient(-28deg, transparent 0 26px, rgba(111, 130, 91, .095) 27px 28px), radial-gradient(circle at 76% 24%, rgba(199, 255, 30, .14), transparent 28%);
}
body.compact-home .projects::before { display: none; }
