@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700,800&display=swap');

:root {
    --primary: #9efff9;
    /* Cyan brillante XD */
    --primary-dark: #06b6d4;
    --secondary: #6366f1;
    /* Indigo */
    --accent: #d946ef;
    /* Fuchsia */
    --bg-light: #ffffff;
    --bg-gray: #f3f4f6;
    --bg-dark: #07090e;
    /* Deep space black */
    --text-dark: #0b0f19;
    --text-muted: #6b7280;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- PROJECTS PAGE --- */
.solutions-page {
    background-image: url('../contenido/fondo-soluciones.png');
    background-position: left top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    min-height: calc(100vh - 85px);
    padding: 3rem 0rem 10rem 0rem;
}

.solutions-wrapper {
    margin: 0 auto;
    max-width: 1600px;
}

.solutions-heading {
    margin-bottom: 1.6rem;
}

.solutions-heading p {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.35rem;
}

.solutions-heading h1 {
    color: #000;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    text-transform: uppercase;
}

.solutions-grid {
    display: grid;
    gap: 1rem 2.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(8, 35, 77, 0.09);
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(8, 35, 77, 0.04);
    display: grid;
    grid-template-columns: minmax(190px, 33%) 1fr;
    min-height: 280px;
    overflow: hidden;
}

.solution-copy {
    padding: 1.35rem 1.15rem 1rem 1.65rem;
}

.solution-copy h2 {
    color: #000;
    font-size: clamp(1.12rem, 1.35vw, 1.48rem);
    line-height: 1.18;
}
.solutions-page .solution-copy p {
    color: #000;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0.75rem;
}

.solution-card img,
.solution-card video,
.solution-image-pending {
    background: #ffffff;
    border-radius: 15px;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    padding: 10px 10px 10px 0;
    width: 100%;
}

.solution-image-pending {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfe 100%);
}

@media (max-width: 980px) {
    .solutions-grid { gap: 1.25rem; }
    .solution-card { grid-template-columns: 31% 1fr; }
    .solution-copy { padding-left: 1.1rem; }
}

@media (max-width: 720px) {
    .solutions-page { padding: 2rem 1.25rem 3rem; }
    .solutions-grid { grid-template-columns: 1fr; }
    .solution-card { min-height: 250px; }
}

@media (max-width: 480px) {
    .solution-card { grid-template-columns: 1fr; }
    .solution-copy { padding: 1.25rem; }
    .solution-card img, .solution-card video, .solution-image-pending { min-height: 220px; }
}

.projects-hero {
    position: relative;
    min-height: 650px;
    background: #fff;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 12.5vh;
    top: 12.5dvh;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../contenido/FONDO-PROYECTOS.png?v=2') right center / contain no-repeat;
    pointer-events: none;
    z-index: 0;
}

.projects-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.projects-layout {
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(430px, 44%) 1fr;
    position: relative;
    z-index: 2;
}

.projects-copy {
    max-width: 670px;
    padding: 5rem 2rem 9.5rem clamp(2rem, 7vw, 7.5rem);
    position: relative;
    z-index: 1;
}

.projects-eyebrow {
    display: inline-block;
    color: #0895b5;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #099fbd;
}

.projects-copy h1 {
    color: #000;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.045em;
    margin-bottom: 1.3rem;
    text-transform: uppercase;
}

.projects-copy h1 span,
.projects-neotec-band h2 span {
    color: #069ab9;
}

.projects-intro,
.projects-description {
    color: #000;
    font-size: 1.03rem;
    line-height: 1.52;
    max-width: 510px;
}

.projects-description {
    margin-top: 0.55rem;
}

.projects-funding-pill {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(6, 72, 111, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(8, 35, 77, 0.1);
    color: #12305d;
    display: inline-flex;
    font-size: 0.87rem;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 0.85rem 1.15rem;
}

.projects-funding-pill strong {
    color: #069ab9;
}

.projects-shield {
    color: #069ab9;
    font-size: 1.55rem;
    line-height: 0.8;
}

.projects-visual {
    background: transparent;
    min-height: 570px;
}

.projects-benefits {
    bottom: 1.1rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    left: clamp(2rem, 7vw, 7.5rem);
    max-width: 905px;
    position: absolute;
    z-index: 2;
}

.project-benefit-card {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(8, 35, 77, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(8, 35, 77, 0.1);
    display: flex;
    gap: 0.85rem;
    min-height: 116px;
    padding: 0.9rem 1rem;
}

.project-benefit-icon {
    align-items: center;
    background: #e9f8fa;
    border: 1px solid #c3eef3;
    border-radius: 50%;
    color: #0498b9;
    display: flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 48px;
}

.project-benefit-icon--cube {
    letter-spacing: -0.05em;
}

.project-benefit-card h2 {
    color: #000000;
    font-size: 1.5rem !important;
    line-height: 1.12;
    margin: 0 0 0.5rem;
}

.project-benefit-card p {
    color: #18355d;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.projects-neotec-band {
    background: #fff;
    border-bottom: 1px solid rgba(8, 35, 77, 0.1);
    border-top: 1px solid rgba(8, 35, 77, 0.1);
    padding: 3rem 2rem 3rem;
    text-align: center;
}

.projects-neotec-band h2 {
    color: #0a2755;
    font-size: 0.8rem !important;
    letter-spacing: 0.09em;
    margin: 0;
}

.projects-neotec-band p {
    color: #18355d;
    font-size: 0.8rem;
    margin: 1rem auto 2rem;
    max-width: 850px;
}

.projects-neotec-logos {
    align-items: center;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.projects-neotec-logos img {
    height: 62px;
    max-width: min(340px, 42vw);
    object-fit: contain;
}

.projects-news-section {
    min-height: 900px;
    box-sizing: border-box;
    padding: 5.5rem clamp(2rem, 7vw, 7.5rem) 3.5rem;
    background: #f4f8fb url('../contenido/fondo-noticia.png') center / cover no-repeat;
}

.projects-news-content {
    max-width: 1500px;
    margin: 0 auto;
}

.projects-news-kicker {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #079cba;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1.2rem;
}

.projects-news-kicker::before {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: #079cba;
}

.projects-news-content h2 {
    max-width: 850px;
    margin: 0 0 1.3rem;
    color: #000;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.projects-news-content h2 span {
    color: #079cba;
}

.projects-news-copy {
    max-width: 760px;
    color: #34435a;
    font-size: 1.15rem;
    line-height: 1.45;
}

.projects-news-copy p {
    margin: 0 0 .95rem;
}

.projects-news-button {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 58px;
    margin-top: .65rem;
    padding: 0 1.7rem;
    border-radius: 8px;
    background: #079cba;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.projects-news-button:hover {
    background: #067f99;
    transform: translateY(-2px);
}

.projects-news-button span {
    font-size: 1.2rem;
    line-height: 1;
}

.projects-news-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.projects-news-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    min-height: 190px;
    box-sizing: border-box;
    padding: 1.45rem 1.5rem;
    border: 1px solid rgba(8, 35, 77, .08);
    border-radius: 9px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(8, 35, 77, .06);
}

.projects-news-card-icon {
    display: inline-flex;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f7fb;
    color: #079cba;
    font-size: 2rem;
    font-weight: 700;
}

.projects-news-card h3 {
    margin: .25rem 0 .75rem;
    color: #101a2d;
    font-size: 1.35rem;
    line-height: 1.15;
}

.projects-news-card p {
    margin: 0;
    color: #41536e;
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .projects-news-section {
        min-height: 0;
        padding: 4rem 0.5rem;
        background-position: 68% center;
    }

    .projects-news-content {
        padding: 1.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .82);
        backdrop-filter: blur(3px);
    }

    .projects-news-cards {
        grid-template-columns: 1fr;
    }

    .projects-news-button > span:first-child {
        font-size: 1rem;
    }

    .projects-news-card-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .actualidad-content h2 {
        font-size: 2rem;
    }

    .projects-news-content h2 {
        font-size: 2rem;
    }

    .projects-news-copy {
        font-size: 1rem;
    }

    .projects-news-card {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .projects-hero {
        min-height: 0;
        background: #ffffff !important;
    }
    .projects-hero::before,
    .projects-hero::after {
        display: none;
    }
    .projects-layout { display: block; min-height: 0; }
    .projects-copy { max-width: 700px; padding: 4.5rem 1.5rem 2.5rem; }
    .projects-visual { display: none; }
    .projects-benefits {
        margin: 0;
        padding: 0 1.5rem 2.5rem;
        position: static;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-copy { padding-top: 3rem; }
    .projects-copy h1 { font-size: 2rem; }
    .projects-eyebrow { margin-bottom: 1.4rem; }
    .projects-benefits { grid-template-columns: 1fr; }
    .project-benefit-card { min-height: 0; }
    .projects-neotec-band { padding-left: 1.25rem; padding-right: 1.25rem; }
    .projects-neotec-band h2 { font-size: 0.8rem; }
    .projects-neotec-logos { flex-direction: column; gap: 0; }
    .projects-neotec-logos img {
        height: auto;
        width: 280px;
        max-width: 90vw;
    }
    .projects-neotec-logos img:last-child {
        width: 330px;
        margin-top: 15px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

html.no-smooth-scroll {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'General Sans', -apple-system, sans-serif;
    line-height: 1.5;
    /* `hidden` convierte el body en un contenedor de scroll en Safari móvil
       y rompe los elementos sticky que contiene. `clip` recorta sin crear
       un nuevo contexto de desplazamiento. */
    overflow-x: clip;
}

/* HEADER Y NAVEGACIÓN */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    z-index: 100;
}

/* Hamburger toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 0. SCROLL INTRO INTRODUCING VIDEO */
.scroll-intro-container {
    height: 500vh;
    position: relative;
    z-index: 1;
    overflow-anchor: none; /* Prevent browser scroll anchoring layout shifts */
}

body.intro-completed .scroll-intro-container {
    height: 122.5vh !important;
}

body.skip-intro .scroll-indicator {
    display: none !important;
}

body.intro-completed #home-anchor {
    top: 0 !important;
}

body.intro-completed #scroll-intro-canvas,
body.intro-completed .intro-overlays,
body.intro-completed .skip-intro-btn {
    display: none !important;
}

body.intro-completed .hero-section {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: var(--bg-light) !important;
    transform: none !important;
    transition: none !important;
}

body.intro-completed .hero-right,
body.has-intro.intro-completed .hero-right,
body.has-intro.intro-finished.intro-completed .hero-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

body.intro-completed .hero-left {
    opacity: 1 !important;
}

/* INITIAL START SCREEN & RIGHT COLUMN CONTAINER */
.intro-right-column {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    height: 75dvh;
    background: var(--bg-light);
    z-index: 15;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow: hidden;
    box-sizing: border-box;
}

.intro-right-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../contenido/fondo-inicio.png') center / cover no-repeat;
    z-index: -1;
    opacity: var(--start-bg-opacity, 1);
    visibility: var(--start-bg-visibility, visible);
    pointer-events: none;
}

body.intro-completed .intro-right-column {
    display: none !important;
}

.intro-mobile-bg-sweep {
    display: none;
}

body.intro-completed .intro-mobile-bg-sweep {
    display: none !important;
}

.intro-right-column-scroller {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.intro-hero-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 0 3%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    box-sizing: border-box;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-intro-sticky { z-index:20; }
    #scroll-intro-canvas { z-index:0; position:absolute; }
    .intro-right-column { z-index:15; }
    .intro-right-column::before {
        background-position: right center;
        opacity: var(--start-bg-opacity, 0.25);
        transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
    }
    .intro-hero-right {
        display: none !important;
    }
}

.intro-scroller-viewport {
    position: absolute;
    top: 12.5vh;
    top: 12.5dvh;
    left: 0;
    width: 100%;
    height: 75vh;
    height: 75dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    /* mask removed to prevent clipping on horizontal slide */
}

.intro-scroll-item {
    width: 100%;
    height: 75vh;
    height: 75dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#intro-slide-0 {
    height: 75vh;
    height: 75dvh;
}

#intro-slide-0 .intro-slide-content {
    margin-top: -3.5vh;
}

/* Specific styling for the items inside scroller */
.intro-start-item {
    position: relative;
    padding: 0;
    width: 100%;
    height: 75vh;
    height: 75dvh;
    overflow: visible;
}

/* Override .intro-overlay-slide layout to fit independent absolute positioning */
.intro-right-column .intro-overlay-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    will-change: transform, opacity;
}

#intro-slide-1 {
    height: 75vh;
    height: 75dvh;
}

.start-screen-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    padding: 0 max(3%, calc((100vw - 1500px) / 2));
    box-sizing: border-box;
}

.start-left {
    display: none;
}

.start-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 930px;
}

.start-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    will-change: transform, opacity;
}

