/* Mobile presentation only. Desktop rules live in the approved stylesheets. */
@media (max-width: 800px) {
  html { scroll-padding-top: 16px; }

  body.dg-menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  body:has(.hero-r1) .site-header {
    border-bottom: 0;
    background: linear-gradient(180deg, #020910f2 0%, #020910c7 62%, #02091000 100%);
  }

  body:has(.hero-r1) .header-inner {
    width: calc(100% - 28px);
    max-width: none;
    height: 72px;
    margin-inline: auto;
    padding: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  body:has(.hero-r1) .brand {
    width: auto;
    max-width: 132px;
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
  }

  body:has(.hero-r1) .brand img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
  }

  body:has(.hero-r1) .desktop-nav { display: none; }

  body:has(.hero-r1) .header-contact {
    margin: 0 0 0 auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 4px;
    border-bottom: 0;
    color: #d7e4f1;
    font-size: 13px;
    gap: 8px;
    white-space: nowrap;
  }

  body:has(.hero-r1) .menu-toggle {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
  }

  body:has(.hero-r1) .menu-toggle span {
    width: 18px;
    margin: 0;
  }

  body:has(.hero-r1) .mobile-nav {
    display: none;
  }

  body:has(.hero-r1) .site-header.is-open {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    background: #07111c;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body:has(.hero-r1) .site-header.is-open .header-inner {
    width: calc(100% - 28px);
    flex: 0 0 auto;
    background: #07111c;
  }

  body:has(.hero-r1) .site-header.is-open .mobile-nav {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex: 1 1 auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    overflow: auto;
    overscroll-behavior: contain;
    background: transparent;
    border: 0;
    padding: 6px 4px 28px;
    min-height: 0;
  }

  body:has(.hero-r1) .mobile-nav a {
    min-height: 56px;
    padding-inline: 8px;
    font-size: 18px;
    border-bottom: 1px solid #ffffff24;
  }

  body:has(.hero-r1) .mobile-nav a:active { color: #8ec8ff; }

  body:has(.hero-r1) .hero-r1 {
    height: auto;
    min-height: 100svh;
    padding: 74px 0 24px;
    overflow: hidden;
}

  body:has(.hero-r1) .r1-stage {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 32px);
    max-width: 860px;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
    transform: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
  }

  body:has(.hero-r1) .r1-floor,
  body:has(.hero-r1) .r1-technical-field,
  body:has(.hero-r1) .r1-ground-light,
  body:has(.hero-r1) .r1-satellite-glow { display: none; }

  body:has(.hero-r1) .r1-top-note { order: 1; grid-column: 1 / -1; }
  body:has(.hero-r1) .r1-art { order: 2; grid-column: 1 / -1; }
  body:has(.hero-r1) .r1-capabilities { order: 3; grid-column: 1 / -1; }
  body:has(.hero-r1) .r1-conversation { order: 4; grid-column: 1 / -1; }
  body:has(.hero-r1) .r1-bottom-note { order: 5; }
  body:has(.hero-r1) .r1-bottom-right { order: 6; }

  body:has(.hero-r1) .r1-microcopy {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.45;
    color: #b7c9da;
  }

  body:has(.hero-r1) .r1-microcopy::before {
    width: 28px;
    height: 2px;
    margin-bottom: 8px;
  }

  body:has(.hero-r1) .r1-top-note {
    max-width: 11em;
    color: #f5f8fc;
    font-size: clamp(30px, 8vw, 52px);
    font-weight: 550;
    letter-spacing: -0.048em;
    line-height: 0.98;
  }

  body:has(.hero-r1) .r1-top-note::before { margin-bottom: 12px; }

  body:has(.hero-r1) .r1-top-note span { display: block; white-space: normal; }

  body:has(.hero-r1) .r1-art {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 560px);
    height: clamp(180px, 52vw, 360px);
    justify-self: center;
    margin: 8px 0 10px;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  body:has(.hero-r1) .r1-art img {
    position: absolute;
    width: 170%;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  body:has(.hero-r1) .r1-capabilities {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  body:has(.hero-r1) .r1-capability,
  body:has(.hero-r1) .r1-capability--software,
  body:has(.hero-r1) .r1-capability--ai,
  body:has(.hero-r1) .r1-capability--cyber,
  body:has(.hero-r1) .r1-capability--infra {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-width: 0;
  }

  body:has(.hero-r1) .r1-capability-link {
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #2d6d98;
    border-radius: 14px;
    background: linear-gradient(180deg, #0d2033, #07131f);
  }

  body:has(.hero-r1) .r1-capability-link:active {
    border-color: #9ad8ff;
    color: #e9f7ff;
  }

  body:has(.hero-r1) .r1-icon {
    width: 28px;
    height: auto;
    flex: 0 0 auto;
  }

  body:has(.hero-r1) .r1-capability-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  body:has(.hero-r1) .r1-capability-name span {
    display: inline;
    white-space: normal;
  }

  body:has(.hero-r1) .r1-capability-name span + span::before { content: " "; }

  body:has(.hero-r1) .r1-capability-rule { display: none; }

  body:has(.hero-r1) .r1-conversation {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    text-align: left;
  }

  body:has(.hero-r1) .r1-conversation p {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.16em;
    line-height: 1.4;
    white-space: normal;
    margin: 0 0 12px;
    color: #c5d6e6;
  }

  body:has(.hero-r1) .r1-cta {
    width: 100%;
    max-width: none;
    height: 56px;
    margin: 0;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  body:has(.hero-r1) .r1-bottom-note { grid-column: 1; }

  body:has(.hero-r1) .r1-bottom-right {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  body:has(.hero-r1) .r1-bottom-right::before { margin-left: auto; }

  .f2-section { padding: 52px 0 44px; }
  .f2-shell { width: calc(100% - 32px); }
  .f2-section h2 {
    font-size: clamp(32px, 8.6vw, 48px);
    white-space: normal;
  }
  .f2-intro { font-size: 16px; line-height: 1.65; }
  .f2-eyebrow { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 18px; }

  .f2-capabilities .f2-callout,
  .f2-capabilities .f2-stamp,
  .f2-capabilities .f2-cap-light-layer { display: none; }

  .f2-capability-trigger {
    min-height: 72px;
    padding: 12px 10px;
    gap: 12px;
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .f2-capability-trigger:active { background: #0875ff16; }

  .f2-capability-label strong { font-size: 17px; }
  .f2-capability-label small { font-size: 14px; }

  .f2-capability-panel { padding: 2px 6px 18px; }

  .f2-capability-panel-inner {
    max-width: none;
    padding-left: 0;
  }

  .f2-capability-panel h3 { font-size: 22px; }
  .f2-capability-kicker,
  .f2-capability-outcome span { font-size: 12px; letter-spacing: 0.12em; }

  .f2-capability-description,
  .f2-capability-services li,
  .f2-capability-outcome,
  .f2-capability-closing { font-size: 16px; }

  .f2-cap-art {
    height: min(78vw, 460px);
    margin-top: 28px;
  }

  .f2-bottom-note {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 22px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .f2-capabilities .f2-bottom-note p { font-size: 12px; letter-spacing: 0.06em; }

  .f2-method { padding-bottom: 32px; }
  .f2-method h2 { font-size: clamp(32px, 8.4vw, 52px); }
  .f2-method .f2-intro { font-size: 16px; }

  .f2-method .f2-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .f2-method .f2-method-step {
    border: 1px solid #2c5274;
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
  }

  .f2-method .f2-method-step.is-active {
    border-color: #7ad0ff;
    background: #0c3356;
  }

  .f2-method .f2-method-trigger {
    padding: 16px 16px 14px;
    min-height: 44px;
  }

  .f2-method .f2-method-trigger:active { background: #1480e022; }
  .f2-method .f2-steps h3 { font-size: 20px; }
  .f2-method .f2-steps p { font-size: 15px; line-height: 1.5; margin: 8px 0 12px; }
  .f2-method .f2-steps .f2-icon { width: 36px; height: 36px; margin-bottom: 12px; }

  .f2-method .f2-process {
    --stage-x: 50%;
    --method-shift: 6%;
    margin: 22px 0 0;
  }

  .f2-method .f2-process[data-active-step="disenar"] { --method-shift: -80%; }
  .f2-method .f2-process[data-active-step="construir"] { --method-shift: -158%; }
  .f2-method .f2-process[data-active-step="poner-en-marcha"] { --method-shift: -236%; }

  .f2-method .f2-process-visual {
    aspect-ratio: 1.22;
    border-radius: 16px;
    background: #031018;
  }

  .f2-method .f2-process-visual img {
    width: 330%;
    max-width: none;
    left: var(--method-shift);
    top: 50%;
    transform: translateY(-50%);
  }

  .f2-method .f2-process-visual::before {
    background: radial-gradient(ellipse 78% 84% at 50% 48%, transparent 52%, #020a1233 100%);
  }

  .f2-method .f2-process figcaption {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 14px 0 0;
  }

  .f2-method .f2-method-caption {
    max-width: none;
    min-height: 44px;
    padding: 6px 0 10px 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.35;
  }

  .f2-method-bottom {
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 22px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .f2-method-bottom > span { font-size: 12px; padding: 8px 14px; }
  .f2-method-bottom p { font-size: 12px; letter-spacing: 0.05em; }

  .f2-product { padding-bottom: 48px; }
  .f2-product h2 { font-size: clamp(34px, 9vw, 56px); }
  .f2-product .f2-intro { font-size: 16px; line-height: 1.65; }
  .f2-product .f2-button { width: 100%; max-width: 460px; min-height: 56px; font-size: 16px; }

  .f2-product .f2-values {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 22px;
    max-width: none;
  }

  .f2-product .f2-values li {
    padding: 12px 0 12px 14px;
    border-left: 2px solid #0875ff;
  }

  .f2-product .f2-values li + li { margin-top: 4px; }
  .f2-product .f2-values strong { font-size: 13px; letter-spacing: 0.08em; }
  .f2-product .f2-values span { font-size: 15px; margin-top: 4px; white-space: normal; }
  .f2-product-note,
  .f2-product .f2-art-note { display: none; }

  .f2-product .f2-art { height: min(78vw, 440px); margin-top: 8px; }

  .f2-contact { padding: 40px 0 28px; }
  .f2-contact-top {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    margin: 0 0 18px;
  }

  .f2-contact h2 { font-size: clamp(40px, 11vw, 68px); }
  .f2-contact .f2-intro { font-size: 16px; line-height: 1.65; margin-top: 16px; }

  .f2-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .f2-actions .f2-button {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
    justify-content: space-between;
  }

  .f2-button:active { transform: none; }

  .f2-contact address { margin-top: 8px; font-size: 16px; }
  .f2-contact address a { font-size: 16px; min-height: 48px; overflow-wrap: anywhere; }
  .f2-contact-art { height: min(78vw, 420px); margin-top: 4px; }

  .f2-contact-values {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
    translate: none;
    padding-left: 0;
  }

  .f2-contact-values li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
  .f2-contact-values h3 { font-size: 14px; letter-spacing: 0.04em; }
  .f2-contact-values p { font-size: 15px; margin-top: 4px; }

  .f2-contact-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .f2-contact-bottom a { min-height: 44px; padding: 10px 16px; }
  .f2-contact-bottom p { font-size: 12px; letter-spacing: 0.06em; }

  body .dg-footer-shell { width: calc(100% - 32px); }
  body .dg-footer-grid { gap: 28px 36px; padding-block: 40px 28px; }
  body .dg-footer-logo img { width: 140px; }
  body .dg-footer-tagline { margin-top: 14px; font-size: 22px; }
  body .dg-footer-group h2 { margin-bottom: 8px; }
  body .dg-footer-group a { min-height: 44px; font-size: 16px; }
  body .dg-footer-contact-item > span { font-size: 13px; }
  body .dg-footer-bottom { gap: 8px; padding-block: 18px; font-size: 14px; }
  body .dg-footer-bottom a { min-height: 44px; }

  body .dg-document-shell { width: calc(100% - 32px); }
  body .dg-document-header-inner { min-height: 0; padding-block: 14px; gap: 12px; }
  body .dg-document-header img { width: 112px; }
  body .dg-document-back { font-size: 15px; min-height: 44px; }
  body .dg-document { padding-block: 32px 48px; }
  body .dg-document-eyebrow { font-size: 12px; letter-spacing: 0.12em; margin-bottom: 18px; }
  body .dg-document h1 { font-size: clamp(32px, 9vw, 46px); }
  body .dg-document-copy { font-size: 17px; line-height: 1.75; margin-top: 22px; }
  body .dg-document-copy h2 {
    font-size: clamp(22px, 5.6vw, 28px);
    margin: 1.8rem 0 0.7rem;
    scroll-margin-top: 16px;
    overflow-wrap: break-word;
  }
  body .dg-document-copy h3 { font-size: 18px; }
  body .dg-document-copy li + li { margin-top: 8px; }
  body .dg-document-toc a,
  body .dg-document-copy a.dg-document-alias-link {
    min-height: 44px;
  }
}

@media (max-width: 800px) and (min-width: 700px) {
  .f2-method .f2-steps { grid-template-columns: 1fr 1fr; }
  .f2-product .f2-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .f2-product .f2-values li { padding: 0 12px; }
  .f2-product .f2-values li:first-child { padding-left: 0; }
  .f2-actions { flex-direction: row; }
  .f2-actions .f2-button { width: auto; flex: 1 1 0; }
  .f2-contact-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  body:has(.hero-r1) .header-contact { font-size: 12px; gap: 6px; }
  body:has(.hero-r1) .r1-capability-link {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 78px;
    gap: 6px;
    padding: 10px 12px;
  }
  body:has(.hero-r1) .r1-capability-name { font-size: 13px; }
  body:has(.hero-r1) .r1-bottom-note,
  body:has(.hero-r1) .r1-bottom-right {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
  body:has(.hero-r1) .r1-bottom-right::before { margin-left: 0; }
  body:has(.hero-r1) .r1-capability-name { font-size: 13px; }
  .f2-method .f2-process figcaption { grid-template-columns: 1fr; }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .f2-method .f2-process-visual img,
  body:has(.hero-r1) .r1-cta,
  body:has(.hero-r1) .mobile-nav { transition: none; }
}

/* R5D: align only the four introductory groups; preserve all body layouts. */
@media (max-width: 800px) {
  :is(.f2-capabilities, .f2-method, .f2-product, .f2-contact) .f2-copy > :is(.f2-eyebrow, h2, .f2-intro) {
    text-align: center;
  }
  :is(.f2-capabilities, .f2-method, .f2-product, .f2-contact) .f2-copy > .f2-eyebrow {
    justify-content: center;
  }
  :is(.f2-capabilities, .f2-method, .f2-product, .f2-contact) .f2-copy > .f2-intro {
    margin-inline: auto;
  }
}


/* DG_HERO_MOBILE_CONTAIN_START */

/*
  Mobile hero artwork:
  show the complete approved artwork instead of zooming/cropping it.
  Desktop remains untouched.
*/
@media (max-width: 800px) {

  body:has(.hero-r1) .r1-art {
    position: relative !important;

    left: -14% !important;
    top: auto !important;

    display: block !important;

    width: 130% !important;
    max-width: 780px !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    justify-self: center !important;
    align-self: center !important;

    margin: 8px auto 12px !important;

    overflow: hidden !important;

    -webkit-mask-image: none !important;
    mask-image: none !important;
}

  body:has(.hero-r1) .r1-art img {
    position: relative !important;

    left: auto !important;
    top: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 0 auto !important;

    transform: none !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

}

/* DG_HERO_MOBILE_CONTAIN_END */


/* DG_CAPABILITIES_MOBILE_BACKGROUND_REAL_START */

@media (max-width: 800px) {

  /*
   * SECTION 02
   * Content-driven height. Never reserve desktop-art space.
   */
  #capacidades {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    min-height: 0 !important;
    height: auto !important;
  }

  #capacidades .f2-shell,
  #capacidades .f2-split,
  #capacidades .f2-copy {
    min-height: 0 !important;
    height: auto !important;
  }

  /*
   * Critical fix:
   * this is the REAL artwork container in Capabilities.astro.
   *
   * Remove it from mobile layout entirely so it cannot create
   * the 72vw block that was appearing at the bottom.
   */
  #capacidades .f2-cap-art {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /*
   * Hide the SCROLL control completely.
   * Keep the decorative SISTEMAS / PERSONAS copy for now.
   */
  #capacidades .f2-bottom-note > a {
    display: none !important;
  }

  /*
   * Compact the remaining bottom note.
   */
  #capacidades .f2-bottom-note {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    margin: 22px 0 0 !important;
    min-height: 0 !important;
  }

  #capacidades .f2-bottom-note > p {
    margin: 0 !important;
    padding: 8px 0 8px 18px !important;
    width: max-content !important;
    max-width: 100% !important;
  }

  /*
   * Reuse the SAME approved capability artwork as a decorative
   * background. It contributes ZERO layout height.
   */
  #capacidades::after {
    content: "" !important;

    position: absolute !important;
    z-index: 0 !important;

    left: 50% !important;
    top: 37% !important;

    width: min(115vw, 520px) !important;
    height: min(115vw, 520px) !important;

    transform: translateX(-50%) !important;

    background-image:
      radial-gradient(
        circle at center,
        rgba(248, 251, 255, 0.04) 0%,
        rgba(248, 251, 255, 0.22) 58%,
        rgba(248, 251, 255, 0.86) 84%,
        rgba(248, 251, 255, 1) 100%
      ),
      url("/section-assets/02_capacidades_visual.webp") !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;

    opacity: .15 !important;

    pointer-events: none !important;
  }

  /*
   * All readable content stays above the background artwork.
   */
  #capacidades .f2-shell,
  #capacidades .f2-copy,
  #capacidades .f2-capability-list,
  #capacidades .f2-capability-closing,
  #capacidades .f2-bottom-note {
    position: relative !important;
    z-index: 2 !important;
  }

  /*
   * Accordion panels remain normal-flow content:
   * closed = zero space
   * open   = only its real content height
   */
  #capacidades .f2-capability-panel[hidden] {
    display: none !important;
  }

  #capacidades .f2-capability-panel:not([hidden]) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /*
   * Give open content a light veil so the decorative cube
   * never compromises text readability.
   */
  #capacidades .f2-capability-panel-inner {
    position: relative !important;
    z-index: 3 !important;
  }

  /*
   * No unnecessary bottom reserve now that art is background.
   */
  #capacidades {
    padding-bottom: 36px !important;
  }
}

/* DG_CAPABILITIES_MOBILE_BACKGROUND_REAL_END */


/* DG_CAPABILITIES_MOBILE_FINAL_TIGHTEN_START */

@media (max-width: 800px) {

  /*
   * Force the whole capabilities section to size only by real text content.
   */
  #capacidades,
  #capacidades .f2-shell,
  #capacidades .f2-split,
  #capacidades .f2-copy,
  #capacidades .f2-capability-list {
    min-height: 0 !important;
    height: auto !important;
  }

  #capacidades .f2-shell,
  #capacidades .f2-split {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
  }

  /*
   * Kill any real visual/art block that may still be reserving height.
   * We target several possible containers on purpose.
   */
  #capacidades .f2-art,
  #capacidades .f2-cap-art,
  #capacidades .f2-visual,
  #capacidades [class*="cap-art"],
  #capacidades [class*="visual"] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  /*
   * Decorative background version of the same artwork.
   * Positioned from the bottom for more stable mobile behavior.
   */
  #capacidades::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;

    left: 50% !important;
    bottom: 88px !important;
    top: auto !important;

    width: min(82vw, 340px) !important;
    height: min(82vw, 340px) !important;

    transform: translateX(-50%) !important;

    background-image:
      radial-gradient(
        circle at center,
        rgba(248, 251, 255, 0.02) 0%,
        rgba(248, 251, 255, 0.12) 52%,
        rgba(248, 251, 255, 0.56) 82%,
        rgba(248, 251, 255, 0.92) 100%
      ),
      url("/section-assets/02_capacidades_visual.webp") !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;

    opacity: .26 !important;
    pointer-events: none !important;
  }

  /*
   * Readable content above the decorative art.
   */
  #capacidades .f2-shell,
  #capacidades .f2-copy,
  #capacidades .f2-capability-list,
  #capacidades .f2-capability-closing,
  #capacidades .f2-bottom-note {
    position: relative !important;
    z-index: 2 !important;
  }

  /*
   * Keep accordion compact.
   */
  #capacidades .f2-capability-list {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #capacidades .f2-capability-panel[hidden] {
    display: none !important;
  }

  #capacidades .f2-capability-panel:not([hidden]) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  #capacidades .f2-capability-panel-inner {
    position: relative !important;
    z-index: 3 !important;
  }

  #capacidades .f2-capability-closing {
    margin: 16px 0 8px !important;
    padding-bottom: 0 !important;
  }

  /*
   * Bottom note tighter, no fake scroll control, no extra reserve.
   */
  #capacidades .f2-bottom-note {
    margin: 10px 0 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  #capacidades .f2-bottom-note > a {
    display: none !important;
  }

  #capacidades .f2-bottom-note > p {
    margin: 0 !important;
    padding: 8px 0 0 18px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /*
   * Final section bottom trim.
   */
  #capacidades {
    padding-bottom: 22px !important;
  }
}

