/* ============================================
   MB ARCH Theme – All Visual Effects
   ============================================ */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Outfit", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --color-primary: #E8ECF0;
    --color-secondary: #ffffff;
    --color-card: #FDF8F0;
    --color-glass: rgba(0, 0, 0, 0.03);
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #6b7280;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-accent: #006B68;
    --color-accent-hover: #005552;
    --color-accent-text: #1A1A1A;
    --color-bg-grid: rgba(0, 0, 0, 0.03);
}

/* ----- Full-bleed sections — remove wrapper constraints ----- */
.site-main,
.page-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ----- Base ----- */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ----- Scrollbars ----- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ----- Focus ----- */
:focus-visible {
    outline: 2px solid var(--color-text-primary) !important;
    outline-offset: 2px !important;
}

/* ----- Selection ----- */
::selection {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

/* ----- Accent Gradient Text ----- */
.accent-gradient {
    background: linear-gradient(90deg, #006B68 0%, #008A85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Background Grid ----- */
.bg-grid {
    background-image: radial-gradient(var(--color-bg-grid) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ----- Background Mesh ----- */
.bg-mesh {
    position: relative;
    background-color: var(--color-primary);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 163, 159, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 107, 104, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0, 0, 0, 0.03) 0px, transparent 50%),
        radial-gradient(var(--color-bg-grid) 1px, transparent 1px);
    background-size: auto, auto, auto, 30px 30px;
}

/* ----- Glass Card ----- */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ----- Liquid Glass Card ----- */
.liquid-glass-card {
    position: relative;
    background: var(--color-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 70%,
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    pointer-events: none;
    z-index: 2;
}
.liquid-glass-card:hover::before { left: 150%; }
.liquid-glass-card::after {
    content: "";
    position: absolute;
    top: -20%; right: -20%;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(0, 107, 104, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}
.liquid-glass-card:hover::after {
    width: 140px; height: 140px;
    top: -10%; right: -10%;
    background: radial-gradient(circle, rgba(0, 107, 104, 0.25) 0%, transparent 70%);
}
.liquid-glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--color-accent);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.12), 0 0 20px 0 rgba(0, 107, 104, 0.08);
}

/* ----- Floating Blobs ----- */
@keyframes float-slow {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob-slow {
    animation: float-slow 15s infinite ease-in-out;
}
.animate-blob-slow-reverse {
    animation: float-slow 18s infinite ease-in-out reverse;
}

@keyframes soft-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}
.animate-pulse-soft {
    animation: soft-pulse 4s infinite ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slideDown {
    animation: slideDown 0.35s ease-out forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* ----- Scroll Reveal ----- */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade   { transform: translateY(0); }
.reveal-up     { transform: translateY(20px); }
.reveal-down   { transform: translateY(-20px); }
.reveal-left   { transform: translateX(-20px); }
.reveal-right  { transform: translateX(20px); }
.reveal-scale  { transform: scale(0.96); }
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }
.delay-800 { transition-delay: 800ms !important; }
.duration-1200 { transition-duration: 1200ms !important; }

/* ----- Hero Slider ----- */
.mbarch-hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    /* Break out of .site-main max-width container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.mbarch-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}
.mbarch-hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.mbarch-hero-slide .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25);
}
.mbarch-hero-slide .slide-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-bg-grid) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}
.mbarch-hero-slide .slide-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mbarch-hero-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mbarch-hero-arrow:hover {
    color: var(--color-accent);
    background: rgba(255,255,255,0.15);
    border-color: var(--color-accent);
}
.mbarch-hero-arrow.prev { left: 24px; }
.mbarch-hero-arrow.next { right: 24px; }
.mbarch-hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.mbarch-hero-dot {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
}
.mbarch-hero-dot.active {
    width: 32px;
    background: var(--color-accent);
}

/* ----- Client Logo Marquee ----- */
.logo-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.logo-marquee::before,
.logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-secondary, #fff), transparent);
}
.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-secondary, #fff), transparent);
}
.logo-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 4rem;
    animation: scroll-logos 30s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----- Portfolio Card Hover ----- */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-card, #fff);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-item img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ================================================================
   WORKFLOW SECTION — matches React design (DisenoArquitectonico)
   ================================================================ */

/* ----- Section Layout ----- */
.mbarch-workflow-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem;
    background: #1A1A1A;
}
.mbarch-wf-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* ----- Ambient Blobs ----- */
.mbarch-wf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.mbarch-wf-blob-1 {
    top: 25%;
    left: 5%;
    width: 320px;
    height: 320px;
    background: rgba(0, 107, 104, 0.05);
    animation: mbarch-blob-slow 15s ease-in-out infinite alternate;
}
.mbarch-wf-blob-2 {
    bottom: 25%;
    right: 5%;
    width: 384px;
    height: 384px;
    background: rgba(0, 107, 104, 0.05);
    animation: mbarch-blob-slow-rev 18s ease-in-out infinite alternate;
}
@keyframes mbarch-blob-slow {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.05); }
    100% { transform: translate(-10px, 20px) scale(0.98); }
}
@keyframes mbarch-blob-slow-rev {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-20px, 30px) scale(1.08); }
    100% { transform: translate(15px, -15px) scale(0.95); }
}

