/* =========================================================
   FX AUTOMATION
   CORPORATE INDUSTRIAL LANDING PAGE
   VERSION: 2.0 - PROFESSIONAL ENHANCED
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* =========================================================
   VARIABLES (Sistema de Diseño Mejorado)
========================================================= */
:root {
    /* --- Colores Base --- */
    --fx-blue: #1557c7;
    --fx-blue-light: #2474e8;
    --fx-blue-dark: #0d3f96;
    --fx-blue-rgb: 21, 87, 199; /* Para uso con rgba() */

    --fx-dark: #101820;
    --fx-text: #202932;
    --fx-text-light: #58636d;
    --fx-text-lighter: #7b858e;

    --fx-white: #ffffff;
    --fx-off-white: #fafbfc;
    --fx-gray-100: #f4f6f8;
    --fx-gray-200: #e8ebef;
    --fx-gray-300: #d8dde3;
    --fx-border: #e4e8ec;

    /* --- Sombras --- */
    --fx-shadow-sm: 0 4px 15px rgba(16, 24, 32, 0.04);
    --fx-shadow-md: 0 8px 30px rgba(16, 24, 32, 0.06);
    --fx-shadow-lg: 0 18px 45px rgba(16, 24, 32, 0.11);
    --fx-shadow-xl: 0 25px 60px rgba(16, 24, 32, 0.15);

    /* --- Tipografía --- */
    --fx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fx-font-heading: 'Manrope', 'Inter', -apple-system, sans-serif;

    /* --- Layout --- */
    --fx-container-max: 1380px;
    --fx-gutter: 40px; /* Gutter base para padding laterales */
    --fx-header-height: 84px;

    /* --- Transiciones --- */
    --fx-transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    --fx-transition-slow: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);

    /* --- Bordes --- */
    --fx-border-radius: 0; /* Manteniendo el estilo industrial */
}

/* =========================================================
   RESET & BASE (Más robusto)
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Evita zoom en iOS */
}

body {
    background: var(--fx-white);
    color: var(--fx-text);
    font-family: var(--fx-font-body);
    font-size: 16px; /* Tamaño base para mejor accesibilidad */
    line-height: 1.65;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Mejora en el enfoque para accesibilidad */
:focus-visible {
    outline: 2px solid var(--fx-blue);
    outline-offset: 2px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================================
   SCROLLBAR (Mejorada)
========================================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--fx-gray-100);
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: var(--fx-gray-300);
    border-radius: 0;
    border: 2px solid var(--fx-gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fx-blue);
}

/* =========================================================
   UTILITY CONTAINER (Refactorizado)
========================================================= */
.section-container,
.header-container,
.hero-content,
.cta-content,
.footer-container,
.footer-bottom {
    width: min(calc(100% - var(--fx-gutter) * 2), var(--fx-container-max));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HEADER (Más robusto y con mejor performance)
========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fx-header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px); /* Efecto vidrio esmerilado para modernidad */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--fx-transition), border-color var(--fx-transition), box-shadow var(--fx-transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--fx-border);
    box-shadow: var(--fx-shadow-sm);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   BRAND
========================================================= */
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evita que se encoja */
}

.brand img {
    width: 145px;
    height: 58px;
    object-fit: contain;
}

.brand-text {
    margin-left: 0.75rem;
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-text span {
    color: var(--fx-text-lighter);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* =========================================================
   NAVIGATION (Mejorada para escalar)
========================================================= */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* Usando rem para mejor escalado */
}

.main-nav > a:not(.nav-button) {
    position: relative;
    color: var(--fx-text);
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    transition: color var(--fx-transition);
}

.main-nav > a:not(.nav-button)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--fx-blue);
    transform: translateX(-50%);
    transition: width var(--fx-transition);
}

.main-nav > a:not(.nav-button):hover {
    color: var(--fx-blue);
}

.main-nav > a:not(.nav-button):hover::after {
    width: 100%;
}

/* --- Botón CTA en Nav --- */
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1.75rem;
    background: var(--fx-blue);
    color: var(--fx-white);
    font-size: 0.6875rem; /* 11px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(var(--fx-blue-rgb), 0.18);
    transition: all var(--fx-transition);
    cursor: pointer;
    white-space: nowrap;
}

.nav-button::after {
    content: "→";
    font-size: 1rem;
    transition: transform var(--fx-transition);
}

.nav-button:hover {
    background: var(--fx-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--fx-blue-rgb), 0.25);
}

.nav-button:hover::after {
    transform: translateX(3px);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */
