/*
 * Puente visual para páginas construidas con Elementor.
 * Respeta los controles propios del editor y aporta el lenguaje del tema a
 * las clases utilitarias incluidas en las plantillas de Innovaciones Cantarero.
 */

body.ic-elementor-page {
    --ic-elementor-space: clamp(88px, 10vw, 160px);
    --ic-elementor-gap: clamp(20px, 3vw, 42px);
    --ic-elementor-surface: rgba(255, 255, 255, .82);
    --ic-elementor-hero-top: clamp(154px, 12vw, 180px);
    --ic-elementor-hero-bottom: clamp(76px, 8vw, 112px);
    background: var(--ic-paper);
}

body.ic-elementor-page .ic-main,
body.ic-elementor-page .ic-elementor-document,
body.ic-elementor-page .ic-elementor-content,
body.ic-elementor-page .elementor {
    min-width: 0;
}

body.ic-elementor-page .ic-main {
    overflow: visible;
}

.ic-elementor-page {
    position: relative;
    isolation: isolate;
}

.ic-elementor-hero {
    min-height: clamp(500px, 72svh, 760px);
    padding: var(--ic-elementor-hero-top) var(--ic-pad) var(--ic-elementor-hero-bottom);
    overflow: hidden;
    border-bottom: 1px solid var(--ic-line);
    background-color: #fbfcfd;
    background-image:
        linear-gradient(rgba(16, 24, 43, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 43, .045) 1px, transparent 1px),
        radial-gradient(circle at 82% 24%, rgba(56, 182, 255, .15), transparent 32%),
        linear-gradient(145deg, transparent 48%, rgba(81, 112, 255, .08));
    background-size: 72px 72px, 72px 72px, auto, auto;
}

/* `ic-elementor-section` comparte el mismo nodo en los heroes importados. */
.ic-elementor-section.ic-elementor-hero {
    padding: var(--ic-elementor-hero-top) var(--ic-pad) var(--ic-elementor-hero-bottom);
}

/*
 * Respaldo estructural para documentos importados antes de Elementor 4.2.
 * Esas paginas conservaron las clases de sus widgets, pero perdieron las del
 * primer contenedor. El selector se limita a paginas internas cuyo primer
 * bloque contiene el titulo hero; no modifica la portada.
 */
body.ic-elementor-page .ic-elementor-content > .elementor > .e-con.e-parent:first-child:has(.ic-elementor-heading--hero) {
    min-height: clamp(500px, 72svh, 760px);
    padding: var(--ic-elementor-hero-top) var(--ic-pad) var(--ic-elementor-hero-bottom) !important;
    overflow: hidden;
    border-bottom: 1px solid var(--ic-line);
    background-color: #fbfcfd;
    background-image:
        linear-gradient(rgba(16, 24, 43, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 43, .045) 1px, transparent 1px),
        radial-gradient(circle at 82% 24%, rgba(56, 182, 255, .15), transparent 32%),
        linear-gradient(145deg, transparent 48%, rgba(81, 112, 255, .08));
    background-size: 72px 72px, 72px 72px, auto, auto;
}

body:is(
    .ic-elementor-slug-diagnostico,
    .ic-elementor-slug-nosotros,
    .ic-elementor-slug-calcular-roi
) .ic-elementor-content > .elementor > .e-con.e-parent:first-child:has(.ic-elementor-heading--hero) {
    color: rgba(255, 255, 255, .76);
    border-color: var(--ic-line-light);
    background-color: var(--ic-deep);
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        radial-gradient(circle at 82% 24%, rgba(56, 182, 255, .16), transparent 32%),
        linear-gradient(145deg, transparent 48%, rgba(81, 112, 255, .16));
}

body:is(
    .ic-elementor-slug-diagnostico,
    .ic-elementor-slug-nosotros,
    .ic-elementor-slug-calcular-roi
) .ic-elementor-content > .elementor > .e-con.e-parent:first-child :where(.elementor-heading-title) {
    color: var(--ic-white);
}

