/*
 * TBT — Design system. All styling lives here; views use class names only.
 * Mobile-first. Change tokens in :root to adjust the whole look.
 */

/* ========== 1. DESIGN TOKENS ========== */
:root {
    /* Colors — TBT corporate palette (navy, green, silver) */
    --color-bg:           #041326;
    --color-bg-elevated:  #071b33;
    --color-bg-muted:     #082544;
    --color-text:         #f4f7fb;
    --color-text-muted:   #aeb9cc;
    --color-border:       #123055;
    --color-accent:       #1cb56a;
    --color-accent-hover: #27c779;
    --color-success:      #1cb56a;
    --color-error:        #e05a5a;

    /* Typography */
    --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  ui-monospace, monospace;
    --text-base:  1rem;
    --text-sm:    0.875rem;
    --text-lg:    1.125rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   2rem;
    --text-hero:  2.5rem;
    --line-tight: 1.25;
    --line-normal: 1.5;
    --line-relaxed: 1.65;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Spacing — 4px base */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max:  72rem;
    --container-narrow: 36rem;
    --header-height:  4rem;
    --radius:         4px;
    --radius-lg:      8px;
    --shadow:         0 4px 24px rgba(0, 0, 0, 0.4);
    --transition:     ease 0.2s;

    /* Breakpoints — use in min-width media queries */
    --bp-sm:  480px;
    --bp-md:  768px;
    --bp-lg:  1024px;
    --bp-xl:  1280px;
}

/* ========== 2. RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-normal);
    font-weight: var(--weight-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* ========== 3. UTILITIES ========== */
.skip-link {
    position: absolute;
    top: calc(-1 * var(--header-height));
    left: var(--space-4);
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: var(--weight-medium);
    border-radius: var(--radius);
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-2);
    outline: 2px solid var(--color-accent-hover);
    outline-offset: 2px;
}

/* ========== 4. LAYOUT ========== */
.main {
    flex: 1;    
}

/* History back (all pages except home): native history.back() when length > 1, else href → home */
.back-bar {
    padding-top: var(--space-4);
    padding-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-2);
    margin-left: calc(-1 * var(--space-2));
    transition: color 0.15s ease, background-color 0.15s ease;
}

.back-link:hover {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.06);
}

.back-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.back-link__arrow {
    font-size: 0.95em;
    line-height: 1;
    opacity: 0.85;
}

.back-link__label {
    line-height: var(--line-tight);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ========== 5. SITE HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-mark {
    height: 2.5rem;
    width: auto;
    display: block;
}

.logo:hover .logo-mark {
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.45));
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: var(--text-sm);
}

.nav-toggle:hover {
    background: var(--color-bg-muted);
    border-color: var(--color-text-muted);
}

.nav-toggle[aria-expanded="true"] {
    background: var(--color-bg-muted);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-elevated);
    padding: var(--space-8);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility var(--transition), opacity var(--transition);
}

.nav-main.is-open {
    visibility: visible;
    opacity: 1;
}

@media (min-width: 768px) {
    .nav-main {
        position: static;
        padding: 0;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        background: transparent;
    }
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .nav-list {
        flex-direction: row;
        gap: var(--space-6);
        align-items: center;
    }
}

.nav-link {
    display: block;
    padding: var(--space-2) 0;
    color: var(--color-text);
    font-weight: var(--weight-medium);
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    .nav-link {
        font-size: var(--text-sm);
        padding: var(--space-2) 0;
    }
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link--current {
    color: var(--color-accent);
}

/* ========== 6. SITE FOOTER ========== */
.site-footer {
    margin-top: var(--space-16);
    padding: var(--space-8) 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    text-align: center;
}

.footer-legal {
    margin-bottom: var(--space-6);
}

.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
}

.footer-legal-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-legal-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-lang {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-lang-label {
    margin-right: var(--space-2);
}

.footer-lang-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--weight-medium);
}

.footer-lang-link:hover {
    color: var(--color-accent);
}