.mobile-menu-button {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--fx-border);
    background: var(--fx-white);
    color: var(--fx-dark);
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Manteniendo el estilo */
    transition: all var(--fx-transition);
    flex-shrink: 0;
}

.mobile-menu-button:hover {
    border-color: var(--fx-blue);
    color: var(--fx-blue);
}

/* =========================================================
   MOBILE MENU
========================================================= */
.mobile-menu {
    position: fixed;
    top: var(--fx-header-height);
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1.5rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fx-border);
    box-shadow: var(--fx-shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(-120%);
    transition: transform var(--fx-transition);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--fx-border);
    color: var(--fx-text);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color var(--fx-transition);
}

.mobile-menu a:last-child {
    margin-top: 0.75rem;
    border: none;
    background: var(--fx-blue);
    color: var(--fx-white);
    text-align: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
}

/* =========================================================
   HERO (Refactorizado para escalar)
========================================================= */
.hero {
    position: relative;
    min-height: 720px;
    height: calc(100vh - var(--fx-header-height));
    max-height: 900px;
    margin-top: var(--fx-header-height);
    overflow: hidden;
    background: var(--fx-blue-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(20, 20, 20, 0.95) 30%,
        rgba(50, 50, 50, .85) 50%,
        rgba(90, 90, 90, 0.4) 70%,
        rgba(150, 150, 150, 0) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--fx-blue);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-label span {
    width: 30px;
    height: 2px;
    background: var(--fx-blue);
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 1.5rem;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: var(--fx-blue);
}

.hero-content > p {
    max-width: 570px;
    margin-bottom: 2rem;
    color: var(--fx-text-light);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.75;
}

/* =========================================================
   BUTTONS (Sistema unificado)
========================================================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 52px;
    padding: 0 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    transition: all var(--fx-transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--fx-blue);
    color: var(--fx-white);
    box-shadow: 0 6px 18px rgba(var(--fx-blue-rgb), 0.18);
}

.btn-primary:hover {
    background: var(--fx-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--fx-blue-rgb), 0.25);
}

.btn-secondary {
    border-color: var(--fx-gray-300);
    background: var(--fx-white);
    color: var(--fx-blue);
}

.btn-secondary:hover {
    border-color: var(--fx-blue);
    background: var(--fx-off-white);
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =========================================================
   HERO TRUST (Mejorado)
========================================================= */
.hero-trust {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--fx-border);
    border-right: 1px solid var(--fx-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.hero-trust > div {
    min-width: 170px;
    padding: 1.25rem 2rem;
    border-right: 1px solid var(--fx-border);
}

.hero-trust > div:last-child {
    border-right: none;
}

.hero-trust strong {
    display: block;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1;
}

.hero-trust span {
    display: block;
    margin-top: 0.25rem;
    color: var(--fx-text-light);
    font-size: 0.625rem;
    font-weight: 500;
}

/* =========================================================
   HERO SCROLL
========================================================= */
.hero-scroll {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fx-text-lighter);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.hero-scroll i {
    color: var(--fx-blue);
}

/* =========================================================
   SECTION SPACING (Sistema consistente)
========================================================= */
.about-section,
.solutions-section,
.feature-section,
.supply-section,
.industries-section,
.clients-section {
    position: relative;
    padding: clamp(4rem, 8vh, 7rem) 0;
}

.solutions-section {
    background: var(--fx-off-white);
}

.supply-section {
    background: var(--fx-gray-100);
}

.clients-section {
    background: var(--fx-off-white);
}

/* =========================================================
   SECTION INTRO (Mejorado)
========================================================= */
.section-intro {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    color: var(--fx-gray-300);
    font-family: var(--fx-font-heading);
    font-size: 0.875rem;
    font-weight: 800;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--fx-blue);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.section-label::after {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--fx-blue);
}

.section-intro h2,
.section-heading h2 {
    max-width: 850px;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-intro h2 span,
.section-heading h2 span {
    color: var(--fx-blue);
}

/* =========================================================
   ABOUT (Mejorada)
========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.about-text .large-text {
    margin-bottom: 1.75rem;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    line-height: 1.5;
}

.about-text .large-text strong {
    font-weight: 800;
}

.about-text > p:not(.large-text) {
    margin-bottom: 1rem;
    color: var(--fx-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
    color: var(--fx-blue);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.text-link i {
    transition: transform var(--fx-transition);
}

.text-link:hover i {
    transform: translateX(5px);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 490px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    min-width: 220px;
    padding: 1.5rem 2rem;
    background: var(--fx-blue);
    color: var(--fx-white);
    font-family: var(--fx-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.image-caption span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.625rem;
    opacity: 0.7;
}

/* =========================================================
   SECTION HEADING (Mejorado)
========================================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.section-heading > p {
    max-width: 470px;
    margin-bottom: 0.25rem;
    color: var(--fx-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* =========================================================
   SOLUTIONS (Mejorada)
========================================================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 445px;
    padding: 2rem;
    background: var(--fx-white);
    border: 1px solid var(--fx-border);
    box-shadow: var(--fx-shadow-sm);
    transition: all var(--fx-transition);
}

.solution-card:hover {
    border-color: var(--fx-gray-300);
    transform: translateY(-6px);
    box-shadow: var(--fx-shadow-lg);
}

.solution-card.featured {
    border-top: 3px solid var(--fx-blue);
}

.solution-number {
    color: var(--fx-gray-300);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.solution-icon {
    width: 52px;
    height: 52px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fx-gray-100);
    color: var(--fx-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.solution-card h3 {
    margin-bottom: 0.75rem;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
}

.solution-card > p {
    min-height: 82px;
    margin-bottom: 1rem;
    color: var(--fx-text-light);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.solution-card ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.solution-card li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: var(--fx-text-light);
    font-size: 0.75rem;
}

.solution-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fx-blue);
    font-weight: 800;
}

.solution-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--fx-blue);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.solution-card a i {
    transition: transform var(--fx-transition);
}

.solution-card a:hover i {
    transform: translateX(5px);
}

/* =========================================================
   FEATURE (Mejorada)
========================================================= */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
}

.feature-image {
    min-height: 600px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: clamp(3rem, 8vh, 5.5rem) 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h2 {
    max-width: 580px;
    margin-bottom: 1.5rem;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(2.2rem, 3.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.feature-content > p {
    max-width: 570px;
    margin-bottom: 1.75rem;
    color: var(--fx-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.feature-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
    margin-bottom: 2rem;
}

.feature-points > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fx-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-points i {
    color: var(--fx-blue);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.feature-content .btn-primary {
    align-self: flex-start;
}

/* =========================================================
   SUPPLY (Mejorada)
========================================================= */
.supply-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: center;
}

.supply-content h2 {
    max-width: 620px;
    margin-bottom: 1.5rem;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.supply-content > p {
    max-width: 520px;
    margin-bottom: 1.5rem;
    color: var(--fx-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.supply-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
    padding: 0.625rem 1rem;
    background: var(--fx-white);
    border: 1px solid var(--fx-border);
    color: var(--fx-text-light);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.supply-badge i {
    color: var(--fx-blue);
    font-size: 1rem;
}

.supply-image {
    position: relative;
}

.supply-image::before {
    content: "";
    position: absolute;
    top: -18px;
    right: -18px;
    width: 120px;
    height: 120px;
    border-top: 3px solid var(--fx-blue);
    border-right: 3px solid var(--fx-blue);
}

.supply-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 470px;
    object-fit: cover;
    background: var(--fx-white);
    border: 1px solid var(--fx-border);
}

/* =========================================================
   INDUSTRIES (Mejorada)
========================================================= */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--fx-border);
    border-left: 1px solid var(--fx-border);
}

.industry {
    min-height: 145px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
    transition: all var(--fx-transition);
}

.industry i {
    color: var(--fx-text-lighter);
    font-size: 1.5rem;
    transition: all var(--fx-transition);
}

.industry span {
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: 0.8125rem;
    font-weight: 800;
}

.industry:hover {
    background: var(--fx-gray-100);
}

.industry:hover i {
    color: var(--fx-blue);
    transform: translateY(-3px);
}

/* =========================================================
   CLIENTS (Mejorada)
========================================================= */
.clients-header {
    margin-bottom: 3rem;
    text-align: center;
}

.clients-header .section-label {
    justify-content: center;
}

.clients-header h2 {
    max-width: 650px;
    margin: 0 auto;
    color: var(--fx-dark);
    font-family: var(--fx-font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--fx-border);
    border-left: 1px solid var(--fx-border);
}

.client-logo {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fx-white);
    border-right: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
}

.client-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all var(--fx-transition);
}

.client-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.5);
}

/* =========================================================
   CTA (Mejorada)
========================================================= */

.cta-section {
    position: relative;
    min-height: 430px;
    padding: clamp(4rem, 10vh, 6rem) 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--fx-off-white), var(--fx-white));
    border-top: 1px solid var(--fx-border);
}