body:is(
    .ic-elementor-slug-diagnostico,
    .ic-elementor-slug-nosotros,
    .ic-elementor-slug-calcular-roi
) .ic-elementor-content > .elementor > .e-con.e-parent:first-child :where(.elementor-widget-text-editor) {
    color: rgba(255, 255, 255, .76);
}

body.ic-elementor-page .ic-elementor-content > .elementor > .e-con.e-parent:first-child:has(.ic-elementor-heading--hero) > .e-con-inner {
    width: min(100%, var(--ic-shell));
    align-content: start;
    gap: clamp(18px, 2vw, 30px);
    margin-inline: auto;
    padding: 0;
}

body.ic-elementor-page .ic-elementor-content > .elementor > .e-con.e-parent:not(:first-child):not(.ic-elementor-section):has(> .e-con-inner > .ic-elementor-heading) {
    padding: var(--ic-elementor-space) var(--ic-pad) !important;
}

.ic-elementor-hero--diagnosis,
.ic-elementor-hero--about,
.ic-elementor-hero--calculator {
    color: rgba(255, 255, 255, .72);
    border-color: var(--ic-line-light);
    background-color: var(--ic-deep);
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        radial-gradient(circle at 82% 24%, rgba(56, 182, 255, .16), transparent 32%),
        linear-gradient(145deg, transparent 48%, rgba(81, 112, 255, .16));
}

.ic-elementor-hero--diagnosis :where(.elementor-heading-title),
.ic-elementor-hero--about :where(.elementor-heading-title),
.ic-elementor-hero--calculator :where(.elementor-heading-title) {
    color: var(--ic-white);
}

.ic-elementor-hero--diagnosis :where(.elementor-widget-text-editor),
.ic-elementor-hero--about :where(.elementor-widget-text-editor),
.ic-elementor-hero--calculator :where(.elementor-widget-text-editor) {
    color: rgba(255, 255, 255, .68);
}

.ic-elementor-hero :where(.elementor-heading-title),
.ic-elementor-heading--hero :where(.elementor-heading-title) {
    max-width: 920px;
    margin: 0;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 430;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
    overflow-wrap: normal;
}

.ic-elementor-hero :where(.elementor-widget-text-editor),
.ic-elementor-heading--hero ~ .ic-elementor-copy {
    max-width: 760px;
    color: var(--ic-steel);
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    line-height: 1.65;
}

.ic-elementor-section {
    padding: var(--ic-elementor-space) var(--ic-pad);
}

.ic-elementor-component-host {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
    overflow: visible;
}

.ic-elementor-section > :where(.e-con-inner, .elementor-container),
.ic-elementor-section > .elementor-element,
.ic-elementor-hero > :where(.e-con-inner, .elementor-container) {
    width: min(100%, var(--ic-shell));
    margin-inline: auto;
}

.ic-elementor-section--dark {
    color: rgba(255, 255, 255, .7);
    background:
        radial-gradient(circle at 80% 15%, rgba(81, 112, 255, .18), transparent 38%),
        var(--ic-deep);
}

.ic-elementor-section--dark :where(h1, h2, h3, h4, .elementor-heading-title) {
    color: var(--ic-white);
}

.ic-elementor-section--dark :where(p, .elementor-widget-text-editor) {
    color: rgba(255, 255, 255, .66);
}

.ic-elementor-grid {
    width: min(100%, var(--ic-shell));
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ic-elementor-gap);
    margin-inline: auto;
}

/*
 * Elementor envuelve los contenedores `boxed` en `.e-con-inner`. El grid debe
 * aplicarse tambien a ese nodo; de lo contrario sus tarjetas conservan el
 * flujo flex vertical aunque el contenedor exterior ya sea una cuadricula.
 */
.ic-elementor-grid > .e-con-inner {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ic-elementor-gap);
    margin: 0;
    padding: 0;
}

.ic-elementor-grid > .ic-elementor-card,
.ic-elementor-grid > .e-con-inner > .ic-elementor-card {
    --width: 100%;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    align-self: stretch;
}

