:root {
    --sfx-sidebar-width-expanded: 19.5vw;
    --sfx-sidebar-width-collapsed: 16.8vw;
    --sfx-sidebar-width: var(--sfx-sidebar-width-expanded);
    --sfx-section-pad-x: clamp(20px, 4vw, 56px);
    --sfx-bg: #ffffff;
    --sfx-surface: #141414;
    --sfx-surface-2: #ffffff;
    --sfx-text: #1b1b1b;
    --sfx-muted: #5b5b5b;
    --sfx-line: rgba(0, 0, 0, 0.12);
    --sfx-accent: #489c44;
    --sfx-brand: #24487f;
}

.sfx-page.is-sidebar-compact {
    --sfx-sidebar-width: var(--sfx-sidebar-width-collapsed);
}

.sfx-page,
.sfx-page body {
    margin: 0;
}

.sfx-page .topbar,
.sfx-page .header {
    display: none !important;
}

.sfx-page .hero,
.sfx-page .nosotros-hero {
    isolation: isolate;
}

.sfx-page .hero-bg,
.sfx-page .nosotros-hero-bg {
    z-index: 0 !important;
}

.sfx-page .hero-title-overlay,
.sfx-page .nosotros-hero-content,
.sfx-page .scroll-indicator {
    z-index: 2;
}

.sfx-page {
    background: var(--sfx-bg);
    color: var(--sfx-text);
    font-family: 'Montserrat', sans-serif;
}

.sfx-page p,
.sfx-page li,
.sfx-page span {
    color: #3f4b5a;
}

.sfx-page * {
    box-sizing: border-box;
}

.sfx-shell {
    display: flex;
    min-height: 100vh;
}

.sfx-sidebar {
    width: var(--sfx-sidebar-width);
    min-width: var(--sfx-sidebar-width);
    max-width: 19.5vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sfx-brand);
    backdrop-filter: none;
    border-right: 0;
    padding: 24px clamp(18px, 2.6vw, 42px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
    transition: width 0.35s ease, min-width 0.35s ease, max-width 0.35s ease, padding 0.3s ease, background-color 0.3s ease;
}

.sfx-page.is-after-hero .sfx-sidebar {
    background: #ffffff;
}

.sfx-page.is-sidebar-dark .sfx-sidebar {
    background: var(--sfx-brand);
}

.sfx-page.is-sidebar-light .sfx-sidebar {
    background: #ffffff;
}

.sfx-page.page-contacto .sfx-sidebar {
    background: #ffffff !important;
}

.sfx-page.page-contacto .contacto-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1920 / 600;
}


.sfx-logo-white {
    width: 100%;
    max-width: 320px;
    display: block;
}