/* ----- Header ----- */
.mbarch-wf-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 5rem;
}
.mbarch-wf-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}
.mbarch-wf-title span {
    color: #fff;
}
.mbarch-wf-title .accent-gradient {
    background: linear-gradient(90deg, var(--color-accent, #006B68), #008A85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mbarch-wf-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

/* ----- Grid ----- */
.mbarch-wf-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* ----- Left Column ----- */
.mbarch-wf-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mbarch-wf-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding-left: 0.5rem;
    margin-bottom: 1rem;
}
.mbarch-wf-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ----- Workflow Menu Items ----- */
.workflow-menu-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.workflow-menu-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
/* Sheen sweep (::before) */
.workflow-menu-item::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.06) 70%,
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.65s ease;
    pointer-events: none;
    z-index: 0;
}
/* Glow orb (::after) */
.workflow-menu-item::after {
    content: "";
    position: absolute;
    top: -20%; right: -20%;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.workflow-menu-item:hover::before { left: 150%; }
.workflow-menu-item:hover::after {
    width: 100px; height: 100px;
    top: -10%; right: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}

/* Accent gradient bar (left edge) */
.mbarch-wf-item-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent, #006B68), #008A85);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 2px 2px 0;
    z-index: 1;
}
.mbarch-wf-item-active .mbarch-wf-item-bar {
    opacity: 1;
}

/* Number */
.mbarch-wf-item-num {
    position: relative;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 2.5rem;
}
.workflow-menu-item:hover .mbarch-wf-item-num {
    color: rgba(255, 255, 255, 0.5);
}
.mbarch-wf-item-active .mbarch-wf-item-num {
    color: var(--color-accent, #006B68);
    transform: scale(1.05);
}

/* Title */
.mbarch-wf-item-title {
    position: relative;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}
.workflow-menu-item:hover .mbarch-wf-item-title {
    color: rgba(255, 255, 255, 0.8);
}
.mbarch-wf-item-active .mbarch-wf-item-title {
    color: #fff;
}

/* Active state */
.mbarch-wf-item-active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1), 0 0 16px 0 rgba(0, 107, 104, 0.04);
}

/* ----- Workflow Detail Card ----- */
.workflow-detail-card {
    position: relative;
    overflow: hidden;
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(39, 39, 42, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease;
}
/* Sheen sweep (::before) */
.workflow-detail-card::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.06) 70%,
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 0;
}
/* Glow orb (::after) */
.workflow-detail-card::after {
    content: "";
    position: absolute;
    top: -20%; right: -20%;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.workflow-detail-card:hover::before { left: 150%; }
.workflow-detail-card:hover::after {
    width: 140px; height: 140px;
    top: -10%; right: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}
.workflow-detail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.08), 0 0 20px 0 rgba(37, 99, 235, 0.05);
}

/* Detail card inner layout */
.mbarch-wf-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}
.mbarch-wf-card-watermark {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: 12rem;
    font-weight: 800;
    color: rgba(0, 107, 104, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: all 0.5s ease;
    z-index: 1;
}
.mbarch-wf-card-glow {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    background: rgba(0, 107, 104, 0.03);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.mbarch-wf-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}
.mbarch-wf-card-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent, #006B68);
}
.mbarch-wf-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 0.75rem;
    transition: all 0.3s ease;
}
.mbarch-wf-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.625;
    margin: 0 0 2rem;
    max-width: 36rem;
    transition: all 0.3s ease;
}