.ic-elementor-card {
    min-width: 0;
    padding: clamp(25px, 3vw, 42px);
    overflow: hidden;
    background: var(--ic-elementor-surface);
    border: 1px solid var(--ic-line);
    border-radius: var(--ic-radius);
    box-shadow: 0 24px 70px rgba(16, 24, 43, .06);
    transition: border-color .35s var(--ic-ease), box-shadow .35s var(--ic-ease), transform .35s var(--ic-ease);
}

.ic-elementor-card:hover {
    border-color: rgba(81, 112, 255, .45);
    box-shadow: 0 30px 90px rgba(16, 24, 43, .1);
    transform: translateY(-4px);
}

.ic-elementor-card :where(.elementor-heading-title) {
    text-wrap: balance;
}

.ic-elementor-card :where(.elementor-widget-image img) {
    width: 100%;
    border-radius: var(--ic-radius);
}

.ic-elementor-investment-card {
    height: 100%;
}

.ic-elementor-investment-card > .e-con-inner {
    height: 100%;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
}

.ic-elementor-investment-card .ic-elementor-heading :where(.elementor-heading-title) {
    min-height: 2.1em;
    font-size: clamp(1.65rem, 2.15vw, 2.35rem) !important;
    letter-spacing: -.04em;
    line-height: 1.05;
    overflow-wrap: normal;
}

.ic-elementor-investment-card .ic-elementor-copy {
    max-width: none;
    font-size: .98rem;
    line-height: 1.65;
}

.ic-elementor-investment-card .ic-elementor-button {
    align-self: end;
    margin-top: auto;
}

/* Ruta comercial: adaptación propia de las tarjetas de inversión. */
.ic-elementor-investment {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: rgba(255, 255, 255, .7);
    background:
        radial-gradient(circle at 50% 42%, rgba(81, 112, 255, .17), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(56, 182, 255, .09), transparent 28%),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        var(--ic-deep);
    background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

.ic-elementor-investment::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, transparent 18%, rgba(56, 182, 255, .05) 50%, transparent 78%);
    pointer-events: none;
}

.ic-elementor-investment > .e-con-inner {
    position: relative;
    z-index: 1;
}

.ic-elementor-investment > .e-con-inner > .ic-elementor-kicker,
.ic-elementor-investment > .ic-elementor-kicker {
    color: #9ecbff;
}

.ic-elementor-investment > .e-con-inner > .ic-elementor-heading :where(.elementor-heading-title),
.ic-elementor-investment > .ic-elementor-heading :where(.elementor-heading-title) {
    max-width: 900px;
    color: var(--ic-white);
}

.ic-elementor-investment > .e-con-inner > .ic-elementor-copy,
.ic-elementor-investment > .ic-elementor-copy {
    max-width: 820px;
    color: rgba(255, 255, 255, .68);
}

.ic-elementor-investment .ic-elementor-grid--three {
    gap: clamp(16px, 2.2vw, 30px);
    align-items: stretch;
}

.ic-elementor-investment .ic-elementor-investment-card {
    position: relative;
    min-height: 510px;
    padding: clamp(26px, 3vw, 40px);
    overflow: hidden;
    color: rgba(255, 255, 255, .7);
    background: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.ic-elementor-investment .ic-elementor-investment-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--ic-sky), transparent);
    opacity: .46;
}

.ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:nth-child(2),
.ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:nth-child(2) {
    background:
        radial-gradient(circle at 80% 10%, rgba(56, 182, 255, .19), transparent 34%),
        linear-gradient(155deg, rgba(81, 112, 255, .24), rgba(81, 112, 255, .07));
    border-color: rgba(56, 182, 255, .56);
    box-shadow: 0 34px 95px rgba(0, 0, 0, .3), 0 0 56px rgba(56, 182, 255, .09);
    transform: translateY(-10px);
}

.ic-elementor-investment .ic-elementor-investment-card:hover {
    border-color: rgba(56, 182, 255, .66);
    box-shadow: 0 38px 105px rgba(0, 0, 0, .34), 0 0 58px rgba(56, 182, 255, .1);
    transform: translateY(-6px);
}

.ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:nth-child(2):hover,
.ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:nth-child(2):hover {
    transform: translateY(-14px);
}