.start-title {
    max-width: 920px;
    font-size: clamp(3.2rem, 5.2vw, 5.35rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.035em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #10142d 0%, #10142d 45%, #0ca5c6 57%, #0ca5c6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: transform, opacity;
}

.start-title .tw-char {
    position: relative;
}

.start-title.is-entry-typing {
    background: none !important;
    color: #10142d !important;
    -webkit-text-fill-color: #10142d !important;
}

.start-title.is-entry-typing .tw-char.start-title-blue {
    color: #0ca5c6 !important;
    -webkit-text-fill-color: #0ca5c6 !important;
}

.start-subtitle {
    color: #10142d;
    display: block;
    font-size: clamp(1rem, 1.35vw, 1.45rem);
    font-weight: 500;
    line-height: 1.35;
    margin-top: 1.55rem;
    max-width: 780px;
    width: 100%;
}

@media (max-width: 768px) {
    .intro-scroll-item {
        height: 75vh !important;
        height: 75dvh !important;
    }
    .intro-start-item {
        height: 75vh !important;
        height: 75dvh !important;
        padding: 0 !important;
    }
    .start-screen-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 1.5rem 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .start-left {
        display: none !important;
    }
    .start-right {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    .start-logo {
        max-width: 225px !important;
    }
    .start-title {
        max-width: 360px !important;
        font-size: clamp(2.3rem, 10vw, 3.6rem) !important;
        line-height: .98 !important;
        letter-spacing: -.03em !important;
        text-align: left !important;
        background: none !important;
        color: #10142d !important;
        -webkit-text-fill-color: #10142d !important;
    }
    .start-title .tw-char.start-title-blue {
        color: #0ca5c6 !important;
        -webkit-text-fill-color: #0ca5c6 !important;
    }
    .start-title .tw-char {
        transition: opacity 0.3s ease-out !important;
    }
    .start-subtitle {
        font-size: 0.95rem !important;
        margin-top: 0.75rem !important;
        max-width: 360px !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }
}

.scroll-intro-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 15;
    background: transparent;
}

#scroll-intro-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 50vw; /* Takes up left half on desktop */
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, visibility 0.3s;
}

body.reveal-completed .scroll-intro-sticky canvas {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}





/* Scroll Intro Text Overlays */
.intro-overlays {
    position: absolute;
    top: 0;
    left: 50%; /* Takes up right half on desktop */
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.intro-overlay-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Center text vertically in the column */
    justify-content: center; /* Center text horizontally in the column */
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
}

.intro-overlay-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.intro-slide-content {
    width: 100%;
    padding: 0 4rem; /* Padding for desktop column spacing */
    box-sizing: border-box;
    text-align: left;
}

.intro-overlay-text {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    max-width: 460px; /* Force text wrapping to match first box */
    pointer-events: auto;
    display: inline-flex;
    flex-direction: column;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: color 0.4s ease;
}

.intro-overlay-text > * {
    opacity: 1;
}

.intro-overlay-description {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 1rem;
    max-width: 460px;
}

.typewriter-cursor {
    font-weight: 200;
    color: #ffffff;
    margin-left: 2px;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Right alignment and styling helper classes for Saving slide */
.intro-slide-content.right-align {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-right: 1rem;
}

.intro-overlay-text.right-align {
    width: 460px;
    max-width: 100%;
    margin-left: 0 !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#intro-slide-1 {
    /* Centered vertically by default via flex align-items: center */
}

#intro-slide-1 .intro-overlay-text {
    color: #000000;
}

.intro-slide-title {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.intro-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.intro-overlay-list li {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 1.25rem;
    color: #ffffff !important;
    line-height: 1.4;
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.intro-overlay-list li::before {
    content: '•';
    color: #ffffff !important;
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: -2px;
}


/* Scroll Down Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: clamp(1.25rem, 4vh, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 40;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.scroll-indicator.fade-out {
    opacity: 0;
}

.scroll-indicator-arrow {
    display: none !important;
}

@media (min-width: 769px) {
    .scroll-indicator {
        color: #000000 !important;
        text-shadow: none !important;
    }

    .indicator-mouse {
        border-color: #000000 !important;
        box-shadow: none !important;
    }

    .mouse-wheel {
        background: #000000 !important;
    }
}

/* Skip Intro Button */
.skip-intro-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    transition: background 0.3s, border-color 0.3s, transform 0.2s, opacity 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.skip-intro-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.skip-intro-btn:active {
    transform: translateY(0);
}

.skip-intro-btn svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-intro-btn:hover svg {
    transform: translateX(3px);
}

body.reveal-completed .skip-intro-btn {
    opacity: 0;
    pointer-events: none;
}

.indicator-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
}

/* Specific Slide Theme Overrides */
#intro-slide-0 .intro-overlay-text {
    max-width: 460px;
    /* Adjusted width to match red box bounding area and enable smooth line wrapping */
}

/* Header Reveal Transition on Home Entry */
body:has(.scroll-intro-container) header,
body.has-intro header {
    position: fixed;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body:has(.scroll-intro-container).intro-finished header,
body.has-intro.intro-finished header {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Al entrar desde otra página con ?skip_intro=1, evita el parpadeo del header
   fijo mientras se muestra directamente el contenido principal. */
body.skip-intro header,
body.intro-completed header {
    position: sticky !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
}

/* Mantiene la misma escala visual del vídeo tanto al terminar la intro
   como al acceder mediante el enlace «Inicio». */
body.skip-intro .hero-left {
    min-width: 0;
    position: relative;
    z-index: 1;
}

body.skip-intro .hero-main-video {
    width: min(100vw, 1000px);
    max-width: 1000px;
}

body.skip-intro .hero-right {
    position: relative;
    z-index: 2;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul > li > a:not(.lang-option) {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

nav ul > li > a:not(.lang-option):hover,
nav ul > li > a:not(.lang-option).active {
    color: var(--text-dark);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-dark);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-flag svg {
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    min-width: 140px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

.lang-name {
    margin-left: 2px;
}

/* 1. HERO SECTION */
.hero-section {
    height: 80vh;
    height: 80dvh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    background: var(--bg-light);
}

/* Scroll Intro Overlaying for Hero Section */
body.has-intro .hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    height: 80dvh;
    z-index: 10;
    background: var(--bg-light);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
}

body.has-intro.hero-active .hero-section {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 20 !important;
    background: transparent !important;
}

body.has-intro.hero-active .hero-left {
    opacity: 1 !important;
    transition-delay: 1.0s;
}

body.has-intro:not(.intro-completed) .hero-section,
body.has-intro:not(.intro-completed) .hero-left,
body.has-intro:not(.intro-completed) .hero-right {
    transition: none !important;
    transition-delay: 0s !important;
}



/* Separation of white background for independent masking */
.hero-background {
    display: none;
}

.hero-wrapper {
    max-width: 100%;
    width: 100%;
    height: 80vh;
    height: 80dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 90px 3% 2rem 3%; /* Clear sticky header */
    box-sizing: border-box;
}

/* Scroll linked logo positioning */
body.has-intro .hero-logo-img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Text and details reveal animation */
body.has-intro .hero-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
}

body.has-intro.hero-active .hero-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0);
}

/* Merged into main declaration above */

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
}