.sfx-nav {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sfx-page-links {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0;
}

.sfx-page-link {
    color: var(--sfx-muted);
    text-decoration: none;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-left: 2px solid transparent;
}

.sfx-page-link:hover {
    color: var(--sfx-text);
    border-left-color: var(--sfx-accent);
}

.sfx-nav-link {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.76rem;
    padding: 9px 12px;
    border-left: 0;
    opacity: 0.9;
    line-height: 1.25;
    background: transparent;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.sfx-nav-link:hover {
    color: var(--sfx-accent);
    opacity: 1;
}

.sfx-nav-link.active {
    background: transparent;
    opacity: 0.9;
}

.sfx-page.is-after-hero .sfx-nav-link {
    color: var(--sfx-brand);
}

.sfx-page.is-sidebar-dark .sfx-nav-link,
.sfx-page.is-sidebar-dark .sfx-nav-link.active {
    color: #ffffff;
}

.sfx-page.is-sidebar-light .sfx-nav-link,
.sfx-page.is-sidebar-light .sfx-nav-link.active {
    color: var(--sfx-brand);
}


.sfx-page.is-after-hero .sfx-nav-link:hover {
    color: var(--sfx-accent);
    opacity: 1;
}

.sfx-page.is-after-hero .sfx-nav-link.active {
    background: transparent;
    color: var(--sfx-brand);
}

/* Keep active nav text visible when sidebar is dark (e.g. blue sections). */
.sfx-page.is-sidebar-dark .sfx-nav-link.active {
    color: #ffffff !important;
}

.sfx-socials {
    margin-top: auto;
    padding-top: 10px;
    border-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sfx-socials a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.sfx-socials a:hover {
    color: #ffffff;
    opacity: 1;
}

.sfx-page.is-after-hero .sfx-socials a,
.sfx-page.is-after-hero .sfx-socials a:hover {
    color: var(--sfx-brand);
}

.sfx-page.is-sidebar-dark .sfx-socials a,
.sfx-page.is-sidebar-dark .sfx-socials a:hover {
    color: #ffffff;
}

.sfx-page.is-sidebar-light .sfx-socials a,
.sfx-page.is-sidebar-light .sfx-socials a:hover {
    color: var(--sfx-brand);
}


.sfx-main-canvas {
    margin-left: var(--sfx-sidebar-width);
    width: calc(100% - var(--sfx-sidebar-width));
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff;
    transition: margin-left 0.35s ease, width 0.35s ease;
}

.sfx-page.page-index .sfx-main-canvas {
    scroll-snap-type: y proximity;
}

.sfx-page.sfx-legacy-page .sfx-main-canvas {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.sfx-section {
    min-height: 100vh;
    padding: 0 var(--sfx-section-pad-x);
    border-bottom: 1px solid var(--sfx-line);
    display: flex;
    align-items: center;
    position: relative;
    background: #ffffff;
    color: #1b1b1b;
}

.sfx-page.page-index .sfx-section {
    scroll-snap-align: start;
}

.sfx-section.sfx-theme-white {
    background: #ffffff;
    color: #1b1b1b;
}

.sfx-section.sfx-theme-blue {
    background: var(--sfx-brand);
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sfx-section.sfx-theme-blue .sfx-section-content h2,
.sfx-section.sfx-theme-blue .sfx-card h3,
.sfx-section.sfx-theme-blue .sfx-contact-info h2,
.sfx-section.sfx-theme-blue .sfx-values-block h2 {
    color: #ffffff;
}

.sfx-page.page-index .sfx-section.sfx-theme-blue h1,
.sfx-page.page-index .sfx-section.sfx-theme-blue h2,
.sfx-page.page-index .sfx-section.sfx-theme-blue h3,
.sfx-page.page-index .sfx-section.sfx-theme-blue h4,
.sfx-page.page-index .sfx-section.sfx-theme-blue .sfx-section-content h2,
.sfx-page.page-index .sfx-section.sfx-theme-blue .sfx-servicios-premium h2,
.sfx-page.page-index .sfx-section.sfx-theme-blue .sfx-propuesta-content h2,
.sfx-page.page-index .sfx-section.sfx-theme-blue .sfx-service-item h3,
.sfx-page.page-index .sfx-section.sfx-theme-blue .sfx-card h3 {
    color: #ffffff !important;
}

.sfx-section.sfx-theme-blue p,
.sfx-section.sfx-theme-blue li,
.sfx-section.sfx-theme-blue span,
.sfx-section.sfx-theme-blue .sfx-intro,
.sfx-section.sfx-theme-blue .sfx-servicios-lead,
.sfx-section.sfx-theme-blue .sfx-contact-info a {
    color: rgba(255, 255, 255, 0.92);
}

.sfx-section.sfx-theme-blue .sfx-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.24);
}

.sfx-section.sfx-theme-blue .sfx-propuesta-icon,
.sfx-section.sfx-theme-blue .sfx-value-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.sfx-section.sfx-theme-blue .sfx-propuesta-icon svg [stroke],
.sfx-section.sfx-theme-blue .sfx-value-icon svg [stroke] {
    stroke: #ffffff;
}

.sfx-section.sfx-theme-blue .sfx-contact-form input,
.sfx-section.sfx-theme-blue .sfx-contact-form textarea {
    background: #ffffff;
    color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.35);
}

.sfx-section.sfx-theme-blue .sfx-contact-form input::placeholder,
.sfx-section.sfx-theme-blue .sfx-contact-form textarea::placeholder {
    color: #6b7280;
}


.sfx-section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sfx-section-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 2.8vw, 2.8rem);
    color: var(--sfx-brand);
    text-transform: uppercase;
    line-height: 1.1;
}