/* Bottom visualizer */
.mbarch-wf-card-bottom {
    border-top: 1px solid rgba(39, 39, 42, 0.6);
    padding-top: 1.5rem;
    margin-top: 1rem;
}
.mbarch-wf-card-bottom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.mbarch-wf-card-bottom-header span:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mbarch-wf-card-active-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent, #006B68);
    background: rgba(0, 107, 104, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 107, 104, 0.2);
}

/* Progress bars */
.mbarch-wf-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 48px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(24, 24, 27, 1);
}
.mbarch-wf-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mbarch-wf-bar-active {
    background: linear-gradient(0deg, var(--color-accent, #006B68), #008A85);
}
.mbarch-wf-bar-inactive {
    background: #27272a;
}

/* ----- CTA Button ----- */
.mbarch-wf-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.mbarch-wf-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #22c55e;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1), 0 4px 6px -4px rgba(34, 197, 94, 0.1);
}
.mbarch-wf-cta-btn:hover {
    background: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2), 0 4px 6px -4px rgba(34, 197, 94, 0.2);
}

/* ----- Responsive ----- */
@media (min-width: 768px) {
    .mbarch-wf-item-num {
        font-size: 1.875rem;
    }
    .mbarch-wf-card-title {
        font-size: 2.25rem;
    }
    .mbarch-wf-card-desc {
        font-size: 1rem;
    }
    .mbarch-wf-card {
        padding: 2.5rem;
    }
    .mbarch-wf-card-watermark {
        font-size: 18rem;
    }
}
@media (max-width: 1024px) {
    .mbarch-wf-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .mbarch-wf-card-watermark {
        font-size: 8rem;
    }
}
@media (min-width: 1024px) {
    .mbarch-wf-card {
        padding: 3rem;
    }
}
@media (max-width: 640px) {
    .mbarch-workflow-section {
        padding: 4rem 1rem;
    }
    .mbarch-wf-title {
        font-size: 1.75rem;
    }
    .workflow-menu-item {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
    .mbarch-wf-item-num {
        font-size: 1.25rem;
    }
    .mbarch-wf-card-title {
        font-size: 1.25rem;
    }
    .mbarch-wf-card-watermark {
        font-size: 6rem;
    }
}

/* ----- Consultoria Page Overrides ----- */
.page-consultoria {
    --color-accent: #FFD305;
    --color-accent-hover: #E5BE04;
    --color-accent-text: #1A1A1A;
}
.page-consultoria .accent-gradient {
    background: linear-gradient(90deg, #FFD305 0%, #FFEB57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-consultoria button.bg-accent,
.page-consultoria a.bg-accent {
    color: #1A1A1A;
}

/* ----- IA Assistant ----- */
.mbarch-ia-assistant {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-sans);
}
.mbarch-ia-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}
.mbarch-ia-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
}
.mbarch-ia-subtitle {
    color: var(--color-text-secondary);
    margin: 0 0 24px 0;
}
.mbarch-ia-field {
    margin-bottom: 16px;
}
.mbarch-ia-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}
.mbarch-ia-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-secondary);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.mbarch-ia-field input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.1);
}
.mbarch-ia-submit {
    width: 100%;
    padding: 12px 24px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mbarch-ia-submit:hover {
    background: var(--color-accent-hover);
}
.mbarch-ia-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.mbarch-ia-result {
    margin-top: 24px;
    padding: 20px;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    line-height: 1.6;
}
.mbarch-ia-new-query {
    margin-top: 16px;
    padding: 8px 16px;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}
.mbarch-ia-new-query:hover {
    background: var(--color-accent);
    color: #ffffff;
}

/* ----- WhatsApp Floating Button ----- */
.mbarch-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.mbarch-whatsapp-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}
.mbarch-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
}
.mbarch-whatsapp-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.25;
    z-index: 0;
}
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.mbarch-whatsapp-tooltip {
    pointer-events: auto;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--color-card, #FDF8F0);
    color: var(--color-text-primary, #1A1A1A);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 280px;
    display: none;
    position: relative;
    animation: fadeIn 0.3s ease-out forwards;
}
.mbarch-whatsapp-tooltip.show { display: block; }
.mbarch-whatsapp-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.8rem;
    padding: 4px;
}

/* ----- Scroll-to-Top Button ----- */
.mbarch-scroll-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--color-accent, #006B68);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,107,104,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}
.mbarch-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mbarch-scroll-top:hover {
    background: var(--color-accent-hover, #005552);
}

/* ----- Navbar ----- */
.mbarch-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    padding: 20px 30px;
}