.hero-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-main-video {
    width: 100vw; /* Sized according to viewport width */
    max-width: 1000px; /* Prevent being too enlarged on large screens */
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-main-video.show {
    opacity: 1;
}

/* Make the intro video wider on desktop, matching the smart-design container. */
@media (min-width: 769px) {
    .intro-video-frame {
        width: min(1400px, calc(100vw - 4rem)) !important;
        max-width: 1400px !important;
    }
}

.hero-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.hero-text-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.badge {
    background: #079cba;
    border: none;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px 50px 50px 0;
    /* Igual que las cápsulas de abajo */
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(158, 255, 249, 0.25);
    align-self: flex-start;
}

.hero-right h1 {
    font-size: 4.5rem;
    font-weight: 600;
    /* Semibold */
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    width: 100%;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color:#000000;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 580px;
    letter-spacing: 0.01em;
}

.hero-tags {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.hero-tag-item {
    position: relative;
    display: inline-block;
}

.tag-capsule {
    background: #9efff9;
    border: none;
    color: var(--text-dark);
    padding: 0.2rem 1.2rem;
    border-radius: 50px 50px 50px 0;
    /* Todas redondeadas menos abajo-izquierda */
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(158, 255, 249, 0.25);
    display: inline-block;
    cursor: default;
}

.hero-tag-item:hover .tag-capsule {
    transform: translateY(-2px);
}

.tag-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    width: max-content;
    background: #ffffff;
    border: 2px solid #9efff9;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    text-align: left;
}

.hero-tag-item .tag-tooltip {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.hero-tag-item:first-child .tag-tooltip {
    left: 0;
    transform: translateY(10px);
}

.hero-tag-item:last-child .tag-tooltip {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.hero-tag-item:hover .tag-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-tag-item:hover:first-child .tag-tooltip {
    transform: translateY(0);
}

.hero-tag-item:hover:nth-child(2) .tag-tooltip {
    transform: translateX(-50%) translateY(0);
}

.hero-tag-item:hover:last-child .tag-tooltip {
    transform: translateY(0);
}

/* List style inside tooltips */
.tag-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tag-tooltip li {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.45;
    font-weight: 500;
    position: relative;
    padding-left: 1.2rem;
    white-space: nowrap;
}

.tag-tooltip li::before {
    content: '•';
    color: #06b6d4;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Pointer Tooltip Arrows */
.tag-tooltip::after,
.tag-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    border-style: solid;
}

.tag-tooltip::after {
    border-width: 8px;
    border-color: transparent transparent #9efff9 transparent;
}

.tag-tooltip::before {
    border-width: 6px;
    border-color: transparent transparent #ffffff transparent;
    z-index: 101;
    margin-bottom: -2px;
}

.hero-tag-item:nth-child(2) .tag-tooltip::after {
    left: 50%;
    transform: translateX(-50%);
}

.hero-tag-item:nth-child(2) .tag-tooltip::before {
    left: 50%;
    transform: translateX(-50%);
}

.hero-tag-item:first-child .tag-tooltip::after {
    left: 45px;
}

.hero-tag-item:first-child .tag-tooltip::before {
    left: 47px;
}

.hero-tag-item:last-child .tag-tooltip::after {
    right: 65px;
}

.hero-tag-item:last-child .tag-tooltip::before {
    right: 67px;
}

/* 2. PRODUCTS SHOWCASE */
.products-section {
    background: var(--bg-gray);
    padding: 6rem 2rem;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-section--intro-video {
    padding: 1rem;
    background: #ffffff;
}

.intro-video-frame {
    width: 70%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
}

.intro-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.intro-video-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem;
    border-radius: 5px;
    background: rgba(7, 9, 14, .78);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
    opacity: 0;
    transform: translateY(.35rem);
    transition: opacity .2s ease, transform .2s ease;
}

.intro-video-frame:hover .intro-video-controls,
.intro-video-frame:focus-within .intro-video-controls {
    opacity: 1;
    transform: translateY(0);
}

.intro-video-control {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.intro-video-control:hover,
.intro-video-control:focus-visible {
    background: rgba(255, 255, 255, .18);
    outline: none;
}

@media (max-width: 768px) {
    .intro-video-frame {
        width: 100%;
    }

    .intro-video-controls {
        right: .65rem;
        bottom: .65rem;
        opacity: 1;
        transform: none;
    }
}

.products-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.products-section--solutions-grid {
    display: none;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.products-section--solutions-grid .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20rem;
    row-gap: 7rem;
    position: relative;
}

.products-section--solutions-grid .product-card {
    min-height: 150px;
    justify-content: center;
    padding: 2rem 1.35rem;
}

.products-section--solutions-grid .product-card h3,
.products-section--solutions-grid .product-card .product-sub {
    margin-left: auto;
    margin-right: auto;
}

.products-section--solutions-grid .product-card .product-sub {
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
}

.product-center-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 345px;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    background: #05070b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.product-center-video-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-video-play span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 50%;
    background: #079cba;
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-video-play:hover {
    background: rgba(0, 0, 0, 0.38);
}

.product-video-play:hover span {
    background: #000;
    transform: scale(1.08);
}

.product-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.product-video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.web-video-modal-open {
    overflow: hidden;
}

.product-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.88);
    backdrop-filter: blur(8px);
}

.product-video-modal-content {
    position: relative;
    width: min(92vw, 1200px);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.product-video-modal.is-open .product-video-modal-content {
    transform: scale(1);
}

.product-video-modal-content video {
    display: block;
    width: 100%;
    max-height: 90vh;
    background: #000;
}

.product-video-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 968px) {
    .products-section--solutions-grid .products-grid {
        column-gap: 3.5rem;
        row-gap: 4rem;
    }

    .product-center-video {
        width: 262px;
    }
}

.product-card {
    padding: 3rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-showcase-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 2.5rem;
}

.hero-actions {
    align-items: stretch;
    display: flex;
    gap: 0.85rem;
}

.hero-btn {
    align-items: center;
    border: 1px solid #079cba;
    border-radius: 7px;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 600;
    height: 50px;
    justify-content: center;
    padding: 0 1.4rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover {
    transform: none;
}

.hero-btn--primary {
    background: #079cba;
    border-color: #079cba;
    color: #fff;
}

.hero-btn--primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.hero-btn--secondary {
    background: transparent;
    border-color: #000000;
    color: #000;
}

.hero-btn--secondary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

@media (max-width: 576px) {
    .hero-actions {
        gap: 0.55rem;
        width: 100%;
    }

    .hero-btn {
        flex: 1;
        font-size: 0.82rem;
        line-height: 1.15;
        padding: 0 0.6rem;
        text-align: center;
    }
}

/* Contacto: composición de imagen y formulario según el nuevo diseño */
.contact-section {
    display: block;
    min-height: calc(100vh - 100px);
    padding: 2rem 0 0;
    background: #fff;
}

.contact-heading {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 4%;
}

.contact-heading h1 {
    margin: 0 0 1rem;
    color: var(--text-dark);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
    text-transform: uppercase;
}

.contact-heading h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin-top: .8rem;
    background: var(--primary-dark);
}

.contact-wrapper {
    max-width: none;
    grid-template-columns: minmax(0, 60%) minmax(360px, 40%);
    gap: 0;
    align-items: stretch;
}

.contact-left { min-width: 0; }
.contact-img-container {
    border-radius: 0;
    box-shadow: none;
    height: 680px;
}
.contact-office-img { height: 100%; object-fit: cover; }
.contact-right {
    align-items: center;
    padding: 0 7%;
}
.contact-form-container { max-width: 560px; }
.contact-form-container h1 { font-size: 2.1rem; margin-bottom: 1rem; }
.contact-intro { margin-bottom: 1.3rem; font-size: .95rem; }
.premium-form { gap: .65rem; }
.form-group { gap: 0; }
.form-group label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.form-group input, .form-group textarea {
    border-radius: 7px;
    padding: .78rem 1rem;
    font-size: .9rem;
}
.form-group textarea { min-height: 84px; }
.btn-submit {
    align-self: stretch;
    border-radius: 7px;
    background: var(--primary-dark);
    padding: .8rem 2rem;
    font-size: 1rem;
}

@media (max-width: 968px) {
    .contact-section { padding-top: 1.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-img-container { height: 450px; }
    .contact-right { padding: 2rem 1.5rem 3rem; }
    .contact-heading { padding: 0 1.5rem; }
}

@media (max-width: 576px) {
    .contact-heading h1 { font-size: 2rem; }
    .contact-img-container { height: 350px; }
}

/* Contact layout final overrides */
.contact-section { display:block; padding:2rem 0 0; background:#fff; }
.contact-heading { max-width:1540px; margin:0 auto; padding:0 4%; }
.contact-heading h1 { margin:0 0 1rem; color:var(--text-dark); font-size:3rem; font-weight:600; line-height:1.1; text-transform:uppercase; }
.contact-heading h1::after { content:''; display:block; width:50px; height:3px; margin-top:.8rem; background:var(--primary-dark); }
.contact-wrapper { max-width:none; grid-template-columns:minmax(0,60%) minmax(360px,40%); gap:0; align-items:stretch; }
.contact-img-container { border-radius:0; box-shadow:none; height:680px; }
.contact-office-img { height:100%; object-fit:cover; }
.contact-right { align-items:center; padding:0 7%; }
.contact-form-container { max-width:560px; }
.contact-form-container h1 { font-size:2.1rem; margin-bottom:1rem; text-transform:none; }
.contact-intro { margin-bottom:1.3rem; font-size:.95rem; }
.premium-form { gap:.65rem; }
.form-group { gap:0; }
.form-group label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.form-group input,.form-group textarea { border-radius:7px; padding:.78rem 1rem; font-size:.9rem; }
.form-group textarea { min-height:84px; }
.btn-submit { align-self:stretch; border-radius:7px; background:var(--primary-dark); padding:.8rem 2rem; font-size:1rem; }
@media (max-width:968px) {
    .contact-wrapper { grid-template-columns:1fr; }
    .contact-img-container { height:360px; }
    .contact-right { padding:2rem 1.5rem 3rem; }
    .contact-heading { padding:0 1.5rem; }
}
@media (max-width:576px) {
    .contact-heading h1 { font-size:2.2rem; }
    .contact-img-container { height:280px; }
}

.vector-pattern {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pattern-item {
    border: 2px dashed rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.02);
}

.vector-mannequin {
    width: 80px;
    height: 120px;
    position: relative;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px 20px 10px 10px;
    background: rgba(99, 102, 241, 0.02);
}

.tshirt-outline {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 60px;
    border: 2px dashed var(--secondary);
    border-radius: 6px;
}

.measure-line {
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 2px;
    background: var(--accent);
}

.measure-line::before,
.measure-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    top: -2px;
}

.measure-line::before {
    left: 0;
}

.measure-line::after {
    right: 0;
}

.product-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.product-sub {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

.product-desc {
    font-size: 1.05rem;
    color: #000000;
    margin-bottom: 2.2rem;
    line-height: 1.55;
    font-weight: 400;
    max-width: 480px;
}

.btn-learn {
    margin-top: auto;
    padding: 0.6rem 2.2rem;
    border: 1px solid var(--text-dark);
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-learn:hover {
    background: var(--text-dark);
    color: #fff;
}

/* 3. SMART DESIGN CARD */
.smart-design-section {
    padding: 9rem 2rem 12rem 2rem;
    background: var(--bg-light);
}

.smart-card-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-dark);
    border-radius: 24px 24px 24px 0;
    /* Todos los bordes redondeados menos abajo izquierda */
    padding: 5rem;
    color: #ffffff;
}

.smart-card-wrapper h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.font-light {
    font-weight: 300;
    color: #e2e8f0;
}

.smart-lead {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 4rem;
    font-weight: 500;
}

.smart-carousel {
    position: relative;
}

.smart-carousel-arrow,
.smart-carousel-dots {
    display: none;
}

.smart-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-box {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 16px 16px 16px 0;
    /* Todos los bordes redondeados menos abajo izquierda */
    padding: 2.5rem 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


.step-box:nth-child(2) {
    background: #E2E2E2;
}

.step-box.highlight {
    background: #079cba;
    color: #ffffff;
}

.step-box h4 {
    font-size: 25px;
    /* 25px */
    font-weight: 500;
    /* Medium weight */
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.step-box-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.step-box-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    font-weight: 450 !important;
    text-align: left;
    margin: 1rem 0 0 0 !important;
    flex: 1;
}

.step-num {
    font-size: 100px;
    /* Restaurado a 100px */
    font-weight: 500;
    /* Medium weight */
    color: #000;
    /* Todos negros */
    line-height: 0.8;
    margin: 1rem 0 0 0;
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.step-num::before {
    content: '';
    position: absolute;
    top: 3px;
    right: -2rem;
    /* Stick to the right edge of the box */
    width: 140px;
    /* Ancho fijo para la línea premium */
    height: 2px;
    background-color: #000;
    /* Negro puro */
}

.step-box.highlight .step-num {
    color: #ffffff;
}

.step-box.highlight .step-num::before {
    background-color: #ffffff;
}

.step-box.highlight .step-box-desc {
    color: #ffffff !important;
}

/* 4. CURRENT AFFAIRS FEATURE */
.actualidad-section {
    width: 100%;
    height: clamp(560px, 35.5vw, 724px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 4rem max(2rem, calc((100vw - 1700px) / 2));
    background-color: #f5f8fb;
    background-image: url('../contenido/fondo-actualidad.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.actualidad-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: #101a2d;
}

.actualidad-kicker {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #079cba;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 1rem;
}

.actualidad-kicker::before,
.actualidad-support > span {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    background: #079cba;
}

.actualidad-content h2 {
    max-width: 850px;
    margin: 0 0 1.25rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 550;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.actualidad-content h2 span {
    color: #079cba;
}

.actualidad-description {
    max-width: 700px;
    margin: 0 0 1.6rem;
    color: #4d5b70;
    font-size: clamp(1rem, 1.25vw, 1.3rem);
    line-height: 1.45;
}

.actualidad-button {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 58px;
    padding: 0 1.5rem;
    border-radius: 9px;
    background: #079cba;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.actualidad-button:hover {
    background: #067f99;
    transform: translateY(-2px);
}

.actualidad-button > span:last-child {
    font-size: 1.7rem;
    line-height: 1;
}

.actualidad-support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    margin-top: 2.2rem;
}

.actualidad-support > span {
    width: 42px;
}

.actualidad-support p {
    margin: 0;
    color: #4d5b70;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .actualidad-section {
        height: auto;
        min-height: 620px;
        align-items: flex-start;
        padding: 4rem 0.5rem 5rem;
        background-position: 75% center;
    }

    .actualidad-content {
        width: 100%;
        max-width: none;
        padding: 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .82);
        backdrop-filter: blur(3px);
    }
}

/* 5. NEW WORKFLOW SECTION */
.new-workflow-section {
    position: relative;
    background-color: #ffffff;
    background-image: url('../contenido/new-workflow.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.new-workflow-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.new-workflow-content {
    max-width: 520px;
    z-index: 2;
}

.new-workflow-content .sub-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #079cba;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.new-workflow-content .sub-label::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 3px;
    background-color: #079cba;
    border-radius: 2px;
}

.new-workflow-content h2 {
    font-size: 2.5rem;
    font-weight: 550;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.new-workflow-content .workflow-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.workflow-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
}

.feature-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(7, 156, 186, 0.2);
    background: #ffffff;
    color: #079cba;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(7, 156, 186, 0.04);
    transition: all 0.3s ease;
}


.feature-icon-circle svg {
    width: 24px;
    height: 24px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.new-workflow-content .workflow-actions {
    display: flex;
    gap: 1rem;
}

.workflow-mobile-image-container {
    display: none;
}

.new-workflow-content .inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #079cba;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.1rem 2.2rem;
    cursor: pointer;
    width: auto;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(7, 156, 186, 0.15);
}

.new-workflow-content .inline-btn:hover {
    background: #06839d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 156, 186, 0.3);
}

.new-workflow-content .inline-btn .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.new-workflow-content .inline-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.new-workflow-visual-mobile {
    display: none;
}

/* Responsive design for New Workflow Section */
@media (max-width: 1200px) {
    .new-workflow-section {
        background-position: calc(100% + 150px) center;
    }
    .new-workflow-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 991px) {
    .new-workflow-section {
        height: auto;
        min-height: 100vh;
        background-image: none;
        background-color: #ffffff;
        align-items: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 5rem;
        padding-bottom: 4rem;
        overflow: visible;
    }
    
    .new-workflow-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        height: auto;
        padding: 0 !important;
    }
    
    .new-workflow-content {
        width: 100%;
        max-width: none;
        text-align: center;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-sizing: border-box;
    }
    
    .new-workflow-content .workflow-actions {
        justify-content: center;
    }

    .workflow-mobile-image-container {
        display: block;
        margin-top: 2rem;
        width: 100%;
        text-align: center;
    }

    .workflow-mobile-img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .new-workflow-content h2 {
        text-align: left;
    }
    .new-workflow-content .sub-label {
        display: flex;
        justify-content: flex-start;
        text-align: left;
    }
    .new-workflow-content .workflow-lead {
        text-align: left;
    }
    .new-workflow-content .sub-label::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .new-workflow-section {
        padding-top: 3rem;
    }
    .new-workflow-content {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
    .new-workflow-content h2 {
        font-size: 2rem;
    }
    .new-workflow-content .workflow-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* 4. AI-POWERED MARKERS (Sticky Stepped) */
.ai-markers-section {
    background: #000000;
    color: #ffffff;
    height: 400vh;
    /* Espacio para 4 pasos */
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.markers-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 7rem 2rem 2rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.markers-fixed-header {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    flex-shrink: 0;
}

.markers-fixed-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.markers-fixed-header .ai-lead {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.markers-stepped-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Timeline Animada */
.markers-timeline-wrapper {
    position: relative;
    height: 60px;
    margin-bottom: 2rem;
}

.timeline-base-line {
    position: absolute;
    top: 5px;
    /* Centro exacto del círculo */
    left: 18px;
    right: 18px;
    height: 2px;
    background: #5b6472;
    opacity: 0.85;
    z-index: 0;
}

.timeline-progress-line {
    position: absolute;
    top: 5px;
    /* Centro exacto del círculo */
    left: 18px;
    width: 0%;
    /* Calculado dinámicamente via JS con posiciones reales del DOM */
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    z-index: 1;
    /* Sale rápido y se frena al alcanzar cada hito, sin alterar el scroll. */
    transition: width 1s cubic-bezier(0.12, 0.95, 0.18, 1);
    will-change: width;
}

.timeline-points {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0;
    /* Sin padding: el JS calcula los centros reales de cada punto */
}

.timeline-points .point {
    position: relative;
    /* Necesario para posicionar absolutamente la etiqueta */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 20px;
    /* Ancho fijo para garantizar que todos los puntos midan idéntico */
}

.timeline-points .diamond {
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* Por defecto son círculos */
    transform: rotate(0deg);
    transition: var(--transition);
    z-index: 2;
}

.timeline-points .point.active .diamond {
    border-radius: 0%;
    /* Se convierte en rombo (cuadrado rotado) al activarse */
    transform: rotate(45deg);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.p-label {
    position: absolute;
    top: 24px;
    /* Situado elegantemente debajo de la línea y del círculo/rombo */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    /* Evita que el texto salte de línea */
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.timeline-points .point.active .p-label {
    color: #fff;
}

/* Panes Container */
.markers-panes-container {
    position: relative;
    flex: 1;
}

.marker-step-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pane-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Texto a la izquierda, elemento visual a la derecha */
    gap: 4rem;
    align-items: center;
    width: 100%;
    height: 100%;
}

.pane-info {
    text-align: left;
}

.marker-step-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pane-visual {
    width: 100%;
    height: 40vh;
    max-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    border: none;
}

.pane-visual video,
.pane-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pane-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.pane-info p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}


.tabs-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.tabs-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
}

.tab-diamond {
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.tab-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.tab-btn.active .tab-diamond {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.tab-btn.active .tab-label {
    color: #ffffff;
}

.markers-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4rem;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.marker-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.marker-pane.active {
    display: block;
}

.marker-pane h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.marker-pane p {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 300;
}

/* FOOTER Y NEWSLETTER */
/* --- NEW FOOTER --- */
footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3.5rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    font-family: 'General Sans', sans-serif;
}

.footer-bg-mesh {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 350px;
    pointer-events: none;
    z-index: 1;
}

.footer-main-row {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo-col {
    flex: 0 0 auto;
}

.footer-logo-img {
    height: 62px;
    width: auto;
    display: block;
}

.footer-divider {
    width: 1px;
    height: 45px;
    background: rgba(0, 0, 0, 0.08);
}

.footer-info-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 200px;
    justify-content: center;
}

.footer-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(46, 168, 223, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ea8df;
    flex-shrink: 0;
}

.footer-info-icon svg {
    width: 20px;
    height: 20px;
}

.footer-info-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #374151;
    font-weight: 500;
}

.footer-location-link {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 1rem;
    text-decoration: none;
}

.footer-location-link:hover .footer-info-text {
    color: #2ea8df;
}

.footer-info-text a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-text a:hover {
    color: #2ea8df;
}

.footer-linkedin-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
}

.footer-linkedin-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2ea8df;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
}

.footer-linkedin-btn:hover {
    background: rgba(46, 168, 223, 0.08);
    transform: scale(1.05);
}

.footer-linkedin-btn svg {
    width: 24px;
    height: 24px;
}

.footer-bottom-bar {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #111827;
}

.footer-bottom-separator {
    color: #d1d5db;
}

.footer-bottom-copyright {
    color: #6b7280;
}

/* Legal notice modal */
body.legal-modal-open {
    overflow: hidden;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 29, 45, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.legal-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-dialog {
    width: min(866px, 100%);
    max-height: min(860px, calc(100vh - 4rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 25, 45, .28);
    transform: translateY(12px) scale(.98);
    transition: transform .25s ease;
}

.legal-modal.is-open .legal-modal-dialog {
    transform: translateY(0) scale(1);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.55rem 1.8rem 1.35rem;
    margin: 0 1.8rem;
    border-bottom: 1px solid #e3e8ee;
}

.legal-modal-heading {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #172945;
}

.legal-modal-mark {
    display: block;
    width: 5rem;
    height: 4.2rem;
    flex: 0 0 auto;
}

.legal-modal-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.legal-modal-heading h2 { margin: 0; font-size: 1.8rem; line-height: 1.1; font-weight: 700; }
.legal-modal-heading p { margin: .4rem 0 0; font-size: .82rem; color: #34435b; }

.legal-modal-close {
    border: 0;
    padding: .1rem .25rem;
    color: #1d304b;
    background: transparent;
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.legal-modal-body {
    overflow-y: auto;
    padding: 1.1rem 2.45rem 1rem;
    color: #1f3049;
    font-size: .82rem;
    line-height: 1.42;
    scrollbar-color: #bdc5d0 #f5f7fa;
    scrollbar-width: thin;
}

.legal-modal-body h3 { margin: .15rem 0 .25rem; color: #047fa8; font-size: .98rem; line-height: 1.25; }
.legal-modal-body p { margin: 0 0 .75rem; }
.legal-modal-body strong { font-weight: 700; }

.legal-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: .85rem 1.8rem 1.55rem;
    margin: 0 1.8rem;
    border-top: 1px solid #e3e8ee;
}

.legal-modal-button {
    min-width: 139px;
    padding: .68rem 1.2rem;
    border-radius: 6px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.legal-modal-button--secondary { color: #0787ae; border: 1.5px solid #0787ae; background: #fff; }
.legal-modal-button--primary { color: #fff; border: 1.5px solid #20b5c3; background: #20b5c3; }
.legal-modal-button:focus-visible, .legal-modal-close:focus-visible { outline: 3px solid rgba(32, 181, 195, .35); outline-offset: 2px; }

@media (max-width: 640px) {
    .legal-modal { padding: .8rem; }
    .legal-modal-dialog { max-height: calc(100vh - 1.6rem); border-radius: 10px; }
    .legal-modal-header { padding: 1rem .2rem 1rem; margin: 0 1rem; }
    .legal-modal-heading { gap: .75rem; }
    .legal-modal-mark { width: 4rem; height: 3.3rem; }
    .legal-modal-heading h2 { font-size: 1.35rem; }
    .legal-modal-heading p { max-width: 210px; font-size: .7rem; }
    .legal-modal-body { padding: .9rem 1.25rem .65rem; font-size: .78rem; }
    .legal-modal-footer { padding: .75rem 1rem 1rem; margin: 0 1rem; gap: .6rem; }
    .legal-modal-button { min-width: 0; flex: 1; }
}

/* Privacy policy variation */
.privacy-modal .legal-modal-dialog { width: min(928px, 100%); }
.privacy-modal-mark {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    color: #0696ce;
    background: #eef8fc;
    flex: 0 0 auto;
}
.privacy-document-icon { width: 2rem; height: 2rem; }
.privacy-document-icon svg { display: block; width: 100%; height: 100%; }
.privacy-modal-body { padding-top: 1.1rem; }
.privacy-data-card {
    margin-bottom: 1.05rem;
    padding: .8rem 1rem;
    border: 1px solid #d7e5ee;
    border-radius: 8px;
    background: #f3f9fc;
}
.privacy-data-card div { display: grid; grid-template-columns: 1.5rem 10.4rem 1fr; align-items: center; min-height: 1.45rem; gap: .3rem; }
.privacy-data-card strong { font-size: .78rem; }
.privacy-data-card span:last-child { font-size: .76rem; }
.privacy-data-icon { color: #0099d1; font-size: 1.05rem; text-align: center; }
.privacy-section { display: grid; grid-template-columns: 1.6rem 1fr; align-items: start; gap: .7rem; margin-bottom: .72rem; }
.privacy-number { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #fff; background: #159ac1; font-size: .75rem; font-weight: 700; }
.privacy-section h3 { margin: .08rem 0 .22rem; color: #162b48; font-size: .84rem; }
.privacy-section h4 { margin: .45rem 0 .2rem; color: #162b48; font-size: .76rem; }
.privacy-section p { margin: 0; font-size: .72rem; line-height: 1.48; }
.privacy-section a { color: #0787ae; }
.privacy-modal-footer { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.8rem 1.5rem; margin: 0 1.8rem; border-top: 1px solid #e3e8ee; }
.privacy-updated { color: #31425c; font-size: .72rem; }
.privacy-updated span { margin-right: .45rem; color: #0099d1; font-size: 1rem; }
.privacy-modal-footer .legal-modal-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 160px; }
.privacy-modal-footer .legal-modal-button span { font-size: 1.4rem; font-weight: 300; line-height: .6; }
@media (max-width: 640px) {
    .privacy-modal-mark { width: 3rem; height: 3rem; }
    .privacy-data-card div { grid-template-columns: 1.25rem 8.3rem 1fr; }
    .privacy-data-card strong, .privacy-data-card span:last-child { font-size: .68rem; }
    .privacy-section p { font-size: .7rem; }
    .privacy-modal-footer { padding: .75rem 1rem 1rem; margin: 0 1rem; }
    .privacy-updated { font-size: .65rem; }
    .privacy-modal-footer .legal-modal-button { min-width: 120px; flex: 0 0 auto; }
}

/* Cookie settings modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(20, 29, 45, .58); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-modal.is-open { opacity: 1; pointer-events: auto; }
.cookie-modal-dialog { position: relative; width: min(598px, 100%); padding: 3.7rem 1.9rem 1.5rem; border-radius: 13px; background: #fff; color: #142746; text-align: center; box-shadow: 0 24px 70px rgba(10, 25, 45, .28); transform: translateY(12px) scale(.98); transition: transform .25s ease; }
.cookie-modal.is-open .cookie-modal-dialog { transform: translateY(0) scale(1); }
.cookie-modal-logo { position: absolute; top: -2.05rem; left: 50%; display: grid; place-items: center; width: 4.1rem; height: 4.1rem; transform: translateX(-50%); border-radius: 50%; background: #fff; }
.cookie-modal-logo img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.cookie-modal-kicker { color: #069bc8; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.cookie-modal h2 { margin: .65rem 0 .7rem; color: #102341; font-size: 1.65rem; line-height: 1.1; }
.cookie-modal-intro { max-width: 480px; margin: 0 auto; font-size: .78rem; line-height: 1.55; }
.cookie-modal-note { margin: 1.05rem 0 1rem; color: #43536c; font-size: .7rem; }
.cookie-modal a { color: #009dcd; text-decoration: none; }
.cookie-options { overflow: hidden; border: 1px solid #dfe5eb; border-radius: 10px; text-align: left; }
.cookie-option { display: flex; align-items: center; min-height: 3.3rem; padding: .35rem .85rem; border-bottom: 1px solid #e3e8ee; gap: .75rem; font-size: .78rem; }
.cookie-option:last-child { border-bottom: 0; }
.cookie-option-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #dfe6ec; border-radius: 50%; color: #009dcd; font-size: 1.2rem; }
.cookie-option-status { display: flex; align-items: center; gap: .55rem; margin-left: auto; color: #009dcd; font-size: .68rem; }
.cookie-option > .cookie-toggle { margin-left: auto; }
.cookie-toggle { position: relative; width: 3rem; height: 1.55rem; padding: 0; border: 0; border-radius: 1rem; background: #d9dde3; cursor: pointer; }
.cookie-toggle span { position: absolute; top: .15rem; left: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .2s ease; }
.cookie-toggle--active { background: #159fc1; }
.cookie-toggle--active span { transform: translateX(1.45rem); }
.cookie-toggle--active.cookie-toggle--active[aria-pressed="true"] { }
.cookie-modal-links { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1rem 0 1.35rem; font-size: .69rem; }
.cookie-modal-links i { color: #b7c0ca; font-style: normal; }
.cookie-modal-actions { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.cookie-button { padding: .7rem .9rem; border-radius: 7px; font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cookie-button--primary { color: #fff; border: 1px solid #13a7c5; background: #13a7c5; }
.cookie-button--outline { color: #009dcd; border: 1px solid #009dcd; background: #fff; }
.cookie-button--text { color: #009dcd; border: 1px solid transparent; background: transparent; }
.cookie-button:focus-visible, .cookie-toggle:focus-visible { outline: 3px solid rgba(19, 167, 197, .3); outline-offset: 2px; }
@media (max-width: 640px) {
    .cookie-modal-dialog { padding: 3.2rem 1rem 1.1rem; }
    .cookie-modal h2 { font-size: 1.45rem; }
    .cookie-modal-intro { font-size: .72rem; }
    .cookie-modal-actions { flex-wrap: wrap; gap: .3rem; }
    .cookie-button--primary, .cookie-button--outline { flex: 1; }
    .cookie-button--text { flex-basis: 100%; }
    .cookie-modal-links { gap: .4rem; font-size: .62rem; }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-divider {
        display: none;
    }
    .footer-main-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-logo-col {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .footer-linkedin-col {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 0.5rem;
    }
    .footer-info-col {
        justify-content: center;
    }
    .footer-bg-mesh {
        display: none;
    }
}

@media (max-width: 1200px) {
    .actualidad-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 640px) {
    .footer-main-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem;
    }
    .footer-logo-col,
    .footer-info-col:not(.footer-info-col--email) {
        grid-column: 1 / -1;
    }
    .footer-logo-col {
        margin-bottom: 1.5rem;
    }
    .footer-info-col {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .footer-info-col--email {
        grid-column: 1;
    }
    .footer-linkedin-col {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
        align-self: center;
        justify-content: flex-end;
        margin-top: 0;
    }
    footer {
        padding-bottom: 1.2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.72rem;
    }
    .footer-bottom-links a {
        font-size: 0.72rem;
    }
    .footer-bottom-copyright {
        font-size: 0.72rem;
    }
}

/* ANIMACIONES */
@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    50% {
        transform: rotateY(180deg) rotateX(15deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

@keyframes pulseCore {
    0% {
        r: 8;
        fill-opacity: 0.8;
    }

    100% {
        r: 12;
        fill-opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .hint-content {
        opacity: 0.5;
    }

    .intro-overlay-text,
    .intro-slide-title,
    .intro-overlay-list li,
    .intro-overlay-list li::before {
        color: #ffffff !important;
        text-shadow: none !important;
    }

    .intro-overlay-text {
        font-size: 1.35rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        padding: 1.25rem 1.5rem !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
        background: rgba(7, 9, 14, 0.2);
        border-radius: 12px;
        box-sizing: border-box;
    }

    #intro-slide-0 .intro-overlay-text {
        width: 100%;
        max-width: 100%;
    }

    .intro-overlay-slide {
        transform: none !important;
        transition: opacity 0.18s ease-out, visibility 0.18s !important;
        align-items: flex-end !important;
        padding-top: 0 !important;
        padding-bottom: 8vh !important;
    }

    .intro-slide-title {
        font-size: 1.8rem;
    }

    .intro-overlay-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* Keep the hero video out of the last intro frames; it starts with the final hero reveal. */
    body.has-intro:not(.intro-completed) .hero-main-video {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Final mobile hand-off: avoid an abrupt switch from the intro to the hero. */
    body.has-intro.intro-completed .hero-wrapper {
        animation: mobile-hero-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    body.has-intro.intro-completed .hero-main-video {
        animation: mobile-hero-video-reveal 650ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* Keep the completed intro wrapper and hero at 85% of the mobile viewport.
       The explicit d/s viewport units prevent later 100vh rules from taking
       over when the browser address bar changes size or the page is reloaded. */
    body.has-intro.intro-completed .scroll-intro-container,
    body.has-intro.intro-completed .scroll-intro-sticky,
    body.has-intro.intro-completed .hero-section,
    body.has-intro.intro-completed .hero-wrapper {
        height: 85svh !important;
        height: 85dvh !important;
    }

    body.has-intro.intro-completed .hero-wrapper {
        padding: 0 !important;
    }

    .hero-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Center content vertically */
        align-items: center !important;
        min-height: 70vh !important;
        min-height: 70dvh !important;
        height: 70svh !important;
        min-height: 70svh !important;
        padding: 90px 1.5rem 2rem !important;
        gap: 0.5rem !important;
        box-sizing: border-box !important;
    }

    .hero-right {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        order: 1 !important;
    }

    .hero-left {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 35svh !important;
        order: 2 !important;
        box-sizing: border-box !important;
    }

    .hero-logo-wrapper {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        height: auto !important;
    }

    .hero-main-video {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        object-fit: cover !important;
        flex: 0 0 auto;
        margin-inline: 0;
    }

    .hero-text-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero-right h1 {
        font-size: 4.5rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero-desc {
        font-size: 1.15rem;
        margin-bottom: 0.8rem !important;
    }

    .badge {
        align-self: flex-start;
    }

    /* Enable scroll-controlled radial mask on mobile starting from top center */
    body.has-intro .hero-background {
        -webkit-mask-image: radial-gradient(circle at 50% 0%, black var(--reveal-size, 0%), transparent calc(var(--reveal-size, 0%) + 15%)) !important;
        mask-image: radial-gradient(circle at 50% 0%, black var(--reveal-size, 0%), transparent calc(var(--reveal-size, 0%) + 15%)) !important;
        opacity: 0;
        pointer-events: none;
        transition: none !important;
    }

    body.has-intro.intro-finished .hero-background {
        opacity: 1;
    }

    body.has-intro .hero-right,
    body.has-intro.intro-finished .hero-right {
        -webkit-mask-image: radial-gradient(circle at 50% -20%, black var(--text-reveal-size-mobile, 0%), transparent calc(var(--text-reveal-size-mobile, 0%) + 15%)) !important;
        mask-image: radial-gradient(circle at 50% -20%, black var(--text-reveal-size-mobile, 0%), transparent calc(var(--text-reveal-size-mobile, 0%) + 15%)) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
        transition: none !important;
    }

    body.has-intro.hero-text-active .hero-right,
    body.has-intro.intro-finished.hero-text-active .hero-right {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

@keyframes mobile-hero-reveal {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobile-hero-video-reveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-intro.intro-completed .hero-wrapper,
    body.has-intro.intro-completed .hero-main-video {
        animation: none;
    }
}

@media (max-width: 968px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .smart-steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand,
    .footer-newsletter,
    .footer-links {
        align-items: center;
    }

    .newsletter-form {
        max-width: 360px;
    }

    .footer-logos {
        justify-content: center;
    }

    /* --- RESPONSIVE ADJUSTMENTS FOR TITLES & CONTAINERS --- */
    .workflow-section h2,
    .ai-markers-section h2,
    .markers-fixed-header h2,
    .smart-card-wrapper h2 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .smart-card-wrapper {
        padding: 3rem 1.5rem !important;
    }

    /* --- SECTION 4 (AI-POWERED MARKERS) MOBILE LAYOUT --- */
    .ai-markers-section {
        height: 400vh !important;
        height: 400svh !important;
        min-height: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .markers-sticky-wrapper {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100svh !important;
        padding: 6rem 1.5rem 1.5rem 1.5rem !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .markers-fixed-header {
        position: relative !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    .markers-fixed-header .ai-lead {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }

    .markers-timeline-wrapper {
        display: block !important;
        height: 20px !important;
        margin-top: 4rem !important;
        margin-bottom: 3.5rem !important;
    }

    .markers-timeline-wrapper .p-label {
        display: none !important;
    }

    .markers-stepped-content {
        position: relative !important;
        width: 100% !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
     }

    .markers-panes-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 1 1 0 !important;
    }

    .marker-step-pane {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin-bottom: 0 !important;
    }

    .pane-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 1rem !important;
        height: 100% !important;
        min-height: 0 !important;
        align-content: stretch !important;
    }

    .pane-visual {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        order: 2;
        /* Visual below description */
    }

    .pane-visual video,
    .pane-visual img {
        pointer-events: none !important;
    }

    /* Give the first marker video a little more visual presence on mobile. */
    .markers-sticky-wrapper,
    .markers-stepped-content,
    .markers-panes-container {
        overflow: visible !important;
    }

    #step-0 .pane-visual {
        overflow: visible;
    }

    #step-0 .pane-visual video {
        transform: scale(1.22);
        transform-origin: center center;
    }

    .pane-info {
        order: 1;
        /* Description on top */
        text-align: left !important;
    }

    .pane-info h3 {
        font-size: 1.4rem !important;
        margin-top: 0 !important;
        margin-bottom: 0.4rem !important;
    }

    .pane-info p {
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }

    /* --- SECTION 5 (NEW WORKFLOW) MOBILE LAYOUT --- */
    .workflow-section {
        height: 300vh !important;
    }

    .workflow-sticky-wrapper {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 90px !important;
        height: calc(100vh - 90px) !important;
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .workflow-fixed-header {
        position: relative !important;
        margin-bottom: 0.5rem !important;
        text-align: left !important;
    }

    .workflow-fixed-header .workflow-lead {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.2rem !important;
    }

    .workflow-interactive-area {
        position: relative !important;
        width: 100% !important;
        flex: 1 !important;
        height: 58vh !important;
        min-height: 400px !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    .workflow-svg-line,
    .workflow-points-bg {
        display: none !important;
    }

    .workflow-step-pane {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin-bottom: 0 !important;
    }

    .workflow-pane-grid,
    .workflow-pane-grid.reversed {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        height: 100% !important;
        align-content: center !important;
        padding-top: 0 !important;
    }

    .workflow-pane-visual {
        height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        order: 2;
        /* Video/media below description */
    }

    /* The shared viewer stays visible while only the step copy changes. */
    .workflow-shared-visual {
        top: auto !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        height: 175px !important;
        max-height: 175px !important;
        transform: none !important;
    }

    .workflow-pane-grid--pinned-visual {
        align-content: start !important;
        padding-bottom: 205px !important;
        margin-top: 0 !important;
    }

    .workflow-pane-grid--pinned-visual .workflow-pane-info {
        grid-column: 1 !important;
    }


    .workflow-pane-visual video,
    .workflow-pane-visual img {
        pointer-events: none !important;
    }

    .workflow-pane-info {
        order: 1;
        /* Description on top */
        text-align: left !important;
    }

    .workflow-pane-info h3 {
        font-size: 1.4rem !important;
        margin-top: 2rem !important;
        margin-bottom: 0.4rem !important;
    }

    #workflow-step-2 .workflow-pane-info h3 {
        margin-top: 0 !important;
    }

    #workflow-step-2 .workflow-pane-grid {
        gap: 0.5rem !important;
    }

    .workflow-pane-info p {
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 576px) {
    /* Homogeneous padding for all home sections on mobile */
    .neotec-features-section,
    .products-section,
    .smart-design-section {
        padding: 4rem 2rem !important;
    }

    .products-section--intro-video {
        padding: 1rem !important;
    }

    .intro-slide-content {
        padding: 0 1.25rem;
    }

    .intro-overlay-text {
        font-size: 1.1rem;
        width: 100%;
        max-width: 100%;
    }

    .intro-overlay-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-logo-wrapper {
        max-width: 340px;
    }

    #intro-slide-0 .intro-overlay-text {
        width: 100%;
        max-width: 100%;
    }



    .intro-overlay-text.right-align {
        width: 100%;
    }

    .intro-slide-title {
        font-size: 1.7rem;
    }

    .intro-overlay-list li {
        font-size: 1.0rem;
    }

    .hero-section {
        padding: 0 1.25rem !important;
    }

    .hero-right h1 {
        font-size: 2.3rem;
        margin-bottom: 0.8rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .hero-tag-item .tag-tooltip,
    .hero-tag-item:first-child .tag-tooltip,
    .hero-tag-item:last-child .tag-tooltip {
        left: 0;
        right: auto;
        transform: translateY(10px);
    }

    .hero-tag-item:hover .tag-tooltip,
    .hero-tag-item:hover:first-child .tag-tooltip,
    .hero-tag-item:hover:nth-child(2) .tag-tooltip,
    .hero-tag-item:hover:last-child .tag-tooltip {
        transform: translateY(0);
    }

    .hero-tag-item .tag-tooltip::after,
    .hero-tag-item:nth-child(2) .tag-tooltip::after,
    .hero-tag-item:first-child .tag-tooltip::after,
    .hero-tag-item:last-child .tag-tooltip::after {
        left: 45px;
        right: auto;
        transform: none;
    }

    .hero-tag-item .tag-tooltip::before,
    .hero-tag-item:nth-child(2) .tag-tooltip::before,
    .hero-tag-item:first-child .tag-tooltip::before,
    .hero-tag-item:last-child .tag-tooltip::before {
        left: 47px;
        right: auto;
        transform: none;
    }

    /* --- MOBILE-SPECIFIC HEADER AND TITLES --- */
    header {
        padding: 1rem 0.75rem !important;
    }

    .header-logo-img {
        height: 35px !important;
    }

    nav ul {
        gap: 0.6rem !important;
        align-items: center;
    }

    nav a, .lang-btn {
        font-size: 0.8rem !important;
    }

    /* Mobile Language Switcher Styles: Only flag in dropdown options */
    .lang-dropdown .lang-name {
        display: none !important;
    }

    .lang-dropdown {
        min-width: 42px !important;
        width: 42px !important;
        right: -6px !important;
        padding: 0.25rem 0 !important;
        border-radius: 8px !important;
    }

    .lang-option {
        padding: 0.4rem 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .lang-option .lang-flag {
        margin-right: 0 !important;
    }

    .lang-option .lang-flag svg {
        margin-right: 0 !important;
    }

    .workflow-section h2,
    .ai-markers-section h2,
    .markers-fixed-header h2,
    .smart-card-wrapper h2 {
        font-size: 1.8rem !important;
    }

    /* --- SEGUNDO CONTENEDOR (PRODUCT SHOWCASE) MOBILE --- */
    .products-grid {
        gap: 1.5rem !important;
        /* Hueco entre tarjetas a la mitad */
    }

    .product-card {
        padding: 1.5rem 1rem !important;
        /* Reducir padding vertical */
    }

    .product-card h3 {
        font-size: 1.3rem !important;
        /* Título más pequeño */
    }

    .product-showcase-img {
        width: 80% !important;
        margin-bottom: 1.2rem !important;
        /* Espaciado de imagen reducido */
    }

    .product-sub {
        margin-bottom: 0.5rem !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    .product-desc {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.4 !important;
    }

    /* --- AI MARKERS MOBILE --- */
    .ai-markers-section {
        padding: 0 !important;
    }

    /* --- WORKFLOW MOBILE --- */
    .workflow-section {
        padding-top: 4rem !important;
    }

    /* --- SMART DESIGN MOBILE --- */
    .smart-design-section {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .smart-card-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .smart-steps-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        padding: 0;
        margin: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .smart-steps-grid::-webkit-scrollbar {
        display: none;
    }

    .step-box {
        flex: 0 0 104%;
        min-height: auto !important;
        scroll-snap-align: start;
    }

    .smart-carousel {
        padding: 0 2rem 2rem;
    }

    .smart-carousel-arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #ffffff;
        box-shadow: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .smart-carousel-arrow span {
        font-size: 2rem;
        line-height: 1;
        margin-top: -0.2rem;
    }

    .smart-carousel-arrow--prev {
        left: -0.1rem;
    }

    .smart-carousel-arrow--next {
        right: -0.1rem;
    }

    .smart-carousel-dots {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.55rem;
    }

    .smart-carousel-dot {
        width: 0.55rem;
        height: 0.55rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .smart-carousel-dot.is-active {
        background: #ffffff;
        transform: scale(1.3);
    }

    .step-num {
        font-size: 80px !important;
    }
}

/* --- CONTACT PAGE --- */
.contact-section {
    padding: 8rem 2rem 6rem 2rem;
    min-height: calc(100vh - 100px);
    /* Adjust to fit perfectly between header and footer */
    background: var(--bg-light);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.contact-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-left {
    width: 100%;
}

.contact-img-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    background: var(--bg-gray);
}

.contact-office-img {
    width: 100%;
    /*height: 520px;*/
    object-fit: cover;
    display: block;
    transition: var(--transition);
}


.contact-right {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.contact-form-container {
    max-width: 500px;
    width: 100%;
}

.contact-form-container h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.contact-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(6, 182, 214, 0.12);
}

.btn-submit {
    align-self: flex-start;
    padding: 1rem 3.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--text-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- NEW PREMIUM INPUT FIELD WRAPPERS --- */
.form-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border: 1px solid rgba(8, 39, 87, 0.12);
    border-radius: 12px;
    background: #ffffff;
    padding: 0.95rem 1.4rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.form-input-wrapper:focus-within {
    border-color: #079cba;
    box-shadow: 0 0 0 3px rgba(7, 156, 186, 0.08);
}

.form-input-wrapper .form-icon {
    width: 22px;
    height: 22px;
    color: #079cba;
    flex-shrink: 0;
}

.form-input-wrapper input,
.form-input-wrapper select,
.form-input-wrapper textarea {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0;
    margin: 0;
    line-height: inherit;
}

.form-input-wrapper input::placeholder,
.form-input-wrapper textarea::placeholder {
    color: #64748b;
    opacity: 0.85;
}

.form-input-wrapper--select select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-input-wrapper select:invalid {
    color: #64748b;
}

.form-input-wrapper select option {
    color: var(--text-dark);
    background: #ffffff;
    padding-left: 1.5rem;
    text-indent: 1.25rem;
}

.form-input-wrapper .select-chevron {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #079cba;
    pointer-events: none;
}

.form-input-wrapper--textarea {
    align-items: flex-start;
}

.form-input-wrapper--textarea .form-icon {
    margin-top: 0.2rem;
}

.form-input-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit--cyan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #079cba;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.1rem 2rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(7, 156, 186, 0.15);
}

.btn-submit--cyan:hover {
    background: #06839d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 156, 186, 0.3);
}

.btn-submit--cyan .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit--cyan:hover .btn-arrow {
    transform: translateX(4px);
}

.form-success-msg {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(158, 255, 249, 0.05);
    border: 2px solid #9efff9;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(158, 255, 249, 0.08);
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 20px rgba(6, 182, 214, 0.3);
}

.form-success-msg h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.form-success-msg p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.45;
}

/* RESPONSIVE FOR CONTACT PAGE */
@media (max-width: 968px) {
    .contact-section {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-office-img {
        height: 380px;
    }

    .contact-form-container h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 5rem 1.25rem 3rem 1.25rem;
    }

    .contact-office-img {
        height: 280px;
    }

    .contact-form-container h1 {
        font-size: 2.2rem;
    }

    .btn-submit {
        width: 100%;
        text-align: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-row .copyright {
        text-align: center;
    }

    /* Removed unused partner logos right rules */
}

/* --- VIEWPORT HEIGHT RESPONSIVENESS FOR PORTABLE SCREENS --- */
@media (max-height: 850px) and (min-width: 969px) {

    /* 0. Scroll Intro Slides Height Adjustments */
    .intro-overlay-slide {
        padding-top: 12vh;
    }

    #intro-slide-2 {
        padding-top: 28vh;
    }

    #intro-slide-3 {
        padding-top: 44vh;
    }

    .intro-overlay-text {
        font-size: 1.45rem;
    }

    .intro-slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .intro-overlay-list li {
        font-size: 1.05rem;
    }

    /* 4. AI-Powered Markers Height Adjustments */
    .markers-sticky-wrapper {
        padding: 3rem 1.5rem 1.5rem 1.5rem !important;
    }

    .markers-fixed-header {
        margin-bottom: 2rem;
    }

    .markers-fixed-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .markers-timeline-wrapper {
        margin-bottom: 1rem;
        height: 50px;
    }

    .pane-info h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .pane-info p {
        font-size: 1.1rem;
        line-height: 1.5;
        letter-spacing:1px;
    }

    .pane-visual {
        height: 35vh;
        max-height: 300px;
    }

    /* 5. New Workflow Height Adjustments */
    .workflow-sticky-wrapper {
        padding: 1.5rem 2rem !important;
    }

    .workflow-fixed-header {
        margin-bottom: 1.5rem;
    }

    .workflow-section h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .workflow-interactive-area {
        height: 52vh;
        min-height: 380px;
        max-height: 480px;
    }

    .workflow-pane-visual {
        height: 320px;
    }

    .workflow-pane-info h3 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    .workflow-pane-info p {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        font-weight: 400;
    }
}

/* --- LANDSCAPE MOBILE OR SHORT VIEWPORTS RESPONSIVENESS --- */
@media (max-height: 500px) and (max-width: 968px) {
    /* Make header menu bar absolute so it scrolls away */
    header {
        position: absolute !important;
    }

    /* Show headers normally (non-sticky so they scroll away) */
    .markers-fixed-header,
    .workflow-fixed-header {
        display: block !important;
        position: relative !important;
        margin-bottom: 2rem !important;
        padding: 1.5rem 1.5rem 0 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .markers-fixed-header h2,
    .workflow-fixed-header h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
    }

    .markers-fixed-header .ai-lead,
    .workflow-fixed-header .workflow-lead {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    /* Sticky wrappers are no longer sticky themselves, they serve as the scrollable parent container */
    .markers-sticky-wrapper {
        position: relative !important;
        top: unset !important;
        height: 260vh !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important; /* Force block format to fix position: sticky in mobile landscape */
    }

    .workflow-sticky-wrapper {
        position: relative !important;
        top: unset !important;
        height: 200vh !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important; /* Force block format to fix position: sticky in mobile landscape */
    }

    .ai-markers-section {
        height: 260vh !important;
        min-height: unset !important;
    }

    .workflow-section {
        height: 200vh !important;
        min-height: unset !important;
    }
    
    /* The stepped content containers become the sticky elements (locked at 100vh) */
    .markers-stepped-content,
    .workflow-stepped-content {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0.5rem 1.5rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Adjust interactive area heights on mobile to prevent overflow */
    .workflow-interactive-area {
        min-height: 0 !important;
        height: 100% !important;
        max-height: none !important;
    }
    
    /* Make the content grids two columns (side-by-side, 50% each) */
    .pane-grid,
    .workflow-pane-grid,
    .workflow-pane-grid.reversed {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        height: 100% !important;
        align-content: center !important;
        padding-top: 0 !important;
    }
    
    /* Set reasonable sizes for the media elements so they don't overflow vertically */
    .pane-visual,
    .workflow-pane-visual {
        height: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        order: 2 !important; /* Visual on the right */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .workflow-pane-visual video,
    .workflow-pane-visual img {
        object-fit: cover !important;
    }
    
    .pane-info,
    .workflow-pane-info {
        order: 1 !important; /* Description/text on the left */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        text-align: left !important;
        overflow-y: auto !important; /* Allow scroll on text if viewport is very short */
        max-height: 100% !important;
    }

    /* Adjust typography sizes for short height */
    .pane-info h3,
    .workflow-pane-info h3 {
        font-size: 1.2rem !important;
        margin-top: 0 !important;
        margin-bottom: 0.4rem !important;
    }
    
    .pane-info p,
    .workflow-pane-info p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
    }
    
    .markers-timeline-wrapper {
        margin-top: 0 !important; /* Reset portrait margin-top */
        margin-bottom: 1.5rem !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .markers-timeline-wrapper .p-label {
        display: block !important;
        font-size: 0.6rem !important;
    }
    
    .markers-panes-container {
        position: relative !important;
        width: 100% !important;
        flex: 1 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* --- SEGUNDO CONTENEDOR (PRODUCT SHOWCASE) LANDSCAPE MOBILE --- */
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    .product-card {
        padding: 1rem !important;
    }

    .product-showcase-img {
        width: 60% !important;
        margin-bottom: 0.5rem !important;
    }

    .product-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .product-sub {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .product-desc {
        font-size: 0.75rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.2 !important;
    }
}

/* Mantiene la misma experiencia anclada en cualquier orientación móvil.
   Las unidades "small viewport" no cambian cuando el navegador muestra u oculta
   sus controles, evitando el salto al llegar a esta sección. */
@media (max-width: 968px) {
    .ai-markers-section {
        height: 400vh !important;
        height: 400svh !important;
    }

    .markers-sticky-wrapper {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100svh !important;
    }
}

@media (max-height: 500px) and (max-width: 968px) {
    .markers-sticky-wrapper {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100svh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .markers-stepped-content {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        flex: 1 1 0 !important;
    }

    .pane-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 1rem !important;
        align-content: stretch !important;
    }
}

/* --- COMPANY PAGE INTRO --- */
.company-intro-section {
    background: #ffffff;
    overflow: hidden;
    padding: 3.25rem 2rem 3rem;
    position: relative;
}

.company-intro-section::after {
    background: repeating-radial-gradient(ellipse at 75% 42%, transparent 0 8px, rgba(6, 182, 212, 0.13) 9px 10px, transparent 11px 17px);
    content: '';
    height: 720px;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
    right: -250px;
    top: -105px;
    transform: rotate(-15deg);
    width: 920px;
}

.company-intro-wrapper {
    margin: 0 auto;
    max-width: 1450px;
    position: relative;
    z-index: 1;
}

.company-intro-copy {
    max-width: 1040px;
}

.company-intro-eyebrow {
    color: #079cba;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.7rem;
    padding-bottom: 1rem;
    position: relative;
}

.company-intro-eyebrow::after {
    background: #079cba;
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 56px;
}

.company-intro-copy h1 {
    color: #000;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.04;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}

.company-intro-copy > p:not(.company-intro-eyebrow) {
    color: #000;
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 1.55rem;
    max-width: 770px;
}

.company-credentials {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3.5rem;
}

.company-credential {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(8, 39, 87, 0.06);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(8, 39, 87, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 225px;
    padding: 1.3rem;
    text-align: center;
}

.company-credential img {
    height: 90px;
    max-width: 80%;
    object-fit: contain;
}

.company-credential h2 {
    color: #000;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.3;
    margin-top: 1rem;
}

.iti-mark {
    align-items: center;
    color: #079cba;
    display: flex;
    gap: 0.65rem;
    min-height: 110px;
}

.iti-mark span {
    color: #082757;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.1em;
}

.iti-mark small {
    color: #66738b;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}

@media (max-width: 900px) {
    .company-credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-intro-copy h1 br { display: none; }
}

@media (max-width: 560px) {
    .company-intro-section { padding: 2.5rem 1.25rem; }
    .company-intro-copy h1 { font-size: 2rem; }
    .company-intro-copy > p:not(.company-intro-eyebrow) { font-size: 1rem; }
    .company-credentials { grid-template-columns: 1fr; }
    .company-credential { min-height: 190px; }
    .company-credential h2 { font-size: 1.5rem; font-weight: 500; }
}

/* --- COMPANY EXPERIENCE --- */
.company-experience-section {
    background: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
}

.company-experience-section::before {
    background: url('../contenido/FONDO-BASE-TECNOLOGICA.png') center right / cover no-repeat;
    content: '';
    inset: 0;
    position: absolute;
}

.company-experience-section::after {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 33%, rgba(255, 255, 255, 0.5) 56%, rgba(255, 255, 255, 0) 76%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.company-experience-wrapper {
    align-items: center;
    display: flex;
    margin: 0 auto;
    max-width: 1560px;
    min-height: calc(100vh - 155px);
    min-height: calc(100dvh - 155px);
    padding: 1.5rem 3.5rem 4rem;
    position: relative;
    z-index: 1;
}

.company-experience-copy {
    max-width: 680px;
    transform: translateY(90px);
}

.company-experience-copy h2 {
    color: #000;
    font-size: 2.5rem;
    font-weight: 550;
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.company-experience-copy > p:not(.company-intro-eyebrow) {
    color: #000;
    font-size: 1.17rem;
    line-height: 1.55;
    margin-bottom: 1.3rem;
}

.company-experience-features {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(8, 39, 87, 0.08);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    padding: 2.4rem max(2rem, calc((100vw - 1450px) / 2));
    position: absolute;
    right: 0;
    z-index: 2;
}

.company-experience-features article {
    align-items: center;
    border-right: 1px solid rgba(8, 39, 87, 0.18);
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    min-height: 74px;
    padding: 0 1.5rem;
}

.company-experience-features article:last-child { border-right: none; }

.experience-icon {
    color: #079cba;
    flex: 0 0 48px;
    height: 48px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    width: 48px;
}

.company-experience-features p {
    color: #082757;
    font-size: 1rem;
    line-height: 1.48;
}

@media (max-width: 900px) {
    .company-experience-section { min-height: 0; }
    .company-experience-section::after { background: rgba(255, 255, 255, 0.92); }
    .company-experience-wrapper { display: block; min-height: 0; padding: 1.5rem 1.5rem 3.5rem; }
    .company-experience-copy { margin-top: 3.5rem; transform: none; }
    .company-experience-features { position: relative; grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }
    .company-experience-features article:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
    .company-experience-copy h2 { font-size: 2.65rem; }
    .company-experience-copy > p:not(.company-intro-eyebrow) { font-size: 1rem; }
    .company-experience-features { grid-template-columns: 1fr; }
    .company-experience-features article, .company-experience-features article:nth-child(2) { border-bottom: 1px solid rgba(8, 39, 87, 0.12); border-right: none; justify-content: flex-start; padding: 1rem 0; }
    .company-experience-features article:last-child { border-bottom: none; }
}

/* --- TEAM PAGE STYLES --- */
.team-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 8rem 2rem 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Team visual kept behind the header and member cards. */
.team-section::before {
    display: none;
}

.team-section::after {
    display: none;
}

.team-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.team-header {
    text-align: left;
    margin-bottom: 5rem;
}

.team-header h1,
.team-header h2 {
    font-size: 2.5rem;
    font-weight: 550;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.team-lead {
    font-size: 1.25rem;
    color: #000000;
    width: 50%;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Grid layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-link {
        margin-left: 0.5rem;
    }

    /* Mobile Hamburger Menu Drawer */
    .menu-toggle {
        display: flex;
        margin-right: 0.5rem;
    }

    /* Transform to X when active */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* La X debe quedar por encima del panel lateral abierto. */
    .menu-toggle.active {
        position: relative;
        z-index: 1001 !important;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 100vw;
        box-sizing: border-box;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem !important;
        transition: right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        margin: 0;
    }

    nav ul.open {
        right: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        font-size: 1.25rem !important;
        font-weight: 600;
        color: var(--text-dark);
        padding: 0.6rem 0;
        
    }

    /* Keep language switcher neat in mobile drawer */
    .lang-switcher {
        margin-top: 1rem;
        width: 100%;
    }
    
    .lang-btn {
        font-size: 1.1rem !important;
        padding: 0.6rem 0;
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .lang-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0.5rem 0 0 1rem !important;
        display: none;
    }
    
    .lang-switcher.open .lang-dropdown {
        display: flex !important;
    }

    /* Mobile menu backdrop blur overlay */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: clip;
    }

    /* Al abrir el menú después de hacer scroll, el header puede conservar la
       transformación de la animación de entrada. Se fija al viewport para que
       el panel no quede situado en la coordenada inicial del documento. */
    body.menu-open header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    /* Removed html, body overflow-x to avoid breaking position: sticky on mobile */

    .team-section {
        padding: 6rem 1.5rem 4rem;
    }
    .team-header {
        margin-bottom: 3.5rem;
    }
    .team-header h1,
    .team-header h2 {
        font-size: 2.5rem;
    }
    .team-lead {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Premium Team Cards with White Background and Soft Shadows */
.team-card {
    background: #ffffff;
    border: 1px solid rgba(11, 15, 25, 0.08);
    border-radius: 20px 20px 20px 0; /* consistent with other sections */
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Member Image styling with custom signature borders */
.member-image-container {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px 16px 16px 0; /* Signature corner cut */
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: none;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card details styling */
.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.member-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark); /* Stand out clearly on white */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.member-bio {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.55;
    margin: 0;
    font-weight: 400;
}

/* Vertical alignment of text in grid rows for tablet/desktop */
@media (min-width: 641px) {
    .member-info h3 {
        min-height: 3.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .member-role {
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* --- COMPANY TEAM SHOWCASE --- */
.team-section {
    min-height: 100vh;
    padding: 2.5rem 2rem 4rem;
}

.team-section::before {
    display: none;
}

.team-section::after {
    display: none;
}

.team-wrapper { max-width: 1450px; }

.team-header {
    margin-bottom: 2.5rem;
    max-width: 680px;
}

.team-eyebrow {
    color: #079cba;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.45rem;
    padding-bottom: 1rem;
    position: relative;
}

.team-eyebrow::after {
    background: #079cba;
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 42px;
}

.team-kicker {
    color: #079cba;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.team-header h1,
.team-header h2 {
    color: #000;
    font-size: 2.5rem;
    font-weight: 550;
    letter-spacing: -0.05em;
    line-height: 1.04;
    margin-bottom: 1.45rem;
    text-transform: uppercase;
}

.team-lead {
    color: #173567;
    font-size: 1.05rem;
    line-height: 1.55;
    width: 75%;
}

.team-grid { gap: 1.2rem; }

.team-card {
    align-items: center;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 0.4rem;
    padding: 1rem;
    text-align: left;
}

.member-image-container {
    border-radius: 50%;
    height: 120px;
    margin: 0;
    width: 120px;
}

.member-info h3 {
    color: #082757;
    font-size: 1rem;
    justify-content: flex-start;
    min-height: 0;
}

.member-role {
    letter-spacing: 0;
    justify-content: flex-start;
    margin-bottom: 0.1rem;
    min-height: 0;
    text-transform: none;
}

.member-bio {
    color: #173567;
    font-size: 0.75rem;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .team-card { grid-template-columns: 120px minmax(0, 1fr); column-gap: 1.75rem; }
    .member-image-container { width: 120px; height: 120px; }
}

@media (max-width: 640px) {
    .team-section { padding: 2.5rem 1.25rem 3rem; }
    .team-header h1,
    .team-header h2 { font-size: 2.65rem; }
    .team-header h2 { font-size: 2rem; }
    .team-lead { width: 100%; }
    .team-card { grid-template-columns: 104px minmax(0, 1fr); column-gap: 1.25rem; }
    .member-image-container { height: 104px; width: 104px; }
}

/* --- NEOTEC FUNDING BANNER --- */
.neotec-section {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(11, 15, 25, 0.08);
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.neotec-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.neotec-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.neotec-logo-container {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.neotec-left {
    justify-content: flex-start;
}

.neotec-right {
    justify-content: flex-end;
}

.neotec-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.neotec-text {
    flex-grow: 1;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.neotec-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.03em;
}

.neotec-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .neotec-section {
        padding: 2.5rem 1.5rem;
    }
    .neotec-content {
        flex-direction: column;
        gap: 1.8rem;
        text-align: center;
    }
    .neotec-logo-container {
        width: auto;
        justify-content: center;
    }
}

/* Align solutions card text columns to the same height on desktop */
@media (min-width: 969px) {
    .product-card h3 {
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-sub {
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-desc {
        min-height: 6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Startup & NEOTEC Features Section */
.neotec-features-section {
    padding: 6rem 2rem;
    background: #000000; /* Full-width black background */
    position: relative;
    z-index: 10;
}

.features-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem auto;
}

.features-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff; /* White title */
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.features-lead {
    font-size: 1.15rem;
    color: #cbd5e1; /* Light gray text */
    line-height: 1.6;
    font-weight: 450;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-col {
    padding: 2rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Vertical separator lines in white/gray for dark background */
.feature-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.12);
}

.feature-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff; /* White title */
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-col p {
    font-size: 0.95rem;
    color: #cbd5e1; /* Light gray text */
    line-height: 1.55;
    font-weight: 400;
}

.feature-col p strong {
    color: #ffffff; /* White highlight */
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .feature-col {
        padding: 1.5rem 1rem;
    }
    
    .feature-col:not(:last-child)::after {
        display: none; /* Hide vertical separators on multi-line grid */
    }
    
    .features-header {
        margin-bottom: 3rem;
    }
    
    .features-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .neotec-features-section {
        padding: 4rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-col {
        padding: 1rem 0;
        align-items: center;
        text-align: center;
    }
}

/* Responsive Split-Screen adjustments for mobile portrait */
@media (max-width: 768px) {
    /* Intro messages occupy the available panel height, so flex alignment can centre them vertically. */
    .intro-right-column .intro-overlay-slide {
        height: 100% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .intro-scroller-viewport {
        top: 0 !important;
        height: 100% !important;
    }
    .intro-right-column .intro-scroll-item {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    .scroll-intro-sticky video {
        width: 100vw !important;
         /* Constrain height to the upper 75% of screen */
        object-fit: cover !important; /* Keep video contained inside its container */
    }
    .scroll-intro-sticky canvas {
        width: 100vw !important;
        height: 75vh !important; /* Constrain height to the upper 75% of screen */
        object-fit: cover !important; /* Keep video contained inside its container */
    }
    .intro-overlays {
        left: 0 !important;
        top: 75% !important;
        width: 100% !important;
        height: 25% !important; /* Bottom 25% */
    }

    .intro-right-column {
        background: var(--bg-light) !important;
    }
    .intro-mobile-bg-sweep {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-light);
        z-index: 10;
        will-change: transform;
        transform: translateY(0);
    }
    .intro-right-column-scroller {
        position: relative;
        z-index: 11;
    }
    .intro-overlay-text,
    .intro-slide-title,
    .intro-overlay-list li,
    .intro-overlay-list li::before {
        color: #000000 !important;
        text-shadow: none !important;
    }
    .intro-overlay-slide,
    .intro-right-column .intro-overlay-slide {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem 0.625rem !important;
        background: transparent !important;
        box-sizing: border-box !important;
        height: 100% !important;
    }
    .intro-slide-content,
    #intro-slide-0 .intro-slide-content,
    #intro-slide-1 .intro-slide-content {
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }
    .intro-overlay-text {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        font-size: 1.60rem !important;
        line-height: 1.25 !important;
    }
    .intro-overlay-description {
        margin: 0.5rem auto 0 !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    body.has-intro.hero-active .hero-right {
        opacity: var(--hero-right-opacity, 0) !important;
        visibility: var(--hero-right-visibility, hidden) !important;
        transform: translateY(var(--hero-right-translate-y, 50px)) !important;
        pointer-events: auto !important;
        transition: none !important;
    }
    body.has-intro.intro-completed .hero-right {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

/* Centre the text inside the right-hand scroll container. */
.intro-right-column .start-right {
    align-items: center;
    text-align: center;
}

.intro-right-column .intro-overlay-slide {
    align-items: center !important;
    justify-content: center !important;
}

.intro-right-column .intro-slide-content {
    text-align: center !important;
}

.intro-right-column .intro-overlay-text {
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.intro-right-column .intro-overlay-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- BENEFITS SECTION (DESIGN & PRODUCTION CONNECTADOS) --- */
.benefits-section {
    background-color: #f8fafc;
    background-image: url('../contenido/fondo-beneficios-industria-textil.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    padding: 7rem 0;
    width: 100%;
    box-sizing: border-box;
}

.benefits-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
}

.benefits-left {
    display: flex;
    flex-direction: column;
    width: 55%;
    max-width: 900px;
}

.benefits-eyebrow {
    color: #069ab9;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefits-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #069ab9;
}

.benefits-title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.benefits-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 3.5rem;
    max-width: 640px;
    margin-top: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2.5rem;
}

.benefit-box {
    background: #ffffff;
    border: 1px solid rgba(8, 35, 77, 0.07);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 20px rgba(8, 35, 77, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(8, 35, 77, 0.07);
}

.benefit-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 154, 185, 0.08);
    color: #069ab9;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
}

.benefit-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.benefit-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1200px) {
    .benefits-section {
        background-position: center;
    }
    .benefits-left {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 5rem 0;
    }
    .benefits-title {
        font-size: 2.5rem;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .benefit-box {
        padding: 1.75rem;
    }
}

/* Solutions hero */
.solutions-hero {
    min-height: calc(100vh - 76px);
    background-color: #fff;
    background-image: url('../contenido/fondo-soluciones.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 3rem 2rem 3.5rem;
}
.solutions-hero .solutions-wrapper { max-width: 1540px; min-height: calc(100vh - 76px); margin: 0 auto; display:flex; align-items:center; }
.solutions-hero .solutions-heading { max-width: 670px; transform: translateY(-2.5rem); }
.solutions-hero .solutions-heading > p:first-child { color:#079cba; font-size:1rem; font-weight:700; text-transform:uppercase; }
.solutions-hero .solutions-heading h1 { color:#000; font-size:3rem; font-weight:600; line-height:1.15; text-transform:uppercase; letter-spacing:-.02em; margin-bottom: 1.2rem; }
.solutions-hero .solutions-heading h1 span { color:#079cba; }
.solutions-hero-lead { color:#102b5c; font-size:1.05rem; line-height:1.55; max-width:590px; }
.solutions-hero-actions { display:flex; gap:1.2rem; margin:1.5rem 0 2rem; }
.solutions-hero-actions .hero-btn { display:inline-flex; align-items:center; justify-content:center; gap:1.2rem; min-width:225px; padding:.85rem 1.4rem; border-radius:8px; text-decoration:none; }
.solutions-hero-actions .hero-btn--primary { background:#079cba; border:1px solid #079cba; color:#fff; }
.solutions-hero-actions .hero-btn--secondary { background:#fff; border:1px solid #079cba; color:#102b5c; }
.solutions-stats { display:flex; max-width:740px; border:1px solid #e2e8f0; border-radius:14px; background:rgba(255,255,255,.9); padding:1rem 1.3rem; }
.solutions-stats div { flex:1; display:flex; flex-direction:column; padding:0 1.2rem; border-right:1px solid #d9e2ec; }
.solutions-stats div:last-child { border-right:0; }
.solutions-stats strong { color:#079cba; font-size:1.8rem; }
.solutions-stats span { color:#102b5c; font-size:.85rem; }
.solutions-hero .solutions-grid { margin-top:-25rem; margin-left:43%; position:relative; z-index:1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; }
.solutions-hero .solution-card { min-height:240px; background:rgba(255,255,255,.94); }
.solutions-hero .solutions-grid { display:none; }
@media (max-width:968px) {
    .solutions-hero { background-position:center; background-size:cover; }
    .solutions-hero .solutions-wrapper { min-height:0; }
    .solutions-hero .solutions-heading { transform:none; }
    .solutions-hero .solutions-grid { margin:2.5rem 0 0; }
}
@media (max-width:576px) {
    .solutions-hero { padding:2rem 1rem; background:#fff; }
    .solutions-hero .solutions-heading h1 { font-size:2rem; }
    .solutions-hero-actions { flex-direction:column; }
    .solutions-stats { flex-direction:column; gap:.8rem; }
    .solutions-stats div { border-right:0; border-bottom:1px solid #d9e2ec; padding:.4rem 0; }
    .solutions-stats div:last-child { border-bottom:0; }
}

.solutions-flow-section { margin: 0 auto; max-width: 1540px; padding: 2rem 1.25rem; }
.solutions-flow-section { position:relative; display:grid; grid-template-columns:58% 42%; gap:1rem; background:transparent; border-radius:20px; }
.solutions-flow-section::before { content:''; position:absolute; z-index:0; top:0; left:0; right:0; bottom:0; background:#f5f8fc; border-radius:20px; }
.solutions-flow-section > * { position:relative; z-index:1; }
.solutions-flow-visual { align-self:center; }
.solutions-flow-visual img { display:block; width:100%; height:auto; }
.solutions-flow-copy { align-self:center; padding:1rem 2rem 1rem 0; color:#000000; }
.solutions-flow-eyebrow { color:#079cba; font-size:.9rem; font-weight:700; letter-spacing:.03em; margin:0 0 1rem; }
.solutions-flow-copy h2 { color:#000000; font-size:2.2rem; line-height:1.15; margin:0 0 1rem; }
.solutions-flow-copy h2 span { color:#079cba; }
.solutions-flow-copy > p:not(.solutions-flow-eyebrow) { font-size:1rem; line-height:1.55; margin:0 0 1.5rem; }
.solutions-flow-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.5rem; }
.solutions-flow-features div, .solutions-flow-benefits div { display:flex; flex-direction:column; gap:.2rem; }
.solutions-flow-features strong, .solutions-flow-benefits strong { font-size:1rem; }
.solutions-flow-features span, .solutions-flow-benefits span { font-size:.85rem; line-height:1.35; }
.solutions-flow-benefits { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; border:1px solid #e1e8f0; border-radius:15px; background:#fff; padding:1.5rem; margin:1rem auto 8rem; max-width:1515px; width:calc(100% - 2.5rem); box-sizing:border-box; }
.solutions-flow-benefits div { display:grid; grid-template-columns:68px minmax(0,1fr); column-gap:.8rem; padding:0 1rem; border-right:1px solid #dbe4ed; }
.solutions-flow-benefits div:last-child { border-right:0; }
.flow-benefit-icon { grid-row:span 2; display:flex; align-items:center; justify-content:center; width:58px; height:58px; margin:0; border:0; border-radius:0; color:#079cba; }
.flow-benefit-icon svg { width:40px; height:40px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:968px) {
    .solutions-flow-section { grid-template-columns:1fr; }
    .solutions-flow-section::before { bottom:0; background:#fff; }
    /* En móvil mostramos primero la información de la columna derecha y
       después la imagen de flujo que ocupa la columna izquierda en desktop. */
    .solutions-flow-copy { grid-row:1; }
    .solutions-flow-visual { grid-row:2; }
    .solutions-flow-copy { padding:0 1rem 1rem; }
    .solutions-flow-benefits { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .solutions-flow-benefits div:nth-child(2) { border-right:0; }
}
@media (max-width:576px) {
    .solutions-flow-section { padding:1rem .75rem; border-radius:14px; }
    .solutions-flow-section::before { bottom:0; }
    .solutions-flow-section::before { background:#f5f8fc; }
    .solutions-flow-copy h2 { font-size:1.65rem; }
    .solutions-flow-features, .solutions-flow-benefits { grid-template-columns:1fr; }
    .solutions-flow-benefits { width:calc(100% - 1.5rem); margin-bottom:6rem; }
    .solutions-flow-benefits div { border-right:0; border-bottom:1px solid #dbe4ed; padding:0 0 .8rem; }
    .solutions-flow-benefits div:last-child { border-bottom:0; }
}

/* Contact layout final overrides */
.contact-section { display:block; padding:2rem 0 0; background:#fff; }
.contact-heading { max-width:1540px; margin:0 auto; padding:0 4%; }
.contact-heading h1 { margin:0 0 1rem; color:var(--text-dark); font-size:3rem; font-weight:600; line-height:1.1; text-transform:uppercase; }
.contact-heading h1::after { content:''; display:block; width:50px; height:3px; margin-top:.8rem; background:var(--primary-dark); }
.contact-wrapper { max-width:none; grid-template-columns:minmax(0,60%) minmax(360px,40%); gap:0; align-items:stretch; }
.contact-img-container { border-radius:0; box-shadow:none; height:680px; }
.contact-office-img { height:100%; object-fit:cover; }
.contact-right { align-items:center; padding:0 7%; }
.contact-form-container { max-width:560px; }
.contact-form-container h1 { font-size:2.1rem; margin-bottom:1rem; text-transform:none; }
.contact-intro { margin-bottom:1.3rem; font-size:.95rem; }
.premium-form { gap:.65rem; }
.form-group { gap:0; }
.form-group label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.form-group input,.form-group textarea { border-radius:7px; padding:.78rem 1rem; font-size:.9rem; }
.form-group textarea { min-height:84px; }
.btn-submit { align-self:stretch; border-radius:7px; background:var(--primary-dark); padding:.8rem 2rem; font-size:1rem; }
@media (max-width:968px) {
    .contact-wrapper { grid-template-columns:1fr; }
    .contact-img-container { height:360px; }
    .contact-right { padding:2rem 1.5rem 3rem; }
    .contact-heading { padding:0 1.5rem; }
}
@media (max-width:576px) {
    .contact-heading h1 { font-size:2.2rem; }
    .contact-img-container { height:280px; }
}

/* --- MODAL COMING SOON --- */
.demo-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-soon-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.demo-soon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 39, 0.6);
    backdrop-filter: blur(8px);
}

.demo-soon-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 520px;
    background-color: #ffffff;
    background-image: url('../contenido/popup-preparando-demo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(8, 20, 39, 0.15);
    z-index: 10;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.demo-soon-modal.active .demo-soon-modal-content {
    transform: scale(1);
}

.demo-soon-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(8, 20, 39, 0.08);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(8, 20, 39, 0.05);
    transition: all 0.3s ease;
    z-index: 20;
    line-height: 1;
    padding-bottom: 4px;
}

.demo-soon-modal-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

.demo-soon-modal-body {
    padding: 3rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.demo-soon-text-content {
    max-width: 380px;
    z-index: 2;
    text-align: left;
}

.demo-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(7, 156, 186, 0.08);
    border-radius: 50px;
    color: #079cba;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.demo-soon-badge .badge-icon {
    width: 14px;
    height: 14px;
}

.demo-soon-text-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0c2340;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.demo-soon-desc {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.demo-soon-divider {
    width: 48px;
    height: 3px;
    background: #079cba;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.demo-soon-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 550;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.demo-soon-notification:hover {
    color: #079cba;
}

.demo-soon-notification .notification-icon {
    width: 20px;
    height: 20px;
    color: #079cba;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Responsiveness for Coming Soon Modal */
@media (max-width: 768px) {
    .demo-soon-modal-content {
        height: auto;
        min-height: 480px;
        background-position: center right;
        background-size: cover;
        width: 92%;
    }
    
    .demo-soon-modal-body {
        padding: 2rem;
        align-items: flex-start;
    }
    
    .demo-soon-text-content {
        max-width: 100%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        margin-top: 2.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .demo-soon-text-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .demo-soon-text-content h3 {
        font-size: 1.5rem;
    }
    .demo-soon-desc {
        font-size: 0.95rem;
    }
}

/* Forzar todos los h2 a 2rem en formato móvil (768px o menos) */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem !important;
    }
    .company-credential h2 {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
    }
    .kit-digital-section {
        padding: 2rem 1.5rem;
        border-top: none;
    }
    .kit-digital-container {
        margin-top: 0;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    .kit-digital-img {
        margin-top: 0;
    }
}

/* --- KIT DIGITAL SECTION --- */
.kit-digital-section {
    background-color: #ffffff;
    padding: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.kit-digital-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kit-digital-img {
    max-width: 100%;
    margin-top: 5rem;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.kit-digital-img:hover {
    opacity: 1;
}

/* Reducir espacio por debajo del Kit Digital en formato ordenador antes del footer */
@media (min-width: 769px) {
    .kit-digital-container {
        padding-bottom: 1.5rem;
    }
    .kit-digital-section + footer {
        padding-top: 1.5rem;
    }
}

/* --- FLUID TABLET / INTERMEDIATE VIEWPORTS -----------------------------
   Mobile (<= 768px) and desktop (>= 1200px) keep their existing layouts.
   Between both extremes, these values interpolate the desktop dimensions
   so tablets do not jump abruptly between the two established designs. */
@media (min-width: 769px) and (max-width: 1199px) {
    :root {
        --fluid-gutter: clamp(1.25rem, 4vw, 2rem);
        --fluid-section-gutter: clamp(1.5rem, 5vw, 4rem);
        --fluid-column-gap: clamp(1.5rem, 4vw, 4rem);
    }

    header {
        padding-inline: var(--fluid-gutter);
    }

    nav {
        gap: clamp(1rem, 3vw, 2rem);
    }

    nav ul {
        gap: clamp(1rem, 2.5vw, 2rem);
    }

    .hero-section {
        padding-inline: var(--fluid-gutter);
    }

    .hero-wrapper {
        gap: var(--fluid-column-gap);
        padding-inline: clamp(1.5rem, 3vw, 3%);
    }

    .hero-right h1 {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }

    .hero-desc {
        font-size: clamp(1rem, 1.7vw, 1.25rem);
        margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }

    .hero-tags {
        gap: clamp(.75rem, 2vw, 1.5rem);
        flex-wrap: wrap;
    }

    .solutions-page,
    .contact-section,
    .smart-design-section,
    .actualidad-section,
    .projects-news-section {
        padding-inline: var(--fluid-section-gutter);
    }

    .solutions-wrapper,
    .contact-heading,
    .smart-card-wrapper,
    .actualidad-content,
    .projects-news-content {
        width: min(100%, 1400px);
    }

    .solutions-heading h1,
    .contact-heading h1,
    .projects-copy h1 {
        font-size: clamp(2.35rem, 4.5vw, 3rem);
    }

    .solutions-grid {
        gap: clamp(1rem, 2.5vw, 2.5rem);
    }

    .solution-card {
        min-height: clamp(250px, 24vw, 280px);
        grid-template-columns: minmax(150px, 33%) 1fr;
    }

    .solution-card img,
    .solution-card video,
    .solution-image-pending {
        min-height: clamp(250px, 24vw, 280px);
    }

    .new-workflow-section {
        background-position: calc(100% + clamp(40px, 12vw, 150px)) center;
    }

    .new-workflow-container {
        padding-inline: var(--fluid-section-gutter);
    }

    .new-workflow-content {
        max-width: clamp(430px, 43vw, 520px);
    }

    .new-workflow-content h2 {
        font-size: clamp(2.1rem, 3.8vw, 2.5rem);
    }

    .markers-sticky-wrapper {
        padding-inline: var(--fluid-section-gutter);
    }

    .markers-stepped-content {
        padding-inline: clamp(0.5rem, 2vw, 2rem);
    }

    .markers-fixed-header {
        margin-bottom: clamp(2rem, 4vw, 4rem);
    }

    .markers-fixed-header h2 {
        font-size: clamp(2.25rem, 4.5vw, 3rem);
    }

    .markers-fixed-header .ai-lead {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }

    .benefits-wrapper,
    .projects-neotec-band,
    .footer-bottom-bar {
        padding-inline: var(--fluid-section-gutter);
    }

    .projects-layout {
        padding-inline: var(--fluid-section-gutter);
    }

    .benefits-grid {
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .benefit-box,
    .project-benefit-card {
        padding: clamp(1.1rem, 2vw, 1.45rem);
    }

    .projects-copy {
        padding-left: 0;
        padding-right: clamp(1rem, 3vw, 2rem);
    }

    .projects-benefits {
        gap: clamp(.6rem, 1.5vw, .85rem);
    }

    .projects-news-cards {
        gap: clamp(.75rem, 2vw, 1.25rem);
    }

    footer {
        padding-inline: var(--fluid-section-gutter);
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    /* The existing compact projects layout already owns its side padding. */
    .projects-layout {
        padding-inline: 0;
    }
}