.footer-lang-link--current {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-lang-sep {
    margin: 0 var(--space-2);
    opacity: 0.5;
}

.footer-tagline {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-rights {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Legal pages (LSSI / RGPD / cookies) */
.page-legal .legal-disclaimer {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-8);
    text-align: center;
}

.legal-identity {
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: left;
}

.legal-dl {
    margin: 0;
    display: grid;
    gap: var(--space-3) var(--space-6);
    grid-template-columns: minmax(7rem, 10rem) 1fr;
}

@media (max-width: 480px) {
    .legal-dl {
        grid-template-columns: 1fr;
    }
}

.legal-dl dt {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
}

.legal-dl dd {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.legal-dl a {
    color: var(--color-accent);
}

.legal-section {
    margin-bottom: var(--space-10);
    text-align: left;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.page-legal .page-title {
    text-align: center;
}

/* ========== 7. SECTIONS & PAGE ========== */
.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section-intro {
    padding-top: var(--space-10);
}

.page-title {
    margin: 0 0 var(--space-4);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .page-title {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }
}

.page-lead {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
    max-width: 40rem;
}

/* ========== 8. HERO ========== */
.hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
    background:
        radial-gradient(circle at 10% 0%, rgba(28, 181, 106, 0.4), transparent 55%),
        radial-gradient(circle at 90% 0%, rgba(36, 132, 204, 0.5), transparent 55%),
        linear-gradient(135deg, #041326 0%, #082544 60%, #041326 100%);
    border-bottom: 1px solid var(--color-border);
}

.hero-title {
    margin: 0 0 var(--space-4);
    font-size: var(--text-hero);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
}

.hero-lead {
    margin: 0 0 var(--space-8);
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-support-line {
    margin: var(--space-8) 0 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
}

/* Home hero con vídeo (intro.mp4): fondo negro en toda la sección para alinear con el vídeo; sin marco en el <video> */
.hero:has(.site-video--hero) {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero:has(.site-video--hero) .hero__figure {
    border: none;
    border-radius: 0;
    background: transparent;
}

.hero:has(.site-video--hero) .site-video--hero {
    border: none;
    outline: none;
    box-shadow: none;
    background: #000000;
    border-radius: 0;
}

.hero:has(.site-video--hero) .hero__video-fallback-img {
    border-radius: 0;
}

/* ========== 8b. BLOCKS (section title + body) ========== */
.block-title {
    margin: 0 0 var(--space-4);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .block-title {
        font-size: var(--text-3xl);
    }
}

.block-text {
    margin: 0 0 var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
    max-width: 50rem;
}

.block-text:last-child {
    margin-bottom: 0;
}

/* ========== 8c. CARDS ========== */
.card-grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    padding: var(--space-6);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.card-title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--line-tight);
}

.card-text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
}

.card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card--link:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.card--link .card-title {
    color: var(--color-text);
}

.card--link:hover .card-title {
    color: var(--color-accent);
}

.card-grid--blog {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .card-grid--blog {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-back {
    display: inline-block;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.article-body {
    font-size: var(--text-base);
    line-height: var(--line-relaxed);
    color: var(--color-text-muted);
}

.article-body p {
    margin: 0 0 var(--space-4);
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* ========== 8d. LISTS ========== */
.bullet-list {
    margin: var(--space-4) 0 0;
    padding-left: var(--space-6);
    list-style: disc;
}

.bullet-list li {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
}

.bullet-list li:last-child {
    margin-bottom: 0;
}

.steps-list {
    margin: var(--space-8) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: var(--space-6);
    counter-increment: step;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-bg);
    background: var(--color-accent);
    border-radius: var(--radius);
}

.step-title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--line-tight);
}

.step-text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
}

/* ========== 8e. CTA BLOCK ========== */
.cta-block {
    padding: var(--space-12) 0;
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.cta-block .block-title {
    margin-bottom: var(--space-4);
}

.cta-block .block-text {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-6);
}

/* ========== 9. BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1;
    border-radius: var(--radius);
    border: none;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-muted);
}

/* ========== 10. FORMS ========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-actions {
    margin-top: var(--space-2);
}

.form-feedback {
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.form-feedback--success {
    background: rgba(45, 138, 94, 0.15);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form-feedback--error {
    background: rgba(194, 74, 74, 0.15);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* ========== 11. PAGE-SPECIFIC (minimal) ========== */
.section-form {
    padding-top: var(--space-8);
}

/* ========== 12. SITE IMAGES (docs/images.md) ========== */
.site-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.site-img--hero {
    aspect-ratio: 16 / 10;
    max-height: 22rem;
}

/* Hero video (intro.mp4): mismo encaje que la imagen; 16:9 intrínseco recortado con cover */
.site-video--hero {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 22rem;
    object-fit: cover;
    vertical-align: middle;
    background: var(--color-surface-raised, #0a1a2e);
}

.hero__video-fallback-img {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero__figure:has(.hero__video-fallback-img) .site-video--hero {
        display: none;
    }

    .hero__figure .hero__video-fallback-img {
        display: none;
    }

    .hero__figure:has(.hero__video-fallback-img) .hero__video-fallback-img {
        display: block;
    }
}

.site-img--section {
    aspect-ratio: 4 / 3;
}

.site-img--card {
    aspect-ratio: 16 / 10;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: stretch;
}

/* Móvil: imagen → título/texto. Escritorio: texto | imagen (orden DOM). */
.hero--with-media .hero__copy {
    order: 0;
}

.hero--with-media .hero__figure {
    order: -1;
}

@media (min-width: 768px) {
    .hero--with-media .hero__inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-10);
    }

    .hero--with-media .hero__copy {
        flex: 1 1 50%;
        min-width: 0;
        order: 0;
    }

    .hero--with-media .hero__figure {
        flex: 1 1 45%;
        min-width: 0;
        margin: 0;
        order: 1;
    }
}

.hero__figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* Móvil: imagen arriba, luego título + copy. Escritorio: texto | imagen. */
.section--split .section__split {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: stretch;
}

.section--split .section__copy {
    order: 0;
}

.section--split .section__figure {
    order: -1;
}

@media (min-width: 768px) {
    .section--split .section__split {
        flex-direction: row;
        gap: var(--space-10);
        align-items: center;
    }

    .section--split .section__copy {
        flex: 1 1 50%;
        min-width: 0;
        order: 0;
    }

    .section--split .section__figure {
        flex: 1 1 50%;
        min-width: 0;
        order: 1;
    }
}

.section__figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.section__copy {
    min-width: 0;
}

.card--with-media .card__figure {
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--color-border);
}

.card--with-media .card__figure .site-img--card {
    border-radius: 0;
}

/* Tarjeta enlace (blog): imagen arriba, padding en título/texto */
a.card--link.card--with-media {
    padding: 0;
    overflow: hidden;
}

a.card--link.card--with-media .card__figure {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
}

a.card--link.card--with-media .card__figure .site-img--card {
    border-radius: 0;
}

a.card--link.card--with-media .card-title {
    margin: var(--space-4) var(--space-6) var(--space-3);
}

a.card--link.card--with-media .card-text {
    margin: 0;
    padding: 0 var(--space-6) var(--space-6);
}

/* Pasos junto a imagen (method): lista no pierde contador */
.section--split .section__copy .steps-list {
    margin-top: 0;
}

.bullet-list--with-icons {
    list-style: none;
    padding-left: 0;
}

.bullet-list--with-icons .bullet-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.bullet-list--with-icons .bullet-list__icon-wrap {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15em;
}

.bullet-list--with-icons .bullet-list__icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(64%) sepia(47%) saturate(456%) hue-rotate(99deg) brightness(95%) contrast(90%);
}

.bullet-list--with-icons .bullet-list__text {
    flex: 1;
    min-width: 0;
    color: var(--color-text-muted);
    line-height: var(--line-relaxed);
}

.bullet-list--with-icons .bullet-list__item--no-icon::before {
    content: "•";
    flex-shrink: 0;
    width: 1.75rem;
    text-align: center;
    color: var(--color-accent);
    font-weight: var(--weight-bold);
    margin-top: 0.15em;
}

.cta-block--with-bg-image {
    position: relative;
    overflow: hidden;
}

.cta-block--with-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cta-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
}

.cta-block--with-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 19, 38, 0.85) 0%, rgba(8, 37, 68, 0.75) 100%);
    pointer-events: none;
}

.cta-block--with-bg-image .container {
    position: relative;
    z-index: 1;
}