.sfx-intro {
    max-width: 820px;
    color: #3f4b5a;
    line-height: 1.7;
}

.sfx-propuesta {
    background: #ffffff;
}

.sfx-propuesta-content {
    max-width: 1160px;
}

.sfx-propuesta-content h2 {
    text-align: center;
    text-transform: none;
    color: #264d86;
    font-size: clamp(2rem, 3vw, 3.15rem);
    letter-spacing: 0.01em;
    margin-bottom: 28px;
}

.sfx-propuesta-content h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--sfx-accent);
    margin: 16px auto 0;
}

.sfx-propuesta-content .sfx-intro {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #4d5868;
}

.inge-intro-justify {
    text-align: justify !important;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    line-height: 1.8;
}

.sfx-propuesta .sfx-grid-3 {
    margin-top: 34px;
    gap: 28px;
}

.sfx-propuesta .sfx-card {
    background: transparent;
    border: 0;
    padding: 12px 12px 8px;
    text-align: left;
    display: grid;
    justify-items: center;
    align-content: start;
    grid-template-rows: auto auto 1fr;
}

.sfx-propuesta-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dfe4ec;
    color: var(--sfx-accent);
    margin-bottom: 22px;
}

.sfx-propuesta-icon svg [stroke] {
    stroke: var(--sfx-accent);
}

.sfx-propuesta-icon svg {
    width: 30px;
    height: 30px;
}

.sfx-propuesta-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sfx-propuesta .sfx-card h3 {
    color: #264d86;
    font-size: clamp(1.25rem, 1.65vw, 1.7rem);
    white-space: nowrap;
    margin-bottom: 16px;
    text-align: center;
}

.sfx-propuesta .sfx-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
    text-align: left;
    min-height: 5.2em;
}

.sfx-hero {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    border-bottom: 0;
}

.sfx-content-hero {
    padding: 0 var(--sfx-section-pad-x);
}

.sfx-hero-media,
.sfx-hero-media video,
.sfx-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sfx-hero-media video,
.sfx-hero-media img {
    object-fit: cover;
}

.sfx-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.06) 100%);
}

.sfx-hero .sfx-media-overlay {
    display: none;
}

.sfx-content-hero {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sfx-kicker {
    margin: 0 0 12px;
    color: var(--sfx-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.sfx-content-hero h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(1.8rem, 4.6vw, 4.2rem);
    line-height: 1.24;
    white-space: pre-line;
    text-transform: uppercase;
    color: #ffffff;
}

.sfx-content-hero p {
    margin: 12px 0 0;
    max-width: 700px;
    font-size: 1rem;
    color: #f0f0f0;
}

.sfx-stats-hero {
    position: absolute;
    left: var(--sfx-section-pad-x);
    bottom: clamp(62px, 12vh, 98px);
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin-top: 0;
}

.sfx-stats-hero div {
    background: transparent;
    border: 0;
    backdrop-filter: none;
    padding: 0;
    justify-items: start;
    text-align: left;
    min-width: auto;
}

.sfx-stats-hero div + div {
    margin-left: 0;
}

.sfx-stats.sfx-stats-hero strong,
.sfx-stats.sfx-stats-hero span {
    color: #ffffff;
}

.sfx-stats-hero span {
    opacity: 0.95;
}

.sfx-type-target {
    position: relative;
}

.sfx-type-target.is-typing::after,
.sfx-type-target.is-typed::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.05em;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.95);
    vertical-align: -0.08em;
    animation: sfx-caret-blink 0.9s steps(1, end) infinite;
}

@keyframes sfx-caret-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sfx-type-target.is-typing::after,
    .sfx-type-target.is-typed::after {
        animation: none;
    }
}