/* =========================================================
   CTA IMAGE CAROUSEL
========================================================= */

.cta-background {
    position: absolute;
    top: 0;
    right: 0;

    width: 42%;
    height: 100%;

    overflow: hidden;

    opacity: 1;
}


/* Carrusel */
.cta-background .carousel-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease-in-out,
        visibility 0.8s ease-in-out;
}


/* Imagen activa */
.cta-background .carousel-slide.active {
    opacity: 1;
    visibility: visible;
}


/* Imágenes */
.cta-background .carousel-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* Difuminado de la imagen hacia el contenido */
.cta-background::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(248, 251, 255, 1) 0%,
        rgba(248, 251, 255, 0.80) 18%,
        rgba(248, 251, 255, 0.45) 40%,
        rgba(248, 251, 255, 0.15) 65%,
        rgba(248, 251, 255, 0) 100%
    );
}


/* =========================================================
   CTA CONTENT
========================================================= */

/* =========================================================
   CTA SECTION
========================================================= */

.cta-section {
    position: relative;
    min-height: 430px;
    padding: clamp(4rem, 10vh, 6rem) 0;

    display: flex;
    align-items: center;

    background: linear-gradient(
        135deg,
        var(--fx-off-white),
        var(--fx-white)
    );

    border-top: 1px solid var(--fx-border);

    overflow: hidden;
}