.ic-elementor-investment .ic-elementor-investment-card > .e-con-inner {
    height: 100%;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    gap: 20px;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-kicker {
    width: fit-content;
    margin-bottom: 2px;
    padding: 8px 12px;
    color: #b9dcff;
    background: rgba(56, 182, 255, .09);
    border: 1px solid rgba(56, 182, 255, .2);
    border-radius: 999px;
    font-size: .61rem;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-kicker p::before {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
    background: var(--ic-sky);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(56, 182, 255, .1);
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-heading :where(.elementor-heading-title) {
    min-height: 2.1em;
    color: var(--ic-white);
    font-size: clamp(1.75rem, 2.25vw, 2.45rem) !important;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-copy {
    color: rgba(255, 255, 255, .66);
    font-size: .92rem;
    line-height: 1.7;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-copy p + p {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-copy strong {
    color: var(--ic-white);
    font-weight: 720;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-copy p + p > strong:only-child {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    letter-spacing: -.05em;
    line-height: 1;
}

.ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:nth-child(2) .ic-elementor-copy p,
.ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:nth-child(2) .ic-elementor-copy p {
    padding-block: 10px;
    line-height: 2.75;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-button {
    width: 100%;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-button .elementor-button {
    width: 100%;
    min-height: 56px;
    color: var(--ic-white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    border-radius: 999px;
}

.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-button .elementor-button:hover,
.ic-elementor-investment .ic-elementor-investment-card .ic-elementor-button .elementor-button:focus-visible {
    color: var(--ic-deep);
    background: var(--ic-sky);
    border-color: var(--ic-sky);
}

.ic-elementor-investment .ic-elementor-note {
    color: rgba(255, 255, 255, .54);
    background: rgba(255, 255, 255, .035);
    border-color: rgba(56, 182, 255, .7);
}

.ic-elementor-kicker {
    color: var(--ic-signal-dark);
    font-family: var(--ic-mono);
    font-size: .67rem;
    font-weight: 780;
    letter-spacing: .11em;
    line-height: 1.45;
    text-transform: uppercase;
}

.ic-elementor-kicker p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ic-elementor-kicker p::before {
    width: 34px;
    height: 1px;
    flex: 0 0 34px;
    content: "";
    background: currentColor;
}

:where(
    .ic-elementor-hero--diagnosis,
    .ic-elementor-hero--about,
    .ic-elementor-hero--calculator,
    .ic-elementor-positioning,
    .ic-elementor-commitments,
    .ic-elementor-cta
) .ic-elementor-kicker {
    color: #9ecbff;
}

.ic-elementor-heading:not(.ic-elementor-heading--hero) :where(.elementor-heading-title) {
    max-width: 980px;
    font-size: clamp(2.55rem, 4.55vw, 4.5rem);
    letter-spacing: -.052em;
    line-height: 1;
}

/* Escala comun para los encabezados editoriales renderizados por widgets IC. */
body.ic-elementor-page :where(
    .ic-section-head h2,
    .ic-ledger-head h2,
    .ic-editorial-split h2,
    .ic-page-cta__layout h2,
    .ic-scope-boundary h2,
    .ic-purpose-ledger h2,
    .ic-route__intro h2,
    .ic-connected__head h2,
    .ic-roi__copy h2,
    .ic-final-cta h2
) {
    max-width: 920px;
    font-size: clamp(2.75rem, 4.55vw, 4.5rem);
    letter-spacing: -.052em;
    line-height: 1;
    text-wrap: balance;
    overflow-wrap: normal;
}

body.ic-elementor-page :where(
    .ic-contact-rail h2,
    .ic-calculator-rail h2,
    .ic-form-surface > header h2,
    .ic-integration-fallback h2,
    .ic-solution-line__header h2
) {
    max-width: 760px;
    font-size: clamp(2.4rem, 3.9vw, 3.75rem);
    letter-spacing: -.048em;
    line-height: 1.02;
    text-wrap: balance;
    overflow-wrap: normal;
}

.ic-elementor-copy {
    max-width: 760px;
    color: var(--ic-steel);
    font-size: clamp(.95rem, 1.25vw, 1.08rem);
}

.ic-elementor-hero--diagnosis .elementor-widget-text-editor,
.ic-elementor-hero--about .elementor-widget-text-editor,
.ic-elementor-hero--calculator .elementor-widget-text-editor,
.ic-elementor-positioning .ic-elementor-copy,
.ic-elementor-commitments .ic-elementor-copy,
.ic-elementor-cta .ic-elementor-copy {
    color: rgba(255, 255, 255, .76);
}

.ic-elementor-problem,
.ic-elementor-about-origin,
.ic-elementor-diagnosis-intro,
.ic-elementor-calculator-disclaimer {
    background: var(--ic-white);
}

.ic-elementor-scope-boundary,
.ic-elementor-risk,
.ic-elementor-roi--teaser {
    background: #eaf1ff;
}

.ic-elementor-positioning,
.ic-elementor-commitments {
    color: rgba(255, 255, 255, .7);
    background:
        radial-gradient(circle at 78% 18%, rgba(81, 112, 255, .2), transparent 34%),
        var(--ic-deep);
}

.ic-elementor-positioning :where(.elementor-heading-title),
.ic-elementor-commitments :where(.elementor-heading-title) {
    color: var(--ic-white);
}

.ic-elementor-positioning .ic-elementor-copy,
.ic-elementor-commitments .ic-elementor-copy {
    color: rgba(255, 255, 255, .76);
}

.ic-elementor-purpose-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ic-elementor-gap);
    background: var(--ic-white);
}

.ic-elementor-method-preface,
.ic-elementor-calculator-preface {
    padding-block: 24px;
    color: var(--ic-white);
    background: var(--ic-signal-dark);
}

.ic-elementor-method-preface .ic-elementor-note,
.ic-elementor-calculator-preface .ic-elementor-note {
    max-width: var(--ic-shell);
    margin-inline: auto;
    color: var(--ic-white);
    background: transparent;
    border-color: var(--ic-sky);
}

.ic-elementor-contact-channels,
.ic-elementor-contact-form {
    background: var(--ic-white);
}

.elementor-widget.ic-elementor-contact-form {
    padding: clamp(28px, 5vw, 62px);
    background: var(--ic-paper);
    border-top: 3px solid var(--ic-signal);
}

.ic-elementor-calculator-workspace {
    background: var(--ic-paper);
}

.ic-elementor-calculator-workspace .ic-elementor-widget--roi-calculator {
    margin-block: clamp(28px, 4vw, 55px);
}

.ic-elementor-cost-equation :where(.elementor-icon-list-items) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ic-elementor-cost-equation :where(.elementor-icon-list-item) {
    padding: 18px;
    border: 1px solid var(--ic-line-light);
}

.ic-elementor-cta {
    width: min(calc(100% - (var(--ic-pad) * 2)), var(--ic-shell));
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(35px, 8vw, 120px);
    margin: var(--ic-elementor-space) auto;
    padding: clamp(42px, 6vw, 84px);
    color: rgba(255, 255, 255, .68);
    background:
        linear-gradient(135deg, rgba(81, 112, 255, .22), transparent 52%),
        var(--ic-deep);
    border: 1px solid var(--ic-line-light);
    border-radius: var(--ic-radius);
}

.ic-elementor-cta :where(h1, h2, h3, h4, .elementor-heading-title) {
    color: var(--ic-white);
}

.ic-elementor-note {
    max-width: 760px;
    padding: clamp(22px, 3vw, 34px);
    color: var(--ic-steel);
    background: rgba(56, 182, 255, .07);
    border-left: 3px solid var(--ic-sky);
}

.ic-elementor-page :where(.elementor-widget-heading .elementor-heading-title) {
    text-wrap: balance;
}

.ic-elementor-page :where(.elementor-widget-text-editor > :last-child),
.ic-elementor-page :where(.elementor-widget-text-editor p:last-child) {
    margin-bottom: 0;
}

.ic-elementor-page :where(.elementor-button, .wp-element-button) {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    color: var(--ic-white);
    background: var(--ic-signal-dark);
    border: 1px solid var(--ic-signal-dark);
    border-radius: var(--ic-radius);
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.2;
    transition: color .3s var(--ic-ease), background .3s var(--ic-ease), border-color .3s var(--ic-ease), transform .3s var(--ic-ease);
}

.ic-elementor-page :where(.elementor-button, .wp-element-button):hover,
.ic-elementor-page :where(.elementor-button, .wp-element-button):focus-visible {
    color: var(--ic-deep);
    background: var(--ic-sky);
    border-color: var(--ic-sky);
    transform: translateY(-2px);
}

.ic-elementor-section--dark :where(.elementor-button, .wp-element-button) {
    color: var(--ic-deep);
    background: var(--ic-white);
    border-color: var(--ic-white);
}

.ic-elementor-page :where(.elementor-icon-list-items) {
    gap: 0;
}

.ic-elementor-page :where(.elementor-icon-list-item) {
    padding-block: 12px;
    border-bottom: 1px solid var(--ic-line);
}

.ic-elementor-section--dark :where(.elementor-icon-list-item) {
    border-color: var(--ic-line-light);
}

.ic-elementor-page :where(.elementor-icon-list-icon, .elementor-icon) {
    color: var(--ic-signal);
}

.ic-elementor-page :where(.elementor-divider-separator) {
    border-color: var(--ic-line);
}

.ic-elementor-page :where(.elementor-accordion-item, .elementor-toggle-item) {
    border-color: var(--ic-line);
}

.ic-elementor-page :where(.elementor-tab-title) {
    font-weight: 700;
}

.ic-elementor-page :where(.elementor-progress-wrapper) {
    overflow: hidden;
    background: rgba(16, 24, 43, .09);
    border-radius: 999px;
}

@media (max-width: 1024px) {
    body.ic-elementor-page {
        --ic-elementor-space: clamp(88px, 10vw, 112px);
        --ic-elementor-hero-top: clamp(138px, 15vw, 150px);
        --ic-elementor-hero-bottom: clamp(76px, 9vw, 88px);
    }

    .ic-elementor-heading--hero :where(.elementor-heading-title) {
        max-width: 760px;
        font-size: clamp(3rem, 5.5vw, 3.5rem);
        line-height: 1;
    }

    .ic-elementor-heading:not(.ic-elementor-heading--hero) :where(.elementor-heading-title) {
        font-size: clamp(2.7rem, 5.3vw, 3.5rem);
    }

    body.ic-elementor-page :where(
        .ic-section-head h2,
        .ic-ledger-head h2,
        .ic-editorial-split h2,
        .ic-page-cta__layout h2,
        .ic-scope-boundary h2,
        .ic-purpose-ledger h2,
        .ic-route__intro h2,
        .ic-connected__head h2,
        .ic-roi__copy h2,
        .ic-final-cta h2
    ) {
        font-size: clamp(2.7rem, 5.3vw, 3.5rem);
    }

    body.ic-elementor-page :where(
        .ic-contact-rail h2,
        .ic-calculator-rail h2,
        .ic-form-surface > header h2,
        .ic-integration-fallback h2,
        .ic-solution-line__header h2
    ) {
        font-size: clamp(2.4rem, 4.7vw, 3rem);
    }

    .ic-elementor-grid,
    .ic-elementor-grid > .e-con-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:last-child,
    .ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:last-child {
        grid-column: 1 / -1;
    }

    .ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:nth-child(2),
    .ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:nth-child(2) {
        transform: none;
    }

    .ic-elementor-cta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ic-elementor-purpose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body.ic-elementor-page {
        --ic-elementor-space: clamp(68px, 19vw, 80px);
        --ic-elementor-gap: 16px;
        --ic-elementor-hero-top: clamp(106px, 29vw, 118px);
        --ic-elementor-hero-bottom: clamp(58px, 17vw, 68px);
    }

    .ic-elementor-hero {
        min-height: auto;
        padding-block: var(--ic-elementor-hero-top) var(--ic-elementor-hero-bottom);
        background-size: 48px 48px, 48px 48px, auto, auto;
    }

    .ic-elementor-section.ic-elementor-hero {
        padding-block: var(--ic-elementor-hero-top) var(--ic-elementor-hero-bottom);
    }

    body.ic-elementor-page .ic-elementor-content > .elementor > .e-con.e-parent:first-child:has(.ic-elementor-heading--hero) {
        min-height: auto;
        padding-block: var(--ic-elementor-hero-top) var(--ic-elementor-hero-bottom) !important;
        background-size: 48px 48px, 48px 48px, auto, auto;
    }

    .ic-elementor-hero :where(.elementor-heading-title),
    .ic-elementor-heading--hero :where(.elementor-heading-title) {
        max-width: 100%;
        font-size: clamp(2.125rem, 9.8vw, 2.5rem);
        letter-spacing: -.045em;
        line-height: 1.04;
    }

    .ic-elementor-heading:not(.ic-elementor-heading--hero) :where(.elementor-heading-title) {
        font-size: clamp(2.125rem, 10.2vw, 2.5rem);
        letter-spacing: -.045em;
        line-height: 1.04;
    }

    body.ic-elementor-page :where(
        .ic-section-head h2,
        .ic-ledger-head h2,
        .ic-editorial-split h2,
        .ic-page-cta__layout h2,
        .ic-scope-boundary h2,
        .ic-purpose-ledger h2,
        .ic-route__intro h2,
        .ic-connected__head h2,
        .ic-roi__copy h2,
        .ic-final-cta h2,
        .ic-contact-rail h2,
        .ic-calculator-rail h2,
        .ic-form-surface > header h2,
        .ic-integration-fallback h2,
        .ic-solution-line__header h2
    ) {
        max-width: 100%;
        font-size: clamp(2.125rem, 10.2vw, 2.5rem);
        letter-spacing: -.045em;
        line-height: 1.06;
    }

    .ic-elementor-copy,
    .ic-elementor-hero :where(.elementor-widget-text-editor),
    .ic-elementor-heading--hero ~ .ic-elementor-copy {
        max-width: 100%;
        font-size: .98rem;
        line-height: 1.65;
    }

    .ic-elementor-grid,
    .ic-elementor-grid > .e-con-inner {
        grid-template-columns: 1fr;
    }

    .ic-elementor-investment-card .ic-elementor-heading :where(.elementor-heading-title) {
        min-height: 0;
        font-size: clamp(1.75rem, 8.6vw, 2.15rem) !important;
    }

    .ic-elementor-investment .ic-elementor-investment-card {
        min-height: 0;
        padding: 24px;
    }

    .ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:last-child,
    .ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:last-child {
        grid-column: auto;
    }

    .ic-elementor-investment .ic-elementor-grid--three > .ic-elementor-investment-card:nth-child(2),
    .ic-elementor-investment .ic-elementor-grid--three > .e-con-inner > .ic-elementor-investment-card:nth-child(2) {
        transform: none;
    }

    .ic-elementor-cost-equation :where(.elementor-icon-list-items) {
        grid-template-columns: 1fr;
    }

    .ic-elementor-card {
        padding: 24px;
    }

    .ic-elementor-cta {
        width: min(calc(100% - 36px), var(--ic-shell));
        margin-block: 82px;
        padding: 34px 24px;
    }

    .ic-elementor-page :where(.elementor-button-wrapper, .elementor-button) {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ic-elementor-card,
    .ic-elementor-page :where(.elementor-button, .wp-element-button) {
        transition: none;
    }

    .ic-elementor-investment .ic-elementor-investment-card,
    .ic-elementor-investment .ic-elementor-investment-card:hover,
    .ic-elementor-investment .ic-elementor-investment-card:nth-child(2),
    .ic-elementor-investment .ic-elementor-investment-card:nth-child(2):hover,
    .ic-elementor-investment .e-con-inner > .ic-elementor-investment-card:nth-child(2),
    .ic-elementor-investment .e-con-inner > .ic-elementor-investment-card:nth-child(2):hover,
    .ic-elementor-card:hover,
    .ic-elementor-page :where(.elementor-button, .wp-element-button):hover {
        transform: none;
    }
}