.sfx-grid-3 {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sfx-card {
    padding: 22px;
    border: 1px solid var(--sfx-line);
    background: #ffffff;
}

.sfx-card h3 {
    margin: 0 0 10px;
    color: var(--sfx-brand);
    text-transform: uppercase;
    font-size: 1.05rem;
}

.sfx-card p {
    margin: 0;
    color: #3f4b5a;
    line-height: 1.6;
}

.sfx-sectores-home .sfx-card p {
    margin-bottom: 14px;
}

.sfx-sectores-home {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(36, 72, 127, 0.1), transparent 62%),
        radial-gradient(760px 360px at 8% 108%, rgba(72, 156, 68, 0.12), transparent 64%),
        #f7f9fc;
}

.sfx-sectores-home::before,
.sfx-sectores-home::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 0;
}

.sfx-sectores-home::before {
    width: 220px;
    height: 220px;
    right: -90px;
    top: 14%;
    border: 1px solid rgba(36, 72, 127, 0.14);
}

.sfx-sectores-home::after {
    width: 170px;
    height: 170px;
    left: -75px;
    bottom: 10%;
    border: 1px solid rgba(72, 156, 68, 0.18);
}

.sfx-sectores-home .sfx-section-content {
    position: relative;
    z-index: 1;
}

.sfx-sectores-home .sfx-grid-3 {
    gap: 24px;
}

.sfx-sectores-home .sfx-card {
    position: relative;
    border: 1px solid rgba(36, 72, 127, 0.14);
    border-top: 3px solid rgba(72, 156, 68, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 33, 60, 0.08);
    padding: 24px 22px 20px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sfx-sectores-home .sfx-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(72, 156, 68, 0.08), transparent 45%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sfx-sectores-home .sfx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(17, 33, 60, 0.14);
    border-color: rgba(36, 72, 127, 0.28);
}

.sfx-sectores-home .sfx-card:hover::before {
    opacity: 1;
}

.sfx-sectores-home .sfx-card h3 {
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.sfx-sector-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--sfx-brand);
    background: linear-gradient(145deg, rgba(36, 72, 127, 0.14), rgba(72, 156, 68, 0.16));
    border: 1px solid rgba(36, 72, 127, 0.18);
}

.sfx-sector-icon svg {
    width: 28px;
    height: 28px;
}

.sfx-sector-icon-industrial {
    background: linear-gradient(145deg, rgba(36, 72, 127, 0.18), rgba(36, 72, 127, 0.08));
}

.sfx-sector-icon-publico {
    background: linear-gradient(145deg, rgba(72, 156, 68, 0.2), rgba(36, 72, 127, 0.1));
}

.sfx-sectores-home .sfx-card a {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sfx-sectores-home .sfx-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sfx-brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.sfx-sectores-home .sfx-card a::after {
    content: "->";
    font-size: .85em;
}

.sfx-sectores-home .sfx-card a:hover {
    color: #1f3f75;
    border-bottom-color: currentColor;
}

.sfx-services {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.sfx-service-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: stretch;
    border: 1px solid var(--sfx-line);
    background: #ffffff;
}

.sfx-service-item img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.sfx-service-item > div {
    padding: 18px;
}

.sfx-service-item h3 {
    margin: 0 0 8px;
    color: var(--sfx-brand);
    text-transform: uppercase;
}

.sfx-service-item p {
    margin: 0 0 12px;
    color: #3f4b5a;
}

.sfx-service-item a {
    text-decoration: none;
    color: #fff;
    background: var(--sfx-accent);
    border: 1px solid var(--sfx-accent);
    padding: 10px 14px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.sfx-service-item a:hover {
    background: transparent;
}

.sfx-servicios-premium {
    background: #ffffff;
    border-bottom: 1px solid var(--sfx-line);
}

.sfx-servicios-content {
    max-width: 1260px;
}

.sfx-servicios-premium h2,
.sfx-servicios-premium .sfx-section-content h2 {
    color: var(--sfx-brand);
    margin-bottom: 8px;
    text-align: center;
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.sfx-servicios-lead {
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    color: #3f4b5a;
    line-height: 1.45;
    font-size: 1.05rem;
}

.sfx-servicios-premium .sfx-services {
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sfx-servicios-premium .sfx-service-item {
    position: relative;
    display: block;
    min-height: 320px;
    border: 0;
    background: #111827;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease;
}

.sfx-servicios-premium .sfx-service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 17, 27, 0.14) 36%, rgba(12, 17, 27, 0.88) 100%);
    z-index: 1;
}

.sfx-servicios-premium .sfx-service-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sfx-servicios-premium .sfx-service-item > div {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 22px;
}

.sfx-servicios-premium .sfx-service-item h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    letter-spacing: 0.01em;
    font-weight: 700;
}