/* DG_CAPABILITIES_MOBILE_FINAL_TIGHTEN_END */


/* DG_CAPABILITIES_BG_BIGGER_START */

@media (max-width: 800px) {
  /*
   * Make the decorative background cube larger on mobile
   * without bringing back layout height.
   */
  #capacidades::after {
    width: min(550vw, 880px) !important;
    height: min(550vw, 880px) !important;
    bottom: 52px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-size: contain !important;
    opacity: .30 !important;
  }
}

/* DG_CAPABILITIES_BG_BIGGER_END */

/* ============================================================ */
/* MOBILE ONE-SCREEN SECTION FIT MISSION */
/* ============================================================ */

@media (max-width: 800px) {
  /*
    Make each primary section behave as one presentation screen.
    Using flex + margin: auto for safe vertical centering without clipping
    when content expands (e.g. accordions).
  */
  
  body:has(.hero-r1) .hero-r1 {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 72px !important;
    padding-bottom: 24px !important;
    height: auto !important;
  }

  body:has(.hero-r1) .r1-stage {
    margin: auto !important;
    gap: 6px 12px !important;
  }

  body:has(.hero-r1) .r1-top-note {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
  
  body:has(.hero-r1) .r1-top-note::before {
    margin-bottom: 6px !important;
  }

  body:has(.hero-r1) .r1-capability-link {
    min-height: 52px !important;
    padding: 6px 8px !important;
  }

  body:has(.hero-r1) .r1-conversation p {
    margin-bottom: 8px !important;
    font-size: 11px !important;
  }

  body:has(.hero-r1) .r1-cta {
    height: 48px !important;
  }
  
  body:has(.hero-r1) .r1-bottom-note,
  body:has(.hero-r1) .r1-bottom-right {
    margin-top: 0 !important;
  }

  /* Section 2: Capacidades */
  #capacidades {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    height: auto !important;
  }
  
  #capacidades .f2-shell {
    margin: auto !important;
  }
  
  #capacidades h2 {
    font-size: clamp(26px, 7vw, 36px) !important;
  }
  
  #capacidades .f2-intro {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
  
  .f2-capability-trigger {
    min-height: 56px !important;
    padding: 8px 10px !important;
  }
  
  .f2-capability-label strong { font-size: 15px !important; }
  .f2-capability-label small { font-size: 13px !important; }
  
  /* Section 3: Method */
  .f2-method {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    height: auto !important;
  }
  
  .f2-method .f2-shell {
    margin: auto !important;
  }

  .f2-method h2 {
    font-size: clamp(26px, 7vw, 36px) !important;
  }
  
  .f2-method .f2-intro {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .f2-method .f2-method-trigger {
    padding: 10px !important;
    min-height: 44px !important;
  }

  .f2-method .f2-steps h3 { font-size: 16px !important; }
  .f2-method .f2-steps p { font-size: 13px !important; margin: 4px 0 8px !important; }
  
  .f2-method .f2-steps {
    margin-top: 12px !important;
  }
  
  .f2-method .f2-process {
    margin: 12px 0 0 !important;
  }
  
  .f2-method .f2-process-visual {
    border-radius: 12px !important;
  }

  /* Section 4: Product */
  .f2-product {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    height: auto !important;
  }
  
  .f2-product .f2-shell {
    margin: auto !important;
  }
  
  .f2-product h2 {
    font-size: clamp(26px, 7vw, 38px) !important;
  }
  
  .f2-product .f2-intro {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .f2-product .f2-values {
    margin-top: 12px !important;
  }
  
  .f2-product .f2-values li {
    padding: 8px 0 8px 12px !important;
  }
  
  .f2-product .f2-art {
    height: min(50vw, 240px) !important;
    margin-top: 8px !important;
  }
  
  .f2-product .f2-button {
    min-height: 48px !important;
  }

  /* Section 5: Contact */
  .f2-contact {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    height: auto !important;
  }
  
  .f2-contact .f2-shell {
    margin: auto !important;
  }
  
  .f2-contact h2 {
    font-size: clamp(30px, 8vw, 42px) !important;
  }
  
  .f2-contact .f2-intro {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-top: 12px !important;
  }
  
  .f2-contact-art {
    height: min(50vw, 240px) !important;
    margin-top: 4px !important;
  }
  
  .f2-actions .f2-button {
    min-height: 48px !important;
  }
  
  .f2-contact-values {
    gap: 12px !important;
  }
  
  .f2-contact-values li {
    gap: 8px !important;
  }
}

/* 
 * SHORT PHONE STRATEGY (height-aware reduction)
 * For 320x700 or similar (max-height: 760px).
 */
@media (max-width: 800px) and (max-height: 760px) {
  body:has(.hero-r1) .r1-top-note {
    font-size: clamp(20px, 6vw, 26px) !important;
  }
  
  body:has(.hero-r1) .r1-art {
    margin: 4px auto !important;
  }
  
  #capacidades h2,
  .f2-method h2,
  .f2-product h2,
  .f2-contact h2 {
    font-size: 24px !important;
  }
  
  .f2-eyebrow {
    margin-bottom: 8px !important;
  }
  
  .f2-intro {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  
  #capacidades,
  .f2-method,
  .f2-product,
  .f2-contact {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  
  .f2-product .f2-art { height: min(40vw, 180px) !important; }
  .f2-contact-art { height: min(40vw, 180px) !important; }
}


/* DG_METHOD_MOBILE_ONE_SCREEN_START */

@media (max-width: 800px) {

  /*
   * COMO TRABAJAMOS
   * Compact presentation-screen layout.
   * No changes to capabilities, product, contact or hero.
   */
  .f2-method {
    min-height: 100svh !important;
    height: auto !important;

    padding-top: 18px !important;
    padding-bottom: 18px !important;

    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .f2-method .f2-shell {
    width: calc(100% - 32px) !important;
    margin: auto !important;
  }

  /* Heading group */
  .f2-method .f2-eyebrow {
    margin-bottom: 8px !important;
  }

  .f2-method h2 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.04 !important;
  }

  .f2-method .f2-intro {
    font-size: 13px !important;
    line-height: 1.42 !important;
    margin-top: 10px !important;
    max-width: 34rem !important;
  }

  /*
   * Four method selectors become a compact 2x2 matrix.
   */
  .f2-method .f2-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 7px !important;
    margin: 12px 0 0 !important;
  }

  .f2-method .f2-method-step {
    min-width: 0 !important;
    border-radius: 10px !important;
  }

  .f2-method .f2-method-trigger {
    min-height: 0 !important;

    padding: 8px 9px !important;

    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;

    column-gap: 8px !important;
    row-gap: 1px !important;

    align-items: center !important;
  }

  .f2-method .f2-steps .f2-icon {
    width: 26px !important;
    height: 26px !important;

    margin: 0 !important;

    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
  }

  .f2-method .f2-steps h3 {
    grid-column: 2 !important;

    font-size: 15px !important;
    line-height: 1.15 !important;

    margin: 0 !important;
  }

  .f2-method .f2-steps p {
    grid-column: 2 !important;

    font-size: 11px !important;
    line-height: 1.25 !important;

    margin: 2px 0 0 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  /*
   * Existing process artwork remains exactly the same asset and
   * active-stage crop behavior; only the viewport gets shorter.
   */
  .f2-method .f2-process {
    margin: 10px 0 0 !important;
  }

  .f2-method .f2-process-visual {
    width: 100% !important;

    height: min(40vw, 170px) !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .f2-method .f2-process-visual img {
    /*
     * Preserve current R5B/R5D crop mechanics.
     * Do not change width or active --method-shift values.
     */
    max-width: none !important;
  }

  /*
   * Compact the four visual captions without hiding them.
   */
  .f2-method .f2-process figcaption {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 4px 8px !important;

    margin: 6px 0 0 !important;
  }

  .f2-method .f2-method-caption {
    min-height: 30px !important;

    padding: 4px 4px 4px 8px !important;

    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: .025em !important;
  }

  /*
   * Final method note remains present, simply tighter.
   */
  .f2-method-bottom {
    gap: 6px 10px !important;

    margin-top: 8px !important;

    font-size: 10px !important;
    letter-spacing: .05em !important;
  }

  .f2-method-bottom > span {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }

  .f2-method-bottom p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .03em !important;
  }
}


/*
 * Extra squeeze only for genuinely short phones.
 */
@media (max-width: 800px) and (max-height: 760px) {

  .f2-method {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .f2-method h2 {
    font-size: 24px !important;
  }

  .f2-method .f2-intro {
    font-size: 12px !important;
    line-height: 1.32 !important;
    margin-top: 6px !important;
  }

  .f2-method .f2-steps {
    margin-top: 8px !important;
    gap: 5px !important;
  }

  .f2-method .f2-method-trigger {
    padding: 6px 7px !important;
  }

  .f2-method .f2-steps .f2-icon {
    width: 23px !important;
    height: 23px !important;
  }

  .f2-method .f2-steps h3 {
    font-size: 14px !important;
  }

  .f2-method .f2-steps p {
    font-size: 10px !important;
  }

  .f2-method .f2-process {
    margin-top: 7px !important;
  }

  .f2-method .f2-process-visual {
    height: min(35vw, 135px) !important;
  }

  .f2-method .f2-process figcaption {
    margin-top: 4px !important;
  }

  .f2-method .f2-method-caption {
    min-height: 26px !important;
    font-size: 9px !important;
  }

  .f2-method-bottom {
    margin-top: 5px !important;
  }
}

/* DG_METHOD_MOBILE_ONE_SCREEN_END */


/* DG_METHOD_VISUAL_HEIGHT_FINAL_START */

@media (max-width: 800px) {

  .f2-method .f2-process-visual {
    height: clamp(260px, 64vw, 300px) !important;
    min-height: 260px !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;
    border-radius: 12px !important;
  }

  .f2-method .f2-process-visual img {
    position: absolute !important;

    width: 330% !important;
    max-width: none !important;
    height: auto !important;

    left: var(--method-shift) !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    object-fit: initial !important;
    object-position: initial !important;
  }
}

@media (max-width: 800px) and (max-height: 760px) {

  .f2-method .f2-process-visual {
    height: 235px !important;
    min-height: 235px !important;
  }
}

/* DG_METHOD_VISUAL_HEIGHT_FINAL_END */


/* DG_PRODUCT_MOBILE_ONE_SCREEN_START */

@media (max-width: 800px) {

  /*
   * PRODUCTO PROPIO
   * One mobile presentation screen.
   */
  .f2-product {
    min-height: 100svh !important;
    height: auto !important;

    padding-top: 20px !important;
    padding-bottom: 20px !important;

    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .f2-product .f2-shell {
    width: calc(100% - 32px) !important;
    margin: auto !important;
  }

  /*
   * Keep product content in normal vertical flow.
   */
  .f2-product .f2-split {
    min-height: 0 !important;
    height: auto !important;
    gap: 12px !important;
  }

  /*
   * Heading / intro.
   */
  .f2-product .f2-eyebrow {
    margin-bottom: 8px !important;
  }

  .f2-product h2 {
    font-size: clamp(27px, 7.2vw, 36px) !important;
    line-height: 1.02 !important;
    margin-bottom: 0 !important;
  }

  .f2-product .f2-intro {
    max-width: 36rem !important;

    margin: 10px auto 0 !important;

    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  /*
   * Primary CTA remains prominent.
   */
  .f2-product .f2-button {
    width: 100% !important;
    max-width: none !important;

    min-height: 46px !important;

    margin-top: 12px !important;
    padding: 10px 14px !important;

    font-size: 14px !important;
  }

  /*
   * Three business values in one compact horizontal row
   * instead of three tall stacked blocks.
   */
  .f2-product .f2-values {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 12px 0 0 !important;
  }

  .f2-product .f2-values li {
    min-width: 0 !important;

    padding: 7px 8px !important;
    margin: 0 !important;

    border-left: 1px solid #0875ff !important;
  }

  .f2-product .f2-values strong {
    display: block !important;

    font-size: 9px !important;
    line-height: 1.25 !important;
    letter-spacing: .06em !important;
  }

  .f2-product .f2-values span {
    display: block !important;

    margin-top: 3px !important;

    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  /*
   * Artwork remains a major element, but within the viewport.
   */
  .f2-product .f2-art,
  .f2-product .f2-product-art {
    height: clamp(230px, 60vw, 285px) !important;
    min-height: 0 !important;

    margin-top: 8px !important;

    overflow: visible !important;
  }

  .f2-product .f2-art img,
  .f2-product .f2-product-art img {
    max-width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

  /*
   * The decorative notes remain hidden as in the current mobile pass.
   */
  .f2-product-note,
  .f2-product .f2-art-note {
    display: none !important;
  }

  /*
   * SCROLL is the only content in Product's bottom-note.
   * Remove the whole block on mobile.
   */
  .f2-product .f2-bottom-note {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/*
 * Short phones: compact without hiding meaningful content.
 */
@media (max-width: 800px) and (max-height: 760px) {

  .f2-product {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .f2-product h2 {
    font-size: 24px !important;
  }

  .f2-product .f2-intro {
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .f2-product .f2-button {
    min-height: 42px !important;
    margin-top: 8px !important;
  }

  .f2-product .f2-values {
    margin-top: 8px !important;
  }

  .f2-product .f2-values li {
    padding: 5px 6px !important;
  }

  .f2-product .f2-values strong {
    font-size: 8px !important;
  }

  .f2-product .f2-values span {
    font-size: 9px !important;
  }

  .f2-product .f2-art,
  .f2-product .f2-product-art {
    height: clamp(190px, 52vw, 220px) !important;
    margin-top: 5px !important;
  }
}

/* DG_PRODUCT_MOBILE_ONE_SCREEN_END */


/* DG_PRODUCT_MORE_INFO_BIGGER_ART_START */

/*
 * Desktop lock:
 * extra mobile product proof must not alter approved desktop.
 */
.f2-product-proof {
  display: none;
}

@media (max-width: 800px) {

  .f2-product .f2-product-proof {
    display: block !important;

    margin: 12px 0 4px !important;
    padding: 12px 14px !important;

    border: 1px solid rgba(8, 119, 239, .20) !important;
    border-radius: 12px !important;

    background: rgba(255,255,255,.62) !important;
  }

  .f2-product .f2-product-proof-kicker {
    display: block !important;

    margin: 0 0 5px !important;

    color: #0877ef !important;

    font-size: 10px !important;
    line-height: 1.2 !important;

    font-weight: 800 !important;
    letter-spacing: .14em !important;
  }

  .f2-product .f2-product-proof-copy {
    margin: 0 !important;

    color: #20395d !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
  }

  .f2-product .f2-product-proof-points {
    list-style: none !important;

    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;

    margin: 9px 0 0 !important;
    padding: 0 !important;
  }

  .f2-product .f2-product-proof-points li {
    margin: 0 !important;
    padding: 5px 9px !important;

    border: 1px solid rgba(8, 119, 239, .24) !important;
    border-radius: 999px !important;

    color: #20395d !important;
    background: rgba(255,255,255,.72) !important;

    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  /*
   * Make MyPage artwork substantially larger.
   */
  .f2-product .f2-art,
  .f2-product .f2-product-art {
    height: clamp(285px, 72vw, 350px) !important;
    min-height: 285px !important;

    margin-top: 6px !important;
  }

  .f2-product .f2-product-art img {
    width: 112% !important;
    max-width: 112% !important;

    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 800px) and (max-height: 760px) {

  .f2-product .f2-product-proof {
    margin-top: 8px !important;
    padding: 9px 11px !important;
  }

  .f2-product .f2-product-proof-copy {
    font-size: 12px !important;
  }

  .f2-product .f2-product-proof-points {
    margin-top: 6px !important;
  }

  .f2-product .f2-product-art {
    height: 255px !important;
    min-height: 255px !important;
  }
}

/* DG_PRODUCT_MORE_INFO_BIGGER_ART_END */


/* DG_CONTACT_MOBILE_ONE_SCREEN_START */

@media (max-width: 800px) {

  /*
   * EL SIGUIENTE PASO
   * Mobile presentation-screen composition.
   */
  .f2-contact {
    min-height: 100svh !important;
    height: auto !important;

    padding-top: 18px !important;
    padding-bottom: 18px !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box !important;
  }

  .f2-contact > .f2-shell {
    width: calc(100% - 32px) !important;
    margin: auto !important;
  }

  /*
   * Decorative top statement consumes space and repeats the
   * brand message already present elsewhere.
   */
  .f2-contact-top {
    display: none !important;
  }

  .f2-contact-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  /*
   * Heading group.
   */
  .f2-contact .f2-copy {
    text-align: center !important;
  }

  .f2-contact .f2-eyebrow {
    justify-content: center !important;
    margin-bottom: 8px !important;
  }

  .f2-contact h2 {
    font-size: clamp(30px, 8vw, 40px) !important;
    line-height: 1.02 !important;

    margin: 0 !important;
  }

  .f2-contact .f2-intro {
    max-width: 34rem !important;

    margin: 10px auto 0 !important;

    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  /*
   * Two CTAs side by side.
   */
  .f2-contact .f2-actions {
    display: grid !important;
    grid-template-columns: 1.35fr .85fr !important;

    gap: 8px !important;

    margin-top: 12px !important;
  }

  .f2-contact .f2-actions .f2-button {
    width: 100% !important;
    min-width: 0 !important;

    min-height: 44px !important;

    padding: 9px 10px !important;

    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  /*
   * Contact mail remains visible but compact.
   */
  .f2-contact address {
    display: flex !important;
    justify-content: center !important;

    margin: 6px 0 0 !important;
  }

  .f2-contact address a {
    min-height: 34px !important;

    padding: 4px 8px !important;

    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  /*
   * Keep the operation cube large and visually dominant.
   */
  .f2-contact-art {
    height: clamp(250px, 64vw, 320px) !important;
    min-height: 250px !important;

    margin: 4px 0 0 !important;

    overflow: visible !important;
  }

  .f2-contact-art picture,
  .f2-contact-art img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

  /*
   * Three outcomes in one compact row.
   */
  .f2-contact-values {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 8px !important;

    margin: 4px 0 0 !important;
    padding: 0 !important;

    translate: none !important;
  }

  .f2-contact-values li {
    display: block !important;

    min-width: 0 !important;

    padding: 8px 7px !important;

    border-left: 1px solid rgba(93, 199, 255, .55) !important;
  }

  .f2-contact-values .f2-icon,
  .f2-contact-values svg {
    width: 20px !important;
    height: 20px !important;

    margin-bottom: 6px !important;
  }

  .f2-contact-values h3 {
    margin: 0 !important;

    font-size: 9px !important;
    line-height: 1.2 !important;
    letter-spacing: .03em !important;
  }

  .f2-contact-values p {
    margin: 4px 0 0 !important;

    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  /*
   * Remove the artificial "Volver arriba" scroll action on mobile.
   * Keep the closing brand statement.
   */
  .f2-contact-bottom {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;

    margin-top: 8px !important;
    padding: 0 !important;
  }

  .f2-contact-bottom > a {
    display: none !important;
  }

  .f2-contact-bottom p {
    margin: 0 !important;

    text-align: right !important;

    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: .06em !important;
  }
}


/*
 * Short mobile screens.
 */
@media (max-width: 800px) and (max-height: 760px) {

  .f2-contact {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .f2-contact h2 {
    font-size: 26px !important;
  }

  .f2-contact .f2-intro {
    margin-top: 6px !important;

    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .f2-contact .f2-actions {
    margin-top: 8px !important;
  }

  .f2-contact .f2-actions .f2-button {
    min-height: 40px !important;
    font-size: 10px !important;
  }

  .f2-contact-art {
    height: 230px !important;
    min-height: 230px !important;
  }

  .f2-contact-values {
    gap: 5px !important;
  }

  .f2-contact-values li {
    padding: 6px 5px !important;
  }

  .f2-contact-values h3,
  .f2-contact-values p {
    font-size: 8px !important;
  }

  .f2-contact-bottom {
    margin-top: 5px !important;
  }
}

/* DG_CONTACT_MOBILE_ONE_SCREEN_END */

/* DG_CONTACT_ART_CENTER_START */

@media (max-width: 800px) {

  .f2-contact-art {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .f2-contact-art picture {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 auto !important;
    transform: none !important;
  }

  .f2-contact-art picture img {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;

    margin: 0 auto !important;

    transform: none !important;

    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* DG_CONTACT_ART_CENTER_END */


/* DG_FOOTER_MOBILE_FINAL_START */

@media (max-width: 800px) {

  /*
   * FOOTER MOBILE
   * Inspired by the structural rhythm approved by the user:
   *
   * 1. Brand / statement / social
   * 2. Navigation + contact + legal
   * 3. Copyright strip
   *
   * Desktop remains untouched.
   */

  .dg-footer {
    min-height: 0 !important;

    background: #f7f9fc !important;
    color: #435570 !important;

    border-top: 1px solid #d8e3ef !important;
  }

  .dg-footer-shell {
    width: calc(100% - 32px) !important;
    max-width: none !important;

    margin: 0 auto !important;
  }

  /* =========================================================
     BAND 1 — BRAND
     ========================================================= */

  .dg-footer-brand-area {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo identity"
      "social social" !important;

    align-items: center !important;

    column-gap: 16px !important;
    row-gap: 18px !important;

    padding: 28px 0 24px !important;

    border-bottom: 1px solid #dce5ef !important;
  }

  .dg-footer-logo {
    grid-area: logo !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 92px !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .dg-footer-logo img {
    display: block !important;

    width: 88px !important;
    max-width: 88px !important;
    height: auto !important;

    margin: 0 !important;
  }

  .dg-footer-identity {
    grid-area: identity !important;

    min-width: 0 !important;
  }

  .dg-footer .dg-footer-tagline {
    margin: 0 !important;

    color: #102746 !important;

    font-size: 18px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
  }

  .dg-footer-description {
    max-width: 32rem !important;

    margin: 7px 0 0 !important;

    color: #4a607e !important;

    font-size: 12px !important;
    line-height: 1.48 !important;
  }

  /*
   * Social row.
   * Facebook remains text until the verified URL is supplied.
   */
  .dg-footer-social {
    grid-area: social !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;

    padding-top: 2px !important;
  }

  .dg-footer-social h2 {
    flex: 0 0 auto !important;

    margin: 0 !important;

    color: #70819a !important;

    font-size: 9px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .15em !important;
  }

  .dg-footer-social-name,
  .dg-footer-social > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 38px !important;

    padding: 7px 13px !important;

    border: 1px solid #cbd9e8 !important;
    border-radius: 8px !important;

    background: #ffffff !important;

    color: #203b60 !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  /* =========================================================
     BAND 2 — LINKS / CONTACT / LEGAL
     ========================================================= */

  .dg-footer-grid {
    display: grid !important;

    grid-template-columns:
      minmax(0, .85fr)
      minmax(0, 1.15fr) !important;

    gap: 28px 20px !important;

    padding: 26px 0 24px !important;
  }

  .dg-footer-grid > * {
    min-width: 0 !important;
  }

  /*
   * Empresa left / Contacto right.
   * Legal spans the full width underneath.
   */
  .dg-footer-grid > :nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .dg-footer-grid > :nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .dg-footer-grid > :nth-child(3) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    padding-top: 20px !important;

    border-top: 1px solid #dce5ef !important;
  }

  .dg-footer-group h2 {
    margin: 0 0 10px !important;

    color: #112a4a !important;

    font-size: 9px !important;
    line-height: 1.2 !important;

    font-weight: 800 !important;

    letter-spacing: .14em !important;
    text-transform: uppercase !important;
  }

  .dg-footer-group h2::before {
    width: 22px !important;
    height: 2px !important;

    margin-bottom: 9px !important;

    background: #0877ef !important;
  }

  .dg-footer ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  .dg-footer-group li + li {
    margin-top: 2px !important;
  }

  .dg-footer-group a {
    display: flex !important;
    align-items: center !important;

    width: fit-content !important;
    max-width: 100% !important;

    min-height: 34px !important;

    padding: 4px 0 !important;

    color: #435570 !important;

    font-size: 12px !important;
    line-height: 1.35 !important;

    overflow-wrap: anywhere !important;
  }

  /*
   * Contact block.
   */
  .dg-footer address {
    margin: 0 !important;
  }

  .dg-footer-contact-item + .dg-footer-contact-item {
    margin-top: 12px !important;
  }

  .dg-footer-contact-item > span {
    display: block !important;

    margin-bottom: 2px !important;

    color: #7a8ba2 !important;

    font-size: 9px !important;
    line-height: 1.3 !important;

    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }

  .dg-footer-contact-item a {
    min-height: 30px !important;

    padding: 2px 0 !important;

    color: #344f72 !important;

    font-size: 11px !important;
    line-height: 1.35 !important;

    overflow-wrap: anywhere !important;
  }

  /*
   * Legal links in a horizontal/mobile-friendly row.
   */
  .dg-footer-grid > :nth-child(3) ul {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 4px 20px !important;
  }

  .dg-footer-grid > :nth-child(3) li {
    margin: 0 !important;
  }

  /* =========================================================
     BAND 3 — COPYRIGHT / QUICK LEGAL
     ========================================================= */

  .dg-footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 8px !important;

    align-items: start !important;

    padding: 16px 0 22px !important;

    border-top: 1px solid #d4deeb !important;

    color: #70819a !important;

    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  .dg-footer-bottom p {
    margin: 0 !important;
  }

  .dg-footer-bottom nav {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 8px 18px !important;
  }

  .dg-footer-bottom a {
    min-height: 28px !important;

    padding: 2px 0 !important;

    color: #435570 !important;

    font-size: 10px !important;
    line-height: 1.3 !important;
  }

}


/*
 * Extra-tight phones.
 */
@media (max-width: 360px) {

  .dg-footer-shell {
    width: calc(100% - 24px) !important;
  }

  .dg-footer-brand-area {
    grid-template-columns: 78px minmax(0, 1fr) !important;

    column-gap: 12px !important;

    padding-top: 22px !important;
  }

  .dg-footer-logo,
  .dg-footer-logo img {
    width: 76px !important;
    max-width: 76px !important;
  }

  .dg-footer .dg-footer-tagline {
    font-size: 16px !important;
  }

  .dg-footer-description {
    font-size: 11px !important;
  }

  .dg-footer-grid {
    gap: 24px 14px !important;
  }

  .dg-footer-group a {
    font-size: 11px !important;
  }

  .dg-footer-contact-item a {
    font-size: 10px !important;
  }
}

/* DG_FOOTER_MOBILE_FINAL_END */


/* DG_MOBILE_TYPOGRAPHY_PREMIUM_START */

@media (max-width: 800px) {

  /*
   * ==========================================================
   * DATAGUARDS MOBILE TYPOGRAPHY SYSTEM
   *
   * No redesign.
   * No geometry changes.
   * No image changes.
   *
   * Only:
   * - stronger hierarchy
   * - better weights
   * - better contrast
   * - more consistent copy colors
   * ==========================================================
   */

  body {
    --dg-type-dark: #09172f;
    --dg-type-copy: #344e70;
    --dg-type-muted: #516985;
    --dg-type-accent: #0877ef;

    --dg-dark-title: #f7fbff;
    --dg-dark-copy: #b9cadc;
    --dg-dark-muted: #8fa8c0;
    --dg-dark-accent: #45a5ff;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }


  /* ==========================================================
     GLOBAL LIGHT SECTION TYPOGRAPHY
     ========================================================== */

  .f2-light h1,
  .f2-light h2,
  .f2-light h3,
  .f2-light strong {
    color: var(--dg-type-dark) !important;
  }

  .f2-light h2 {
    font-weight: 680 !important;
    letter-spacing: -.035em !important;
  }

  .f2-light .f2-intro,
  .f2-light p,
  .f2-light li,
  .f2-light small,
  .f2-light span {
    color: var(--dg-type-copy);
  }

  .f2-light .f2-intro {
    font-weight: 500 !important;
    color: var(--dg-type-copy) !important;
  }

  .f2-light .f2-eyebrow {
    color: #304865 !important;

    font-weight: 760 !important;
    letter-spacing: .14em !important;
  }


  /* ==========================================================
     GLOBAL DARK SECTION TYPOGRAPHY
     ========================================================== */

  .f2-dark h1,
  .f2-dark h2,
  .f2-dark h3,
  .f2-dark strong {
    color: var(--dg-dark-title) !important;
  }

  .f2-dark h2 {
    font-weight: 650 !important;
    letter-spacing: -.035em !important;
  }

  .f2-dark .f2-intro,
  .f2-dark p,
  .f2-dark li,
  .f2-dark small {
    color: var(--dg-dark-copy);
  }

  .f2-dark .f2-intro {
    color: var(--dg-dark-copy) !important;
    font-weight: 500 !important;
  }

  .f2-dark .f2-eyebrow {
    color: #d8e6f4 !important;

    font-weight: 760 !important;
    letter-spacing: .14em !important;
  }


  /* ==========================================================
     HERO
     ========================================================== */

  body:has(.hero-r1) .r1-top-note {
    color: #f5f9fd !important;

    font-weight: 520 !important;
    letter-spacing: -.045em !important;
  }

  body:has(.hero-r1) .r1-capability-name {
    color: #eef6ff !important;

    font-weight: 700 !important;
    letter-spacing: -.018em !important;
  }

  body:has(.hero-r1) .r1-conversation p {
    color: #aebfd0 !important;

    font-weight: 700 !important;
    letter-spacing: .20em !important;
  }

  body:has(.hero-r1) .r1-cta {
    color: #f7fbff !important;

    font-weight: 720 !important;
  }

  body:has(.hero-r1) .r1-bottom-note,
  body:has(.hero-r1) .r1-bottom-right {
    color: #94aabe !important;

    font-weight: 650 !important;
  }


  /* ==========================================================
     LO QUE HACEMOS
     ========================================================== */

  #capacidades h2 {
    color: var(--dg-type-dark) !important;
    font-weight: 680 !important;
  }

  #capacidades h2 span {
    color: var(--dg-type-accent) !important;
  }

  #capacidades .f2-intro {
    color: var(--dg-type-copy) !important;
    font-weight: 500 !important;
  }

  #capacidades .f2-capability-label strong {
    color: var(--dg-type-dark) !important;

    font-weight: 680 !important;
  }

  #capacidades .f2-capability-label small {
    color: #405a7b !important;

    font-weight: 500 !important;
  }

  #capacidades .f2-capability-description,
  #capacidades .f2-capability-services li,
  #capacidades .f2-capability-outcome,
  #capacidades .f2-capability-closing {
    color: #344e70 !important;

    font-weight: 500 !important;
  }

  #capacidades .f2-capability-kicker,
  #capacidades .f2-capability-outcome span {
    color: var(--dg-type-accent) !important;

    font-weight: 760 !important;
  }

  #capacidades .f2-capability-panel h3 {
    color: var(--dg-type-dark) !important;

    font-weight: 700 !important;
  }

  #capacidades .f2-bottom-note p {
    color: #4a6382 !important;

    font-weight: 520 !important;
  }


  /* ==========================================================
     COMO TRABAJAMOS
     ========================================================== */

  .f2-method h2 {
    color: var(--dg-dark-title) !important;

    font-weight: 650 !important;
  }

  .f2-method h2 span {
    color: var(--dg-dark-accent) !important;
  }

  .f2-method .f2-intro {
    color: #b8cada !important;

    font-weight: 500 !important;
  }

  .f2-method .f2-steps h3 {
    color: #f1f7fd !important;

    font-weight: 680 !important;
  }

  .f2-method .f2-steps p {
    color: #aac0d4 !important;

    font-weight: 480 !important;
  }

  .f2-method .f2-method-caption {
    color: #9bb5cc !important;

    font-weight: 600 !important;
  }

  .f2-method .f2-method-caption[aria-current="true"],
  .f2-method .f2-method-caption.is-active {
    color: #f5fbff !important;
  }

  .f2-method-bottom,
  .f2-method-bottom p,
  .f2-method-bottom span {
    color: #99b2c9 !important;

    font-weight: 600 !important;
  }


  /* ==========================================================
     PRODUCTO PROPIO
     ========================================================== */

  .f2-product h2 {
    color: var(--dg-type-dark) !important;

    font-weight: 680 !important;
  }

  .f2-product h2 span {
    color: var(--dg-type-accent) !important;
  }

  .f2-product .f2-intro {
    color: var(--dg-type-copy) !important;

    font-weight: 500 !important;
  }

  .f2-product .f2-values strong {
    color: #294463 !important;

    font-weight: 760 !important;
  }

  .f2-product .f2-values span {
    color: #4b6481 !important;

    font-weight: 500 !important;
  }

  .f2-product .f2-product-proof-kicker {
    color: var(--dg-type-accent) !important;

    font-weight: 800 !important;
  }

  .f2-product .f2-product-proof-copy {
    color: #2d4868 !important;

    font-weight: 600 !important;
  }

  .f2-product .f2-product-proof-points li {
    color: #274362 !important;

    font-weight: 700 !important;
  }

  .f2-product .f2-button {
    font-weight: 700 !important;
  }


  /* ==========================================================
     EL SIGUIENTE PASO
     ========================================================== */

  .f2-contact h2 {
    color: var(--dg-dark-title) !important;

    font-weight: 640 !important;
  }

  .f2-contact h2 span {
    color: var(--dg-dark-accent) !important;
  }

  .f2-contact .f2-intro {
    color: #bed0e0 !important;

    font-weight: 500 !important;
  }

  .f2-contact .f2-actions .f2-button {
    font-weight: 700 !important;
  }

  .f2-contact address a {
    color: #aec4d8 !important;

    font-weight: 550 !important;
  }

  .f2-contact-values h3 {
    color: #f1f7fd !important;

    font-weight: 760 !important;
  }

  .f2-contact-values p {
    color: #adc2d5 !important;

    font-weight: 500 !important;
  }

  .f2-contact-bottom p {
    color: #9fb8cd !important;

    font-weight: 650 !important;
  }


  /* ==========================================================
     FOOTER
     ========================================================== */

  .dg-footer {
    color: #405978 !important;
  }

  .dg-footer .dg-footer-tagline {
    color: #0b1c35 !important;

    font-weight: 700 !important;
    letter-spacing: -.025em !important;
  }

  .dg-footer-description {
    color: #425d7d !important;

    font-weight: 500 !important;
  }

  .dg-footer h2 {
    color: #173455 !important;

    font-weight: 800 !important;
  }

  .dg-footer-group a {
    color: #365272 !important;

    font-weight: 520 !important;
  }

  .dg-footer-contact-item > span {
    color: #647b96 !important;

    font-weight: 700 !important;
  }

  .dg-footer-contact-item a {
    color: #365272 !important;

    font-weight: 520 !important;
  }

  .dg-footer-social-name,
  .dg-footer-social a {
    color: #203b60 !important;

    font-weight: 700 !important;
  }

  .dg-footer-bottom {
    color: #627994 !important;

    font-weight: 500 !important;
  }

  .dg-footer-bottom a {
    color: #405978 !important;

    font-weight: 600 !important;
  }


  /* ==========================================================
     BUTTON TEXT CONSISTENCY
     ========================================================== */

  .f2-button,
  button,
  .r1-cta {
    text-rendering: optimizeLegibility;
  }

}

/* DG_MOBILE_TYPOGRAPHY_PREMIUM_END */





/* DG_CAPABILITIES_CANONICAL_TYPE_START */
@media (max-width: 800px) {

  /* Section intro */
  #capacidades .f2-intro {
    font-size: 17px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
  }

  /* Accordion card */
  #capacidades .f2-capability-label strong {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  #capacidades .f2-capability-label small {
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  /* Expanded title */
  #capacidades .f2-capability-panel h3 {
    font-size: 22px !important;
    line-height: 1.18 !important;
  }

  /* Labels: QUÉ RESOLVEMOS / RESULTADO */
  #capacidades .f2-capability-kicker,
  #capacidades .f2-capability-outcome span {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  /* Body */
  #capacidades .f2-capability-description,
  #capacidades .f2-capability-services li,
  #capacidades .f2-capability-outcome,
  #capacidades .f2-capability-closing {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}
/* DG_CAPABILITIES_CANONICAL_TYPE_END */


/* DG_REMAINING_MOBILE_TYPE_SYSTEM_START */
@media (max-width: 800px) {

  /*
   * 03 / CÓMO TRABAJAMOS
   * Grandes H2 intactos.
   */

  #metodo .f2-intro {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
  }

  #metodo .f2-steps h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  #metodo .f2-steps p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Active operational caption = method step title */
  #metodo .f2-method-caption.is-active {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }



  /*
   * 04 / PRODUCTO PROPIO
   * H2 y layout intactos.
   */

  #producto .f2-intro {
    font-size: 17px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
  }

  #producto .f2-values strong {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  #producto .f2-values span {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }


  /*
   * 05 / CONTACTO
   * H2 y botones intactos.
   */

  #contacto .f2-intro {
    font-size: 17px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
  }

  #contacto .f2-contact-values h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  #contacto .f2-contact-values p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  #contacto address,
  #contacto address a {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

}
/* DG_REMAINING_MOBILE_TYPE_SYSTEM_END */
