/* Click Experience v6.1.0 — UI/UX design audit
   Normalizes spacing, hierarchy, grid, contrast and component consistency
   without flattening the visual identity of each section. */
:root{
  --cxs-space-1:4px;
  --cxs-space-2:8px;
  --cxs-space-3:12px;
  --cxs-space-4:16px;
  --cxs-space-6:24px;
  --cxs-space-8:32px;
  --cxs-space-12:48px;
  --cxs-space-16:64px;
  --cxs-space-24:96px;
  --cxs-page-gutter:clamp(16px,3.6vw,48px);
  --cxs-content-max:1360px;
  --cxs-grid-columns:12;
  --cxs-grid-gap:24px;
  --cxs-section-y:clamp(72px,7.4vw,112px);
  --cxs-section-y-compact:clamp(52px,5.5vw,80px);
  --cxs-radius-sm:12px;
  --cxs-radius-md:18px;
  --cxs-radius-lg:28px;
  --cxs-shadow-sm:0 10px 30px rgba(4,18,52,.07);
  --cxs-shadow-md:0 24px 68px rgba(4,18,52,.13);
  --cxs-text-on-dark:#f7f9ff;
  --cxs-muted-on-dark:#b8c5dc;
  --cxs-muted-on-light:#52657f;
  --cxs-red-aa:#d91f36;
  --cxs-focus:#58c5ff;
  --cxs-motion-fast:160ms;
  --cxs-motion-standard:240ms;
  --cxs-motion-deliberate:320ms;
}

/* 1. SPACING ----------------------------------------------------------- */
.cxs-container{
  width:min(calc(100% - (var(--cxs-page-gutter) * 2)),var(--cxs-content-max))!important;
  margin-inline:auto!important;
}

:where(
 .cxs-blog-featured,.cxs-blog-library,.cxs-learning-library,.cxs-academy-method,
 .cxs-contact-workspace,.cxs-contact-location,.cxs-about-story,.cxs-about-system,
 .cxs-about-people,.cxs-about-purpose,.cxs-about-values,.cxs-business-lines,
 .cxs-service-focus,.cxs-service-deliverables,.cxs-service-process,.cxs-service-related,
 .cxs-store-catalog,.cxs-store-how,.cxs-project-single__strategy,.cxs-project-single__scope,
 .cxs-project-single__case,.cxs-project-single__related
){padding-block:var(--cxs-section-y)!important}

:where(
 .cxs-editorial-cta,.cxs-portfolio-cta,.cxs-service-cta,.cxs-store-cta,
 .cxs-about-page__cta,.cxs-final-cta
){padding-block:var(--cxs-section-y-compact)!important}

:where(
 .cxs-editorial-hero,.cxs-contact-hero,.cxs-portfolio-hero,.cxs-store-hero,
 .cxs-about-page__hero,.cxs-service-hero
){padding-top:clamp(44px,5vw,76px)!important;padding-bottom:clamp(64px,7vw,104px)!important}

/* Normalize primary grid rhythm while preserving page-specific spans. */
:where(
 .cxs-learning-grid,.cxs-portfolio-grid,.cxs-store-grid,.cxs-business-lines__grid,
 .cxs-services-grid,.cxs-academy-method__grid,.cxs-portfolio-principles__grid,
 .cxs-project-single__related-grid,.cxs-store-how__grid,.cxs-service-deliverables__grid,
 .cxs-service-process__grid
){gap:var(--cxs-space-6)!important}