.sfx-servicios-premium .sfx-services .sfx-service-item h3 {
    color: #ffffff;
}

.sfx-servicios-premium .sfx-services .sfx-service-item .sfx-service-title {
    color: #ffffff !important;
}

.sfx-servicios-premium .sfx-service-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    line-height: 1.45;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.sfx-servicios-premium .sfx-service-item a {
    margin-top: 0;
    align-self: flex-start;
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    padding: 8px 14px;
    font-size: 0.68rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.sfx-servicios-premium .sfx-service-item a:hover {
    background: var(--sfx-accent);
    border-color: var(--sfx-accent);
    color: #ffffff;
}

.sfx-servicios-premium .sfx-service-item:hover {
    transform: translateY(-5px);
}

.sfx-servicios-premium .sfx-service-item:hover img {
    transform: scale(1.06);
}

.sfx-servicios-premium .sfx-service-item:hover p,
.sfx-servicios-premium .sfx-service-item:focus-within p {
    max-height: 120px;
    opacity: 1;
}

.sfx-servicios-premium .sfx-service-item:hover a,
.sfx-servicios-premium .sfx-service-item:focus-within a {
    max-height: 48px;
    opacity: 1;
    margin-top: 6px;
}

.sfx-experience-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
    align-items: stretch;
}

.sfx-collage {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 420px;
}

.sfx-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--sfx-line);
}

.sfx-collage-main {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.sfx-collage-top {
    grid-column: 2;
    grid-row: 1;
}

.sfx-collage-bottom {
    grid-column: 2;
    grid-row: 2;
}

.sfx-experience-info {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 12px;
}

.sfx-experience-info p {
    margin: 0;
    max-width: 48ch;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sfx-stats {
    margin-top: 6px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sfx-stats div {
    border: 0;
    padding: 12px 10px;
    background: transparent;
    display: grid;
    gap: 2px;
    justify-items: center;
}

.sfx-stats strong {
    display: block;
    color: var(--sfx-accent);
    font-size: 1.5rem;
    line-height: 1;
}

.sfx-stats span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.66rem;
    color: #3f4b5a;
}

/* Keep hero metrics tightly grouped and anchored to the left. */
.sfx-stats.sfx-stats-hero {
    position: absolute;
    left: var(--sfx-section-pad-x);
    bottom: clamp(62px, 12vh, 98px);
    width: auto;
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
}

.sfx-stats.sfx-stats-hero > div {
    display: grid;
    gap: 2px;
    padding: 0;
    margin: 0;
    justify-items: start;
    text-align: left;
    background: transparent;
    border: 0;
    min-width: 96px;
}

.sfx-stats.sfx-stats-hero > div > span {
    white-space: nowrap;
}

.sfx-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sfx-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 1px solid var(--sfx-line);
}

.sfx-client-grid {
    margin-top: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    display: grid;
    gap: 0;
}

.sfx-client-logos-title {
    text-align: center;
    margin-top: -14px;
    margin-bottom: 12px;
}

#clientes-valores {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(620px 320px at 14% 12%, rgba(255, 255, 255, 0.12), transparent 70%),
        radial-gradient(680px 340px at 90% 78%, rgba(72, 156, 68, 0.16), transparent 72%),
        linear-gradient(180deg, #294f8b 0%, #24487f 100%);
}

#clientes-valores::before,
#clientes-valores::after {
    content: none;
}