/* Default (transparent over hero) — white text */
.mbarch-navbar .nav-brand-text,
.mbarch-navbar .nav-brand-sub,
.mbarch-navbar .mbarch-desktop-nav > a:not(.mbarch-cta),
.mbarch-navbar .mbarch-desktop-nav > div > button:not(.mbarch-cta),
.mbarch-navbar .mbarch-desktop-nav > button:not(.mbarch-cta),
.mbarch-navbar .mbarch-desktop-nav button,
.mbarch-navbar .mbarch-mobile-menu-btn {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mbarch-navbar .mbarch-desktop-nav > a:not(.mbarch-cta):hover,
.mbarch-navbar .mbarch-desktop-nav > div > button:not(.mbarch-cta):hover,
.mbarch-navbar .mbarch-desktop-nav > button:not(.mbarch-cta):hover,
.mbarch-navbar .mbarch-desktop-nav button:hover {
    color: var(--color-accent, #FFD305);
}
.mbarch-navbar .mbarch-nav-logo:hover .nav-brand-text,
.mbarch-navbar .mbarch-nav-logo:hover .nav-brand-sub {
    color: var(--color-accent, #FFD305);
}
.mbarch-navbar .mbarch-mobile-menu-btn:hover {
    color: #fff;
}

/* Scrolled — dark text */
.mbarch-navbar.scrolled .nav-brand-text,
.mbarch-navbar.scrolled .nav-brand-sub,
.mbarch-navbar.scrolled .mbarch-desktop-nav > a:not(.mbarch-cta),
.mbarch-navbar.scrolled .mbarch-desktop-nav > div > button:not(.mbarch-cta),
.mbarch-navbar.scrolled .mbarch-desktop-nav > button:not(.mbarch-cta),
.mbarch-navbar.scrolled .mbarch-desktop-nav button,
.mbarch-navbar.scrolled .mbarch-mobile-menu-btn {
    color: var(--color-text-primary, #1A1A1A);
}
.mbarch-navbar.scrolled .mbarch-desktop-nav button:hover {
    color: var(--color-accent, #FFD305);
}
.mbarch-navbar.scrolled .mbarch-mobile-menu-btn {
    color: var(--color-text-muted, #6b7280);
}
.mbarch-navbar.scrolled .mbarch-mobile-menu-btn:hover {
    color: var(--color-text-primary, #1A1A1A);
}
.mbarch-navbar.scrolled {
    background: rgba(232, 236, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 12px 30px;
}
.mbarch-navbar.hidden-up {
    transform: translateY(-100%);
}
.mbarch-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 256px;
    background: rgba(232, 236, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
}
.mbarch-nav-dropdown.open { display: block; }
.mbarch-nav-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--color-text-primary, #1A1A1A);
    text-decoration: none;
    transition: background 0.2s ease;
}
.mbarch-nav-dropdown a:hover {
    background: var(--color-glass, rgba(0,0,0,0.03));
}
.mbarch-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text-primary, #1A1A1A);
}
.mbarch-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 236, 240, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    padding: 80px 24px 40px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out forwards;
}
.mbarch-mobile-panel.open { display: block; }
.mbarch-mobile-panel a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary, #1A1A1A);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.mbarch-mobile-panel .mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text-primary, #1A1A1A);
}

/* ----- Footer Dark Theme ----- */
footer {
    background: #1A1A1A !important;
    color: var(--color-text-muted, #94a3b8);
    --color-text-primary: #ffffff;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: #00A39F;
    --color-accent-hover: #008A85;
    --color-accent-text: #1A1A1A;
    --color-card: rgba(255, 255, 255, 0.03);
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-bg-grid: rgba(255, 255, 255, 0.03);
}
footer a {
    color: #94a3b8;
    transition: color 0.2s ease;
}
footer a:hover {
    color: #00A39F;
}

/* ----- Section Alt Backgrounds ----- */
.section-white { background: #ffffff; }
.section-light { background: #F8F9FA; }
.section-dark { background: #1A1A1A; }
.section-accent {
    background: #006B68;
    color: #ffffff;
}

/* ----- Responsive ----- */
@media (min-width: 1024px) {
    .mbarch-nav-mobile { display: none !important; }
}
@media (max-width: 1024px) {
    .mbarch-desktop-nav { display: none !important; }
    .mbarch-desktop-actions { display: none !important; }
    .mbarch-nav-mobile { display: flex !important; }
    .mbarch-mobile-menu-btn { display: flex !important; }
}
@media (min-width: 640px) {
    .mbarch-hero-slide .slide-content h1 { font-size: 3rem !important; }
    .mbarch-hero-slide .slide-content p { font-size: 1.125rem !important; }
}
@media (min-width: 1024px) {
    .mbarch-hero-slide .slide-content h1 { font-size: 4.5rem !important; }
    .mbarch-hero-slide .slide-content p { font-size: 1.25rem !important; }
}
@media (max-width: 768px) {
    .mbarch-hero-slider { min-height: 600px; }
    .mbarch-hero-arrow { display: none !important; }
    footer .footer-grid { grid-template-columns: 1fr !important; }
    footer .footer-grid > div { grid-column: auto !important; }
    .footer-bottom { flex-direction: column !important; text-align: center !important; }
}
@media (max-width: 480px) {
    .mbarch-hero-slide .slide-content p { font-size: 0.85rem !important; }
}

/* ----- Soluciones Section: Responsive Grid ----- */
@media (max-width: 768px) {
    .soluciones-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .soluciones-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ----- Soluciones Cards: Hover Effects ----- */
.soluciones-card:hover {
    border-color: rgba(0, 107, 104, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.soluciones-card > div:first-child img {
    transition: transform 0.5s ease;
}
.soluciones-card:hover > div:first-child img {
    transform: scale(1.05);
}
.soluciones-card h3 {
    transition: color 0.3s ease;
}
.soluciones-card:hover h3 {
    color: var(--color-accent, #006B68) !important;
}
.soluciones-card .soluciones-link svg {
    transition: transform 0.2s ease;
}
.soluciones-card:hover .soluciones-link svg {
    transform: translateX(4px);
}

/* ----- Welcome Section: Responsive ----- */
@media (min-width: 1024px) {
    .welcome-text {
        grid-column: 1 / span 7;
    }
    .welcome-badge {
        grid-column: 8 / span 5;
    }
    section:has(.welcome-text) > div {
        grid-template-columns: repeat(12, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .welcome-text .feature-grid-2col {
        grid-template-columns: 1fr !important;
    }
}

/* ----- Stats Grid: Responsive ----- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid > div + div {
        border-left: none !important;
        border-top: 1px solid rgba(0,107,104,0.3);
    }
}

/* ----- Client Logos Marquee ----- */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee-logos {
    display: flex;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
}
.animate-marquee-logos:hover {
    animation-play-state: paused;
}
.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-muted, #6b7280);
    transition: color 0.3s ease;
}
.client-logo:hover {
    color: var(--color-text-primary, #1A1A1A);
}
.client-logo svg {
    height: 60px;
    width: auto;
}
@media (min-width: 640px) {
    .client-logo svg { height: 72px; }
}
@media (min-width: 768px) {
    .client-logo svg { height: 84px; }
}
@media (min-width: 1024px) {
    .client-logo svg { height: 96px; }
}

/* ============================================
   Portfolio Section
   ============================================ */

/* ----- Filter Buttons ----- */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background: var(--color-accent, #006B68) !important;
    color: #fff !important;
}

/* ----- Portfolio Grid ----- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ----- Portfolio Card Hover ----- */
.portfolio-card {
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent, #006B68) !important;
    box-shadow: 0 12px 40px rgba(0, 107, 104, 0.15);
}
.portfolio-card:hover img {
    transform: scale(1.05);
}
.portfolio-card:hover .portfolio-hover-overlay {
    opacity: 1;
}
.portfolio-card:hover h4 {
    color: var(--color-accent, #006B68) !important;
}

/* ----- Portfolio Hover Overlay ----- */
.portfolio-hover-overlay a:hover {
    text-decoration: underline !important;
}
.portfolio-hover-overlay a svg {
    transition: transform 0.3s ease;
}
.portfolio-hover-overlay a:hover svg {
    transform: translateX(4px);
}

/* ----- Portfolio Touch Devices ----- */
@media (hover: none) and (pointer: coarse) {
    .portfolio-card {
        cursor: pointer;
    }
    .portfolio-card .portfolio-hover-overlay {
        opacity: 0.85 !important;
        background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent) !important;
    }
    .portfolio-card:hover {
        transform: none;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }
}

/* ============================================
   Responsive – Inline Grid Overrides (Home + Inner Pages)
   ============================================ */

/* 2-col (1fr 1fr) → 1-col at 768px */
@media (max-width: 768px) {
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* 4-col → 2-col at 900px, 1-col at 768px */
@media (max-width: 900px) {
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* 3-col → 1-col at 768px */
@media (max-width: 768px) {
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* 2-col (7fr 5fr / 5fr 7fr) → 1-col at 768px */
@media (max-width: 768px) {
    div[style*="grid-template-columns:7fr 5fr"],
    div[style*="grid-template-columns: 7fr 5fr"],
    div[style*="grid-template-columns:5fr 7fr"],
    div[style*="grid-template-columns: 5fr 7fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* 2-col (2fr 1fr / 1fr 2fr) → 1-col at 900px */
@media (max-width: 900px) {
    div[style*="grid-template-columns:2fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Single Proyecto – Prev/Next Nav
   ============================================ */
@media (max-width: 639px) {
    nav > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Single Proyecto – 2-Column Layout
   ============================================ */
@media (max-width: 900px) {
    section > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Mobile Centering (≤768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Hero Slider --- */
    .mbarch-hero-slide .slide-content {
        text-align: center;
        align-items: center;
    }
    .mbarch-hero-slide .slide-content [style*="display:flex"][style*="gap"] {
        justify-content: center;
    }

    /* --- Welcome Section --- */
    .welcome-text {
        text-align: center;
    }
    .welcome-text [style*="width:3rem"] {
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Portfolio Header + Filters --- */
    #portfolio > div > div:first-child {
        text-align: center;
    }
    #portfolio [style*="flex-wrap:wrap"] {
        justify-content: center;
    }

    /* --- Portal de Clientes (2-col grid text side) --- */
    #portfolio ~ section div[style*="grid-template-columns:1fr 1fr"] > div:last-child,
    #portfolio ~ section div[style*="grid-template-columns: 1fr 1fr"] > div:last-child {
        text-align: center;
    }

    /* --- Reviews Rating Card --- */
    div[style*="justify-content:space-between"][style*="border-radius"] {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* --- Contact Section: Form Column --- */
    div[style*="grid-template-columns:7fr 5fr"] > div:first-child,
    div[style*="grid-template-columns: 7fr 5fr"] > div:first-child {
        text-align: center;
    }
    div[style*="grid-template-columns:7fr 5fr"] > div:first-child button[type="submit"],
    div[style*="grid-template-columns: 7fr 5fr"] > div:first-child button[type="submit"] {
        align-self: center;
    }

    /* --- Contact Section: Info Column h3s --- */
    div[style*="grid-template-columns:7fr 5fr"] > div:last-child h3,
    div[style*="grid-template-columns: 7fr 5fr"] > div:last-child h3 {
        text-align: center;
    }

    /* --- Footer --- */
    footer [style*="text-align:right"] {
        text-align: center !important;
    }
    footer .footer-grid > div {
        text-align: center;
    }
}

/* Lightbox hover effects */
#mbarch-lb-prev:hover,
#mbarch-lb-next:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Utility: accent text color */
.text-accent {
    color: var(--color-accent, #006B68);
}

/* ============================================
   Industrial Projects Grid & Cards
   ============================================ */
.industrial-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ind-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-card, #fff);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.ind-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.ind-project-img {
    position: relative;
    height: 14rem;
    overflow: hidden;
}
.ind-project-img img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ind-project-card:hover .ind-project-img img {
    transform: scale(1.05);
}

.ind-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s;
}
.ind-project-card:hover .ind-project-overlay {
    opacity: 1;
}

/* Responsive: 3 → 2 → 1 */
@media (max-width: 1024px) {
    .industrial-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .industrial-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Testimonials Grid Responsive ----- */
.mbarch-test-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .mbarch-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .mbarch-test-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----- Testimonials Summary Bar Responsive ----- */
.mbarch-test-summary {
    flex-direction: column;
    align-items: center;
}
@media (min-width: 640px) {
    .mbarch-test-summary {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Consultoria Page — Sections & Components
   ============================================ */

/* ----- Hero Consultoria ----- */
.mbarch-c-hero {
    position: relative;
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-primary, #E8ECF0);
}
.mbarch-c-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25);
}
.mbarch-c-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-bg-grid, rgba(0,0,0,0.03)) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.mbarch-c-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ----- Form Liquid Glass (Consultoria) ----- */
.mbarch-c-form-card {
    position: relative;
    background: var(--color-card, #FDF8F0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mbarch-c-form-card::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 70%,
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    pointer-events: none;
    z-index: 2;
}
.mbarch-c-form-card:hover::before { left: 150%; }
.mbarch-c-form-card .c-form-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: grayscale(1);
    mix-blend-mode: luminosity;
    pointer-events: none;
}
.mbarch-c-form-card .c-form-fields {
    position: relative;
    z-index: 10;
}

/* ----- Consultoria Form Fields ----- */
.mbarch-c-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary, #4a4a4a);
    margin-bottom: 4px;
}
.mbarch-c-field input,
.mbarch-c-field select,
.mbarch-c-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 2px;
    background: var(--color-glass, rgba(0,0,0,0.03));
    color: var(--color-text-primary, #1A1A1A);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: var(--font-sans, "Inter", sans-serif);
}
.mbarch-c-field input:focus,
.mbarch-c-field select:focus,
.mbarch-c-field textarea:focus {
    border-color: var(--color-accent, #FFD305);
    outline: none;
    background: var(--color-primary, #E8ECF0);
}
.mbarch-c-field input::placeholder,
.mbarch-c-field textarea::placeholder {
    color: #94a3b8;
}
.mbarch-c-field select {
    appearance: auto;
}
.mbarch-c-field textarea {
    resize: none;
}

/* ----- Section Badge (tag pill) ----- */
.mbarch-c-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,211,5,0.1);
    border: 1px solid rgba(255,211,5,0.2);
    color: #FFD305;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}

/* ----- Stats Yellow Banner ----- */
.mbarch-c-stats-banner {
    background: linear-gradient(135deg, #FFD305 0%, #FFEB57 100%);
    border-radius: 2px;
    padding: 2rem 2.5rem;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 25px 50px -12px rgba(255,211,5,0.10);
}
@media (max-width: 768px) {
    .mbarch-c-stats-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* ----- Liquid Glass Card (Consultoria yellow accent) ----- */
.page-consultoria .liquid-glass-card {
    background: var(--color-card, #FDF8F0);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.page-consultoria .liquid-glass-card::after {
    background: radial-gradient(circle, rgba(255,211,5,0.15) 0%, transparent 70%);
}
.page-consultoria .liquid-glass-card:hover {
    border-color: #FFD305;
    box-shadow: 0 16px 40px 0 rgba(0,0,0,0.12), 0 0 20px 0 rgba(255,211,5,0.08);
}

/* ----- Rosette Badge (Cómo Trabajamos) ----- */
.mbarch-c-rosette {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.mbarch-c-rosette svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.mbarch-c-rosette span {
    position: relative;
    z-index: 10;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.05em;
}

/* ----- Stepper Line ----- */
.mbarch-c-stepper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,211,5,0.9);
    box-shadow: 0 0 8px rgba(245,158,11,0.5);
}

/* ----- FAQ Details ----- */
.mbarch-c-faq details {
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 2px;
    background: var(--color-glass, rgba(0,0,0,0.03));
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all 0.3s ease;
}
.mbarch-c-faq details[open] {
    background: var(--color-glass, rgba(0,0,0,0.03));
}
.mbarch-c-faq summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display, "Outfit", sans-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-primary, #1A1A1A);
    transition: background 0.2s ease;
    list-style: none;
}
.mbarch-c-faq summary::-webkit-details-marker { display: none; }
.mbarch-c-faq summary::marker { display: none; content: ""; }
.mbarch-c-faq summary:hover {
    background: rgba(0,0,0,0.02);
}
.mbarch-c-faq summary .faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: #FFD305;
    transition: transform 0.3s ease;
}
.mbarch-c-faq details[open] summary .faq-icon {
    transform: rotate(180deg);
}
.mbarch-c-faq .faq-answer {
    padding: 0 24px 20px;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #4a4a4a);
    line-height: 1.7;
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
    padding-top: 16px;
    animation: slideDown 0.3s ease-out;
}

/* ----- QR Modal ----- */
.mbarch-c-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}
.mbarch-c-qr-modal img {
    position: relative;
    z-index: 10;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.mbarch-c-qr-close {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}
.mbarch-c-qr-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ----- IA Assistant Console ----- */
.mbarch-c-ia-console {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.page-consultoria .mbarch-c-ia-console {
    background: rgba(255,255,255,0.05);
    border-color: var(--color-border, rgba(0,0,0,0.08));
}
.mbarch-c-ia-console input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 2px;
    background: var(--color-glass, rgba(0,0,0,0.03));
    color: var(--color-text-primary, #1A1A1A);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: var(--font-sans, "Inter", sans-serif);
}
.mbarch-c-ia-console input:focus {
    border-color: var(--color-accent, #FFD305);
    outline: none;
    background: var(--color-primary, #E8ECF0);
}
.mbarch-c-ia-console input::placeholder {
    color: #94a3b8;
}

/* ----- IA Shimmer bar ----- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.mbarch-c-shimmer {
    height: 10px;
    width: 100%;
    background: var(--color-primary, #E8ECF0);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    border-radius: 2px;
    overflow: hidden;
}
.mbarch-c-shimmer-bar {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, rgba(255,211,5,0.3), #FFD305, rgba(255,211,5,0.3));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 2px;
}

/* ----- Consultoria Navbar (yellow brand) ----- */
.page-consultoria .mbarch-navbar .nav-brand-text {
    color: #FFD305;
}
.page-consultoria .mbarch-navbar .nav-brand-sub {
    color: rgba(255,255,255,0.5);
}
.page-consultoria .mbarch-navbar .mbarch-logo-box {
    color: #FFD305;
    border-color: #FFD305;
}
.page-consultoria .mbarch-navbar.scrolled .nav-brand-text {
    color: #1A1A1A;
}
.page-consultoria .mbarch-navbar.scrolled .mbarch-logo-box {
    color: #FFD305;
    border-color: #FFD305;
}
.page-consultoria .mbarch-navbar.scrolled .nav-brand-sub {
    color: #6b7280;
}
.page-consultoria .mbarch-nav-dropdown a[style*="color:#FFD305"],
.page-consultoria .mbarch-nav-dropdown a {
    color: var(--color-text-primary, #1A1A1A);
}

/* ----- How We Work Dashed Line ----- */
.mbarch-c-dashed-line {
    border-top: 2px dashed var(--color-border, rgba(0,0,0,0.08));
}

/* ----- Consultoria Footer Override (yellow accent) ----- */
body.page-consultoria footer a:hover {
    color: #FFD305 !important;
}
body.page-consultoria footer {
    --color-accent: #FFD305;
    --color-accent-hover: #E5BE04;
}

/* ----- Service Card Tags ----- */
.mbarch-c-service-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--color-primary, #E8ECF0);
    color: var(--color-text-muted, #6b7280);
    padding: 3px 10px;
    border-radius: 2px;
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

/* ----- Service Card Category Badge ----- */
.mbarch-c-service-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--color-glass, rgba(0,0,0,0.03));
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    color: var(--color-text-secondary, #4a4a4a);
}

/* ----- Testimonial Avatar (teal bg) ----- */
.mbarch-c-test-avatar {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background: rgba(0,107,104,0.1);
    border: 1px solid rgba(0,107,104,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: #006B68;
}

/* ----- Google Maps link button ----- */
.mbarch-c-google-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 2px;
    background: rgba(255,211,5,0.05);
    border: 1px solid var(--color-border, rgba(0,0,0,0.08));
    color: var(--color-text-secondary, #4a4a4a);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mbarch-c-google-link:hover {
    background: rgba(255,211,5,0.1);
    color: var(--color-text-primary, #1A1A1A);
}

/* ============================================
   Consultoria Responsive Overrides
   ============================================ */

/* Hero: 2-col grid on desktop */
@media (min-width: 1024px) {
    .mbarch-c-hero div[style*="grid-template-columns:1fr;gap:3rem"] {
        grid-template-columns: 7fr 5fr !important;
    }
    .mbarch-c-hero div[style*="grid-template-columns: 1fr;gap:3rem"] {
        grid-template-columns: 7fr 5fr !important;
    }
}

/* Quienes Somos: 2-col on desktop */
@media (min-width: 1024px) {
    #quienes-somos div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 7fr 5fr !important;
    }
    #quienes-somos div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 7fr 5fr !important;
    }
}

/* IA section: 2-col on desktop */
@media (min-width: 1024px) {
    #asistente-caba div[style*="grid-template-columns:1fr;gap:3rem"] {
        grid-template-columns: 5fr 7fr !important;
    }
    #asistente-caba div[style*="grid-template-columns: 1fr;gap:3rem"] {
        grid-template-columns: 5fr 7fr !important;
    }
}

/* HowWeWork: 4-col on desktop */
@media (min-width: 1024px) {
    .hw-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1024px) {
    .hw-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .hw-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Testimonials: 3-col → 1-col */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Services: 3-col → 2 → 1 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Stats + WhyElegirnos: 4-col → 2 → 1 */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