/* =========================================================
   CTA BACKGROUND / CAROUSEL
========================================================= */
.cta-background {
    position: absolute;
    top: 0;
    right: 0;

    width: 42%;
    height: 100%;

    overflow: hidden;

    z-index: 1;
}


/* Slides */

.cta-background .carousel-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.8s ease-in-out;
}


/* Slide activo */

.cta-background .carousel-slide.active {
    opacity: 1;
    visibility: visible;
}


/* Imágenes */

.cta-background .carousel-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 1;
}


/* Contenido */

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    max-width: 700px;
    margin-bottom: 1rem;

    color: var(--fx-dark);

    font-family: var(--fx-font-heading);
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    font-weight: 800;

    line-height: 1;
    letter-spacing: -0.045em;
}

.cta-content h2 span {
    display: block;
    color: var(--fx-blue);
}

.cta-content > p {
    max-width: 560px;
    margin-bottom: 1.75rem;

    color: var(--fx-text-light);

    font-size: 0.9375rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    align-items: center;

    gap: 0.75rem;
    flex-wrap: wrap;
}


/* =========================================================
   FOOTER (Mejorado)
========================================================= */
.site-footer {
    padding-top: 4rem;
    background: var(--fx-white);
    border-top: 1px solid var(--fx-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.75rem;
    padding-bottom: 3.5rem;
}

.footer-brand img {
    width: 145px;
    height: auto;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    max-width: 260px;
    color: var(--fx-text-lighter);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column h4 {
    margin-bottom: 0.5rem;
    color: var(--fx-dark);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-column a,
.footer-column span {
    color: var(--fx-text-lighter);
    font-size: 0.8125rem;
    transition: all var(--fx-transition);
}

.footer-column a:hover {
    color: var(--fx-blue);
    transform: translateX(3px);
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */
.footer-bottom {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--fx-border);
    color: var(--fx-text-lighter);
    font-size: 0.6875rem;
}

/* =========================================================
   ANIMATIONS (Mejoradas)
========================================================= */
@keyframes fxFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    animation: fxFadeUp 0.7s ease both;
}

.hero h1 {
    animation: fxFadeUp 0.75s 0.1s ease both;
}

.hero-content > p {
    animation: fxFadeUp 0.75s 0.2s ease both;
}

.hero-buttons {
    animation: fxFadeUp 0.75s 0.3s ease both;
}

.hero-trust {
    animation: fxFadeUp 0.75s 0.4s ease both;
}

/* =========================================================
   MEDIA QUERIES (Jerarquía mejorada y más puntos de quiebre)
========================================================= */

/* --- 1400px + (Pantallas grandes y TV) --- */
@media (min-width: 1400px) {
    :root {
        --fx-gutter: 60px;
        --fx-header-height: 96px;
    }

    .hero {
        max-height: 1000px;
    }

    .hero h1 {
        font-size: clamp(4rem, 6vw, 5.5rem);
    }

    .hero-trust > div {
        min-width: 200px;
        padding: 1.5rem 2.5rem;
    }

    .hero-trust strong {
        font-size: 2rem;
    }

    .solution-card {
        min-height: 480px;
        padding: 2.5rem;
    }

    .feature-image {
        min-height: 700px;
    }
}

/* --- 1200px (Tablet Landscape / Desktop pequeño) --- */
@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-background {
        width: 70%;
    }

    .footer-container {
        gap: 2.5rem;
    }
}

/* --- 992px (Tablet) --- */
@media (max-width: 992px) {
    :root {
        --fx-gutter: 25px;
        --fx-header-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .hero {
        min-height: 700px;
        height: auto;
    }

    .hero-content {
        min-height: 700px;
        padding-top: 3rem;
    }

    .hero-background {
        width: 100%;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.6) 100%
        );
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .about-grid,
    .supply-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        max-width: 100%;
    }

    .feature-section {
        grid-template-columns: 1fr;
    }

    .feature-image {
        height: 450px;
        min-height: 0;
    }

    .feature-content {
        padding: 4rem 2.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* --- 768px (Mobile Grande) --- */
@media (max-width: 768px) {
    :root {
        --fx-gutter: 20px;
        --fx-header-height: 68px;
    }

    .brand img {
        width: 120px;
        height: 48px;
    }

    .mobile-menu {
        top: var(--fx-header-height);
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        min-height: 650px;
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-content > p {
        font-size: 0.9375rem;
    }

    .hero-trust {
        width: 100%;
    }

    .hero-trust > div {
        flex: 1;
        min-width: 0;
        padding: 0.875rem 1rem;
        text-align: center;
    }

    .hero-trust strong {
        font-size: 1.25rem;
    }

    .hero-trust span {
        font-size: 0.5625rem;
    }

    .hero-scroll {
        display: none;
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-intro h2,
    .section-heading h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        min-height: auto;
    }

    .solution-card > p {
        min-height: auto;
    }

    .feature-image {
        height: 320px;
    }

    .feature-content {
        padding: 3rem 1.5rem;
    }

    .feature-points {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-header {
        text-align: left;
    }

    .clients-header .section-label {
        justify-content: flex-start;
    }

    .clients-header h2 {
        margin: 0;
    }

    .cta-background {
        width: 100%;
        opacity: 0.05;
    }

    .cta-content h2 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons a {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 0;
        min-height: auto;
        gap: 0.5rem;
    }
}

/* --- 480px (Mobile Pequeño) --- */
@media (max-width: 480px) {
    :root {
        --fx-gutter: 15px;
    }

    .brand img {
        width: 100px;
        height: 40px;
    }

    .hero {
        min-height: 580px;
    }

    .hero-content {
        min-height: 580px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 12vw, 2.75rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .hero-trust strong {
        font-size: 1rem;
    }

    .hero-trust span {
        font-size: 0.5rem;
    }

    .about-section,
    .solutions-section,
    .supply-section,
    .industries-section,
    .clients-section {
        padding: 4rem 0;
    }

    .about-image img {
        height: 280px;
    }

    .image-caption {
        min-width: 160px;
        padding: 1rem 1.25rem;
        font-size: 0.75rem;
    }

    .solution-card {
        padding: 1.25rem;
    }

    .feature-content h2 {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .supply-image img {
        height: 260px;
    }

    .supply-image::before {
        width: 60px;
        height: 60px;
        top: -10px;
        right: -10px;
    }

    .industry {
        min-height: 100px;
        padding: 1rem;
    }

    .industry i {
        font-size: 1.25rem;
    }

    .industry span {
        font-size: 0.6875rem;
    }

    .client-logo {
        height: 75px;
        padding: 0.75rem;
    }

    .client-logo img {
        max-width: 80px;
        max-height: 36px;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: clamp(1.75rem, 10vw, 2.75rem);
    }
}

/* =========================================================
   ACCESSIBILITY (Mejorada)
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Soporte para modo oscuro del sistema (preparado para futuro) */
@media (prefers-color-scheme: dark) {
    /* Aquí se añadirían variables para modo oscuro si se requiere */
}

/* =========================================================
   FIN DEL ARCHIVO
========================================================= */

/* =========================================================
   IMAGE CAROUSEL
   Added only for carousel functionality
========================================================= */

/* Contenedor general del carrusel */
.image-carousel {
    position: relative;
    overflow: hidden;
}


/* Cada imagen ocupa exactamente el área original */
.image-carousel .carousel-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease-in-out,
        visibility 0.8s ease-in-out;
}


/* Imagen activa */
.image-carousel .carousel-slide.active {
    opacity: 1;
    visibility: visible;
}


/* Imágenes */
.image-carousel .carousel-slide img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 20px;
    margin: 10px;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HERO
   Mantiene exactamente las dimensiones originales:
   width 60% + height 100%
========================================================= */

.hero-background.image-carousel {
    position: absolute;
    top: 0;
    right: 0;

    width: 60%;
    height: 100%;

    overflow: hidden;
}


/* =========================================================
   ABOUT IMAGE
   Mantiene los 490px originales
========================================================= */

.about-image.image-carousel {
    position: relative;

    width: 100%;
    height: 490px;

    overflow: hidden;
}


/* =========================================================
   FEATURE IMAGE
   Mantiene el mínimo original de 600px
========================================================= */

.feature-image.image-carousel {
    position: relative;

    min-height: 600px;

    overflow: hidden;
}


/* =========================================================
   SUPPLY IMAGE
   Mantiene los 470px originales
========================================================= */

.supply-image.image-carousel {
    position: relative;

    width: 100%;
    height: 470px;

    overflow: hidden;
}


/* =========================================================
   CTA BACKGROUND
   Mantiene el ancho original del 42%
========================================================= */

.cta-background.image-carousel {
    position: absolute;

    top: 0;
    right: 0;

    width: 42%;
    height: 100%;

    overflow: hidden;

    opacity: 0.12;
}


/* El carrusel dentro del CTA conserva la transparencia
   que tenía originalmente el background */
.cta-background.image-carousel .carousel-slide {
    opacity: 0;
    visibility: hidden;
}

.cta-background.image-carousel .carousel-slide.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   RESPONSIVE
   Mantener el comportamiento del CSS original
========================================================= */

@media (max-width: 900px) {

    .hero-background.image-carousel {
        width: 100%;
    }

    .about-image.image-carousel {
        height: 420px;
    }

    .supply-image.image-carousel {
        height: 420px;
    }

}


@media (max-width: 600px) {

    .hero-background.image-carousel {
        width: 100%;
    }

    .about-image.image-carousel {
        height: 350px;
    }

    .supply-image.image-carousel {
        height: 350px;
    }

}

/* =========================================================
   HOVER EFFECT PARA IMÁGENES DE CARRUSEL
   Escala la imagen al pasar el mouse
========================================================= */

.image-carousel .carousel-slide img {
    /* Transición suave para la propiedad transform */
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* Punto de origen centrado para que el escalado sea uniforme */
    transform-origin: center center;
    /* Evita que la imagen sobresalga del contenedor */
    will-change: transform;
}

/* Al pasar el mouse sobre el slide activo (o el carrusel) */
.image-carousel .carousel-slide:hover img {
    transform: scale(1.12); /* Aumenta un 12% */
}

/* Para evitar que el hover afecte slides no visibles */
.image-carousel .carousel-slide:not(.active) {
    pointer-events: none;
}

/* Zoom continuo para la imagen activa (opcional, se puede activar si se desea) */
/* Descomentar si se quiere el efecto Ken Burns automático */
/*comentari si no quieres que se haga asi, es decir automatico
.image-carousel .carousel-slide.active img {
    animation: carouselZoom 6s ease-in-out infinite alternate;
}

@keyframes carouselZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.image-carousel .carousel-slide.active:hover img {
    animation-play-state: paused;
    transform: scale(1.12);
}
*/