#clientes-valores .sfx-section-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

#clientes-valores .sfx-client-logos-title {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

#clientes-valores .sfx-client-logos-title::after {
    content: '';
    display: block;
    width: 112px;
    height: 4px;
    border-radius: 999px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(72, 156, 68, 0.95));
}

.sfx-client-bottom {
    margin-top: 0;
}

.sfx-client-strip {
    margin-top: 0;
    padding: 14px 0;
    background: #ffffff;
    border-radius: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#clientes-valores.sfx-theme-blue .sfx-client-strip {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(11, 24, 46, 0.22);
    padding: 18px 0;
}

#clientes-valores.sfx-theme-blue .sfx-client-track img {
    background: transparent;
    border: 0;
    border-radius: 10px;
}

#clientes-valores.sfx-theme-blue .sfx-values-block {
    margin-top: 36px;
}

#clientes-valores .sfx-values-block h2 {
    font-size: clamp(1.8rem, 3.1vw, 3rem);
    margin-top: 8px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

#clientes-valores .sfx-values-grid {
    margin-top: 32px;
    gap: 26px;
}

#clientes-valores .sfx-value-item {
    width: 100%;
    max-width: 180px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 18px 12px 14px;
    backdrop-filter: blur(2px);
}

#clientes-valores .sfx-value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(72, 156, 68, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

#clientes-valores .sfx-value-item h3 {
    color: #ffffff;
    font-size: 0.88rem;
    letter-spacing: 0.035em;
}

.sfx-client-strip .sfx-client-grid {
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--sfx-section-pad-x);
}

.sfx-client-marquee-row {
    overflow: hidden;
}

.sfx-client-top {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: stretch;
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
}

.sfx-client-gif-wrap {
    min-height: 0;
    display: grid;
    place-items: center;
}

.sfx-client-gif {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    display: block;
}

.sfx-client-info {
    padding: 0;
    display: grid;
    align-content: center;
    gap: 14px;
}

.sfx-client-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.sfx-client-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    font-size: clamp(0.96rem, 1.18vw, 1.45rem);
    max-width: 38ch;
}

.sfx-client-marquee {
    display: flex;
    width: max-content;
    animation: sfx-client-marquee 38s linear infinite;
}

.sfx-client-marquee-row.is-reverse .sfx-client-marquee {
    animation-name: sfx-client-marquee-reverse;
}

.sfx-client-track {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
}

.sfx-client-track img {
    width: clamp(140px, 11vw, 210px);
    height: 88px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 8px;
    flex: 0 0 auto;
}

@media (min-width: 1025px) {
    #clientes {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        align-items: stretch;
    }

    #clientes .sfx-section-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        gap: 0;
        padding-bottom: 0;
    }

    .sfx-client-top {
        flex: 1 1 auto;
        min-height: 0;
        gap: 24px;
        padding: 0;
        align-items: center;
    }

    .sfx-client-gif,
    .sfx-client-gif-wrap {
        height: clamp(460px, 64vh, 760px);
        max-height: 64vh;
    }

    .sfx-client-info h3 {
        font-size: clamp(1.05rem, 1.65vw, 1.55rem);
    }

    .sfx-client-info p {
        font-size: clamp(0.88rem, 1.03vw, 1.06rem);
        line-height: 1.38;
        max-width: 40ch;
    }

    .sfx-client-bottom {
        margin-top: auto;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .sfx-client-logos-title {
        margin-top: 0;
        margin-bottom: 4px;
        line-height: 1.05;
    }

    .sfx-client-strip {
        margin-top: 0;
        margin-bottom: 0;
        padding: 12px 0;
    }

    .sfx-client-track img {
        width: clamp(130px, 10vw, 190px);
        height: 82px;
    }
}

@keyframes sfx-client-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 15px));
    }
}