/* Desktop services adopt the same 12-column backbone used by Portfolio/Store. */
@media (min-width:1121px){
  .cxs-services .cxs-services-grid.is-seven{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:var(--cxs-grid-gap)!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(1){grid-column:1/span 4!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(2){grid-column:5/span 4!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(3){grid-column:9/span 4!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(4){grid-column:1/span 3!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(5){grid-column:4/span 3!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(6){grid-column:7/span 3!important}
  .cxs-services .cxs-services-grid.is-seven>.cxs-svc-card:nth-child(7){grid-column:10/span 3!important}
}

/* 2. HIERARCHY --------------------------------------------------------- */
.cxs-site{line-height:1.6;text-rendering:optimizeLegibility}
#cxs-main :where(p,li){text-wrap:pretty}
#cxs-main :where(h1,h2,h3){text-wrap:balance}

:where(
 .cxs-editorial-hero h1,.cxs-contact-hero h1,.cxs-portfolio-hero h1,.cxs-store-hero h1,
 .cxs-about-page__hero h1,.cxs-service-hero h1
){font-size:clamp(46px,6.6vw,88px)!important;line-height:.96!important;letter-spacing:-.055em!important}

:where(
 .cxs-editorial-section-head h2,.cxs-learning-heading h2,.cxs-store-section-head h2,
 .cxs-portfolio-section-head h2,.cxs-business-lines__head h2,.cxs-corp-section-head h2,
 .cxs-service-section-head h2,.cxs-section-head h2,.cxs-services-heading h2
){font-size:clamp(34px,4vw,58px)!important;line-height:1!important;letter-spacing:-.045em!important}

:where(
 .cxs-editorial-hero__copy>p:last-of-type,.cxs-contact-hero__copy>p:last-of-type,
 .cxs-portfolio-hero__copy>p:last-of-type,.cxs-store-hero__copy>p:last-of-type,
 .cxs-corp-lead,.cxs-service-hero__copy>p
){font-size:clamp(15px,1.15vw,18px)!important;line-height:1.72!important;max-width:58ch}

:where(
 .cxs-eyebrow,.cxs-section-eyebrow,.cxs-services-eyebrow,.cxs-editorial-eyebrow,
 .cxs-corp-eyebrow,.cxs-corp-kicker,.cxs-course-kicker,.cxs-store-eyebrow,
 .cxs-portfolio-eyebrow,.cxs-course-detail__kicker
){font-size:10px!important;line-height:1.45!important;letter-spacing:.12em!important}

.cxs-desktop-nav>a,.cxs-desktop-nav>button{font-size:12px!important;font-weight:650!important}
.cxs-topbar__message,.cxs-topbar__email{font-size:10px!important}
.cxs-topbar__chips a{font-size:9px!important}

/* Readable card typography: no 7–9px body copy on production surfaces. */
:where(
 .cxs-learning-card__body>p,.cxs-course-card__copy>p:not(.cxs-course-kicker),
 .cxs-project-card__copy>div,.cxs-store-card__copy>div,.cxs-svc-copy p,
 .cxs-business-line-card p,.cxs-blog-card__copy>p,.cxs-course-directory__copy>p
){font-size:13px!important;line-height:1.65!important}

:where(
 .cxs-learning-card__micro,.cxs-learning-card__meta-footer small,.cxs-project-card__copy>p,
 .cxs-project-card__copy footer,.cxs-store-card__copy>p,.cxs-store-card figure>span,
 .cxs-store-card figure>b,.cxs-course-meta span,.cxs-course-meta b
){font-size:10px!important;line-height:1.4!important}

/* 3. GRID / COMPONENT CONSISTENCY ------------------------------------- */
:where(.cxs-course-card,.cxs-learning-card,.cxs-project-card,.cxs-store-card,.cxs-svc-card,.cxs-business-line-card){
  min-width:0;
}
:where(.cxs-course-card,.cxs-learning-card,.cxs-store-card,.cxs-svc-card){height:100%}

:where(.cxs-learning-card,.cxs-store-card,.cxs-svc-card){
  border-radius:var(--cxs-radius-lg)!important;
  box-shadow:var(--cxs-shadow-sm);
}
:where(.cxs-learning-card,.cxs-store-card,.cxs-svc-card):hover{box-shadow:var(--cxs-shadow-md)}

:where(
 .cxs-editorial-cta__box,.cxs-portfolio-cta__box,.cxs-store-cta__box,
 .cxs-contact-form,.cxs-contact-card,.cxs-course-single__audience,.cxs-course-single__info
){border-radius:var(--cxs-radius-lg)!important}

/* Standard interaction sizing. */
:where(
 .cxs-hero-cta,.cxs-corp-btn,.cxs-editorial-btn,.cxs-portfolio-btn,.cxs-store-btn,
 .cxs-service-btn,.cxs-course-more,.cxs-contact-submit,.cxs-store-cart-trigger,
 .cxs-learning-filter-open,.cxs-learning-reset,.cxs-course-filters button,
 .cxs-portfolio-filters button,.cxs-blog-categories a
){min-height:44px}

:where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:46px;
  border-radius:var(--cxs-radius-sm)!important;
}
textarea{min-height:128px}
:where(.cxs-contact-form label>span,.cxs-account-profile-form__controls>label){font-size:12px!important;line-height:1.4!important}
:where(.cxs-contact-consent span,.cxs-contact-form__foot>p){font-size:11px!important;line-height:1.6!important}

/* 4. CONTRAST --------------------------------------------------------- */
.cxs-site{color:var(--cxs-text-on-dark)}
:where(.cxs-hero-subtitle,.cxs-scene-category,.cxs-location,.cxs-tiny){color:var(--cxs-muted-on-dark)!important}

/* Dark surfaces use a dependable secondary text tone. */
:where(
 .cxs-project-card__copy>div,.cxs-project-card__copy footer,
 .cxs-portfolio-no-filter p,.cxs-portfolio-cta__box>p,
 .cxs-footer-pro p,.cxs-footer-pro small
){color:rgba(247,249,255,.78)!important}

/* Light surfaces use a stronger muted tone. */
:where(
 .cxs-learning-card__body>p,.cxs-store-card__copy>div,.cxs-svc-copy p,
 .cxs-course-directory__copy>p,.cxs-blog-card__copy>p,.cxs-contact-form p
){color:var(--cxs-muted-on-light)!important}

/* Brand red remains decorative; functional red CTAs use an AA-safe shade with white text. */
:where(.cxs-editorial-btn--red,.cxs-portfolio-btn--red,.cxs-corp-btn--red,.cxs-store-btn--red,.cxs-contact-submit){
  background:var(--cxs-red-aa)!important;
  color:#fff!important;
}
:where(.cxs-contact-submit b){color:var(--cxs-red-aa)!important}
:where(
 .cxs-blog-card footer strong,.cxs-course-directory__copy>strong,.cxs-course-detail__related-grid footer strong,
 .cxs-editorial-empty a,.cxs-article-single__aside a,.cxs-article-related__grid strong,
 .cxs-search-card b,.cxs-service-related__item em
){color:var(--cxs-red-aa)!important}

/* Bright brand surfaces need dark text, not white. */
:where(.cxs-store-card figure>b.is-disponible){color:#00155c!important}
:where(.cxs-store-card figure>b.is-proximamente){color:#00155c!important}

/* WhatsApp green is bright; dark text reaches accessible contrast while preserving the brand color. */
:where(.cxs-editorial-btn--wa,.cxs-portfolio-btn--wa,.cxs-store-btn--wa,.cxs-corp-btn--wa,.cxs-service-btn--wa){
  color:#00155c!important;
}

.cxs-header-social a[data-network="whatsapp"]{color:#00155c!important}

/* 5. CONSISTENCY / ACCESSIBILITY -------------------------------------- */
:where(a,button,input,select,textarea):focus-visible{
  outline:3px solid var(--cxs-focus)!important;
  outline-offset:3px!important;
}

:where(
 .cxs-editorial-btn,.cxs-portfolio-btn,.cxs-store-btn,.cxs-corp-btn,.cxs-service-btn,
 .cxs-svc-link,.cxs-card-action
){transition:transform var(--cxs-motion-fast) ease,box-shadow var(--cxs-motion-standard) ease,background-color var(--cxs-motion-standard) ease,border-color var(--cxs-motion-standard) ease}

/* Prevent subtle content shift from inconsistent image boxes. */
:where(.cxs-learning-card figure,.cxs-store-card figure,.cxs-project-card__visual,.cxs-business-line-card figure){overflow:hidden}
:where(.cxs-learning-card img,.cxs-store-card img,.cxs-project-card img,.cxs-business-line-card img){width:100%;height:100%}

/* TABLET --------------------------------------------------------------- */
@media (max-width:1120px){
  :root{--cxs-page-gutter:clamp(20px,3vw,36px);--cxs-section-y:clamp(64px,7vw,88px)}
  :where(.cxs-learning-grid,.cxs-store-grid,.cxs-business-lines__grid,.cxs-services-grid){gap:var(--cxs-space-4)!important}
}

/* MOBILE FIRST CORRECTIONS -------------------------------------------- */
@media (max-width:767px){
  :root{--cxs-page-gutter:16px;--cxs-section-y:56px;--cxs-section-y-compact:48px}

  .cxs-container{width:calc(100% - 32px)!important}
  :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:16px!important}
  :where(.cxs-header-search-toggle,.cxs-mobile-nav .cxs-mobile-menu-toggle,.cxs-header-commerce__icon,.cxs-header-account__trigger){width:44px!important;height:44px!important;min-height:44px!important}
  :where(.cxs-learning-filters__top button,.cxs-account-profile-form__actions button){min-height:44px!important}

  :where(
   .cxs-editorial-hero h1,.cxs-contact-hero h1,.cxs-portfolio-hero h1,.cxs-store-hero h1,
   .cxs-about-page__hero h1,.cxs-service-hero h1
  ){font-size:clamp(42px,12.5vw,60px)!important;line-height:.96!important}

  :where(
   .cxs-editorial-section-head h2,.cxs-learning-heading h2,.cxs-store-section-head h2,
   .cxs-portfolio-section-head h2,.cxs-business-lines__head h2,.cxs-corp-section-head h2,
   .cxs-service-section-head h2,.cxs-section-head h2,.cxs-services-heading h2
  ){font-size:clamp(32px,9.5vw,44px)!important;line-height:1!important}

  :where(
   .cxs-learning-grid,.cxs-portfolio-grid,.cxs-store-grid,.cxs-business-lines__grid,
   .cxs-services-grid,.cxs-academy-method__grid,.cxs-portfolio-principles__grid,
   .cxs-project-single__related-grid,.cxs-store-how__grid,.cxs-service-deliverables__grid,
   .cxs-service-process__grid
  ){gap:var(--cxs-space-4)!important}

  /* Avoid tiny badges and crowded actions on touch screens. */
  :where(.cxs-card-action,.cxs-store-card__copy footer button,.cxs-store-card__copy footer>a){min-width:44px;min-height:44px}
  :where(.cxs-editorial-btn,.cxs-portfolio-btn,.cxs-store-btn,.cxs-corp-btn,.cxs-service-btn){width:100%;justify-content:center}
}

@media (max-width:390px){
  :root{--cxs-page-gutter:14px}
  .cxs-container{width:calc(100% - 28px)!important}
}

@media (hover:hover) and (pointer:fine){
  :where(.cxs-learning-card,.cxs-store-card,.cxs-svc-card):hover{transform:translateY(-4px)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important}
  :where(.cxs-learning-card,.cxs-store-card,.cxs-svc-card,.cxs-project-card,.cxs-business-line-card,
         .cxs-editorial-btn,.cxs-portfolio-btn,.cxs-store-btn,.cxs-corp-btn,.cxs-service-btn){
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