@keyframes sfx-client-marquee-reverse {
    from {
        transform: translateX(calc(-50% - 15px));
    }
    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfx-client-marquee {
        animation: none;
        width: 100%;
        display: grid;
        gap: 12px;
    }

    .sfx-client-track {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding-right: 0;
    }

    .sfx-client-track[aria-hidden='true'] {
        display: none;
    }

    .sfx-client-marquee-row.is-reverse .sfx-client-marquee {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .sfx-client-top {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .sfx-client-gif,
    .sfx-client-gif-wrap {
        min-height: 390px;
    }
}

.sfx-team-image {
    width: 100%;
    height: clamp(420px, 74vh, 860px);
    object-fit: cover;
    border: 0;
    box-shadow: none;
}

#equipo {
    padding-left: 0;
    padding-right: 0;
}

#equipo .sfx-section-content {
    max-width: none;
    margin: 0;
}

#equipo .sfx-section-content h2 {
    padding: 0 var(--sfx-section-pad-x);
    text-align: center;
}

.sfx-grid-5 {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.sfx-grid-5 .sfx-card h3 {
    margin: 0;
    color: #111111;
    text-align: center;
}

.sfx-contact-wrap {
    display: grid;
    gap: 22px;
}

#contacto {
    background: url('../assets/co.png') center / cover no-repeat;
}

.sfx-values-block h2 {
    text-align: center;
    margin-top: 26px;
    margin-bottom: 0;
}

.sfx-values-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    justify-items: center;
    align-items: center;
}

.sfx-value-item {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.sfx-value-item h3 {
    margin: 0;
    color: var(--sfx-brand);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.sfx-value-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbe2eb;
    border: 0;
    color: #4da74a;
    box-shadow: none;
}

.sfx-value-icon svg {
    width: 30px;
    height: 30px;
}

.sfx-contact-wrap .sfx-contact-layout {
    margin-top: 4px;
}

.sfx-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sfx-contact-info {
    display: grid;
    gap: 12px;
    align-content: start;
    background: var(--sfx-surface-2);
    border: 1px solid var(--sfx-line);
    padding: 24px;
}

.sfx-contact-info h2 {
    margin-bottom: 4px;
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    line-height: 1.08;
}

.sfx-contact-info p,
.sfx-contact-info a {
    margin: 0;
    color: var(--sfx-brand);
    text-decoration: none;
    line-height: 1.65;
}

.sfx-contact-info p {
    font-size: 0.78rem;
    max-width: 52ch;
}

.sfx-contact-info a {
    font-size: 0.66rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sfx-contact-info a[href^="tel:"]::before,
.sfx-contact-info a[href^="mailto:"]::before {
    color: var(--sfx-accent);
    font-size: 0.95em;
    line-height: 1;
}

.sfx-contact-info a[href^="tel:"]::before {
    content: "☎";
}

.sfx-contact-info a[href^="mailto:"]::before {
    content: "✉";
}

.sfx-contact-info a:hover {
    color: var(--sfx-accent);
}

.sfx-contact-form {
    display: grid;
    gap: 12px;
    border: 1px solid var(--sfx-line);
    background: var(--sfx-surface-2);
    padding: 22px;
}

.sfx-contact-form input,
.sfx-contact-form textarea {
    width: 100%;
    border: 1px solid var(--sfx-line);
    background: #ffffff;
    color: var(--sfx-text);
    padding: 11px;
    font-family: inherit;
}

.sfx-contact-form input::placeholder,
.sfx-contact-form textarea::placeholder {
    color: var(--sfx-muted);
}

.sfx-contact-form label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--sfx-muted);
    font-size: 0.88rem;
}

.sfx-contact-form button {
    border: 1px solid var(--sfx-accent);
    background: var(--sfx-accent);
    color: #fff;
    padding: 11px 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.sfx-contact-form button:hover {
    background: transparent;
}

.sfx-section.sfx-theme-blue .sfx-contact-info,
.sfx-section.sfx-theme-blue .sfx-contact-form {
    background: rgba(24, 66, 122, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.sfx-section.sfx-theme-blue .sfx-contact-info h2,
.sfx-section.sfx-theme-blue .sfx-contact-info p,
.sfx-section.sfx-theme-blue .sfx-contact-info a {
    color: #ffffff;
}

.sfx-section.sfx-theme-blue .sfx-contact-info a[href^="tel:"]::before,
.sfx-section.sfx-theme-blue .sfx-contact-info a[href^="mailto:"]::before {
    color: #ffffff;
}

.sfx-section.sfx-theme-blue .sfx-contact-form input,
.sfx-section.sfx-theme-blue .sfx-contact-form textarea {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.sfx-section.sfx-theme-blue .sfx-contact-form input::placeholder,
.sfx-section.sfx-theme-blue .sfx-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.sfx-section.sfx-theme-blue .sfx-contact-form button {
    background: var(--sfx-accent);
    border-color: var(--sfx-accent);
    color: #ffffff;
}
.sfx-social-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sfx-social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sfx-footer {
    min-height: auto;
    padding: 28px var(--sfx-section-pad-x);
    display: grid;
    gap: 14px;
    background: #ffffff;
    border-top: 2px solid var(--sfx-accent);
}

.sfx-footer img {
    width: 130px;
}

.sfx-footer p {
    margin: 0;
    color: var(--sfx-brand);
}

.sfx-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sfx-footer-links a {
    color: var(--sfx-brand);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.sfx-footer-links a:hover {
    color: var(--sfx-accent);
    border-bottom-color: var(--sfx-accent);
}

@media (max-width: 1200px) {
    .sfx-experience-layout {
        grid-template-columns: 1fr;
    }

    .sfx-collage {
        min-height: 360px;
    }

    .sfx-grid-3,
    .sfx-gallery,
    .sfx-client-grid,
    .sfx-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfx-propuesta .sfx-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfx-servicios-premium .sfx-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #clientes-valores .sfx-client-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sfx-shell {
        display: block;
    }

    .sfx-sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        background: var(--sfx-brand);
        backdrop-filter: none;
        border-right: 0;
        border-bottom: 0;
        margin-left: 0;
    }

    .sfx-main-canvas {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .sfx-section {
        padding: 0 var(--sfx-section-pad-x);
    }

    .sfx-content-hero {
        padding: 0 var(--sfx-section-pad-x);
    }

    .sfx-footer {
        padding: 28px var(--sfx-section-pad-x);
    }

    .sfx-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 12px;
    }

    .sfx-socials {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .sfx-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .sfx-collage {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: auto;
    }

    .sfx-collage-main,
    .sfx-collage-top,
    .sfx-collage-bottom {
        grid-column: auto;
        grid-row: auto;
        height: 220px;
    }

    .sfx-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfx-service-item {
        grid-template-columns: 1fr;
    }

    .sfx-grid-3,
    .sfx-gallery,
    .sfx-client-grid,
    .sfx-grid-5,
    .sfx-stats {
        grid-template-columns: 1fr;
    }

    .sfx-values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .sfx-value-item h3 {
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    .sfx-values-block h2 {
        margin-top: 18px;
    }

    .sfx-stats-hero {
        position: static;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 14px;
    }

    .sfx-socials {
        gap: 10px;
    }

    .sfx-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .sfx-propuesta-content h2 {
        margin-bottom: 22px;
    }

    .sfx-propuesta-content .sfx-intro {
        font-size: 1rem;
    }

    .sfx-propuesta-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .sfx-propuesta .sfx-card h3 {
        font-size: 1.95rem;
    }

    .sfx-servicios-premium .sfx-services {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sfx-servicios-premium .sfx-service-item {
        min-height: 360px;
    }

    .sfx-servicios-premium .sfx-service-item > div {
        padding: 22px;
    }

    .sfx-team-image {
        height: clamp(300px, 52vh, 500px);
    }

    .sfx-servicios-premium .sfx-service-item p,
    .sfx-servicios-premium .sfx-service-item a {
        max-height: none;
        opacity: 1;
    }

    .sfx-contact-wrap {
        gap: 20px;
    }
}

