:root {
    /* Theme Variables */
    --bg-primary: #fdfbf7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f2ec;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --accent-color: #e65926;
    --accent-hover: #cc4f22;
    --border-color: #e5e5e5;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;

}

/* Utility Classes */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-tertiary {
    background-color: var(--bg-tertiary);
}

.border-radius {
    border-radius: 8px;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

/* Rotating phrases in hero */
.rotating-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.2em;
    width: 100%;
}

.rotating-phrase {
    position: absolute;
    left: 0;
    width: 100%;
    color: var(--accent-color);
    font-style: italic;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rotating-phrase.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-phrase.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.text-accent {
    color: var(--accent-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.85rem;
}

.text-center {
    text-align: center;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-wide .container {
    max-width: 1400px;
}

.grid-2-fixed {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .grid-2-fixed {
        grid-template-columns: 1fr;
    }
}

.urgencia-split {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.urgencia-texto {
    flex: 1 1 55%;
}

.urgencia-img {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgencia-img svg {
    width: 100%;
    max-width: 480px;
}

@media (max-width: 768px) {
    .urgencia-split {
        flex-direction: column;
        gap: 2rem;
    }

    .urgencia-texto,
    .urgencia-img {
        flex: 1 1 100%;
    }

    .urgencia-img svg {
        max-width: 320px;
    }
}

.mt-lg {
    margin-top: 4rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-sm {
    margin-top: 1rem;
}

.p-md {
    padding: 2rem;
}

.p-lg {
    padding: 3rem;
}

.w-100 {
    width: 100%;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.layout-split {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.split-header {
    flex: 1;
    min-width: 300px;
}

.split-content {
    flex: 2;
    min-width: 300px;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-link {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

/* Pill base */
.pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}


/* Pill 1: Logo */
.logo-pill {
    padding: 8px 18px 8px 10px;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Pill 2: Nav */
.nav-pill-wrap {
    position: relative;
    gap: 2px;
    padding: 6px 8px;
}

.nav-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: rgba(232, 86, 42, 0.08);
    transition: left 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
        width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    pointer-events: none;
    z-index: 0;
}


.nav-item {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item-home {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.nav-item-home svg {
    display: block;
}

.nav-item-servicios {
    cursor: default;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

/* Tubelight bar */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 0 0 3px 3px;
}

/* Tubelight glow */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(232, 86, 42, 0.25) 0%, transparent 70%);
    filter: blur(3px);
    border-radius: 50%;
    pointer-events: none;
}

/* Dropdown inside nav pill */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: max-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}


.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(232, 86, 42, 0.08);
    color: var(--accent-color);
}

.btn-nav {
    border-radius: 999px;
    padding: 12px 18px 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: var(--accent-color);
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(232, 86, 42, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    justify-self: end;
}

.btn-nav::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
}

.btn-nav::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.btn-nav:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(232, 86, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

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

.lang-switcher {
    background: transparent;
    border: none;
    cursor: default;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.lang-switcher img {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

/* Hamburger (mobile only) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    border: none;
    cursor: pointer;
    background: #fff;
}


.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    z-index: 1200;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: calc(100% - 40px);
    max-width: 400px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.3s ease;
    z-index: 999;
}


.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background: rgba(232, 86, 42, 0.08);
}

.mobile-menu-home {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-home svg {
    flex-shrink: 0;
}

.mobile-menu-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 16px;
    cursor: default;
}

.mobile-menu-label:hover {
    background: transparent;
}

.mobile-menu-sub {
    padding-left: 32px;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}

.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.mobile-menu-actions .btn {
    flex: 1;
    text-align: center;
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0.65rem 0;
    }

    .nav-container {
        padding: 0 0.9rem;
        gap: 0.6rem;
    }

    .logo-pill {
        padding: 0;
        gap: 0;
        min-width: 0;
        flex: 0 0 auto;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .brand-logo {
        height: 40px;
        border-radius: 0;
    }

    .brand-text {
        display: none;
    }

    .nav-pill-wrap {
        display: none;
    }

    .btn-nav {
        display: inline-flex;
        padding: 0 16px;
        height: 40px;
        min-height: 40px;
        font-size: 0.88rem;
        line-height: 1;
        gap: 0.45rem;
        flex: 0 0 auto;
    }

    .hamburger-btn {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 0;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hamburger-line {
        width: 18px;
    }

    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger-btn.open .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu {
        top: 66px;
        width: calc(100% - 24px);
        border-radius: 18px;
        padding: 6px;
    }

    .mobile-menu-item {
        padding: 10px 14px;
        font-size: 0.92rem;
    }

    .mobile-menu-sub {
        padding-left: 26px;
        font-size: 0.88rem;
    }

    .mobile-menu-actions {
        padding: 6px;
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

/* 01 - Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    background: radial-gradient(circle at top center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

.subqualifier {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.subheadline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-capture-form {
    display: flex;
    gap: 0.5rem;
}

.email-capture-form button {
    white-space: nowrap;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.email-capture-form input,
.contact-form input,
.contact-form select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-body);
    width: 100%;
}

.email-capture-form input {
    min-width: 250px;
}

.email-capture-form input:focus,
.contact-form input:focus,
.contact-form select:focus {
    outline: 2px solid var(--accent-color);
}

.microcopy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 02 - Metricas */
.metrics-section {
    padding: 4rem 0;
}

.metrics-grid {
    text-align: center;
    grid-template-columns: repeat(4, 1fr);
}

.metric-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.metric-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric-item:nth-child(1) {
    transition-delay: 0s;
}

.metric-item:nth-child(2) {
    transition-delay: 0.15s;
}

.metric-item:nth-child(3) {
    transition-delay: 0.3s;
}

.metric-item:nth-child(4) {
    transition-delay: 0.45s;
}

.metric-number {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-descriptor {
    font-size: clamp(0.65rem, 1.2vw, 0.9rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 03 - Logos */
.logos-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.logo-marquee {
    display: flex;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.logos-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.marquee-content {
    display: flex;
    width: max-content;
    gap: 5rem;
    padding-right: 5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.marquee-content a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    text-decoration: none;
}

.brand-logo-icon {
    width: auto;
    height: 36px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(100%) opacity(0.85);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}


.marquee-content a:hover .brand-logo-icon {
    filter: grayscale(0%) invert(0) opacity(1);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards Genéricas (Features, Services, Testimonials, Team, Article) */
.card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
}

/* 04 - Why */
.card-icon {
    font-size: 2rem;
    background: var(--bg-tertiary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-feature h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: #585858;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.card-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 05 - Servicios */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.card-service h3 {
    color: #585858;
    font-family: 'Playfair Display', serif;
}

.card-service p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Tabs Browser Style */
.tabs-container {
    max-width: 1400px;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0.2rem;
    margin-bottom: -1px;
    /* Overlap border */
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 0.8rem 1.6rem;
    border-radius: 12px 12px 0 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}


.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.06);
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
    font-weight: 600;
}

/* Hide the border underneath the active tab */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-secondary);
}

.tab-btn .badge {
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
    color: var(--text-primary);
    padding: 0.2rem 0.6rem;
    font-size: 0.70rem;
}

.tab-btn.active .badge {
    background: rgba(230, 89, 38, 0.1);
    color: var(--accent-color);
}

.tabs-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
    text-align: left;
}

.tabs-content .lead-text {
    font-size: 1rem;
    margin-bottom: 2rem !important;
}

.tabs-content .grid-3,
.tabs-content .grid-2 {
    gap: 1.25rem;
}

.tabs-content .grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tabs-content .card-service {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.tabs-content .card-service-body {
    flex: 1;
}

.tabs-content .card-service-img {
    flex: 0 0 auto;
    width: 100%;
    padding: 1.25rem;
}

.tabs-content .card-service-img svg {
    max-width: 110px;
}

/* LGaaS tab cards — grid 2x2 con SVG */
#tab-lgaas .grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
#tab-lgaas .card-service {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}
#tab-lgaas .card-service-body {
    flex: 1 1 60%;
}
#tab-lgaas .card-service-img {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(230, 89, 38, 0.04);
    border-radius: 10px;
}
#tab-lgaas .card-service-img svg {
    width: 100%;
    max-width: 130px;
    height: auto;
}
@media (max-width: 768px) {
    #tab-lgaas .grid-2 {
        grid-template-columns: 1fr;
    }
    #tab-lgaas .card-service {
        flex-direction: column;
    }
    #tab-lgaas .card-service-img {
        flex: 0 0 auto;
        width: 100%;
        padding: 1rem;
    }
    #tab-lgaas .card-service-img svg {
        max-width: 100px;
    }
}

/* Generic card-service layout (for ROaaS, CRM Admin and any page) */
.card-service {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.card-service-body {
    flex: 1 1 65%;
}
.card-service-img {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(230, 89, 38, 0.04);
    border-radius: 10px;
}
.card-service-img svg {
    width: 100%;
    max-width: 150px;
    height: auto;
}
@media (max-width: 768px) {
    .card-service {
        flex-direction: column;
    }
    .card-service-img {
        flex: 0 0 auto;
        width: 100%;
        padding: 0.75rem;
    }
    .card-service-img svg {
        max-width: 70px;
    }
}

.tabs-content .card {
    padding: 1.5rem;
    text-align: left;
    border-left: 3px solid var(--accent-color);
}
.tabs-content .card.card-service {
    border-left: none;
}

.tabs-content .card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tabs-content .card p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.card-step {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.25;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.tabs-content .card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 0.4rem 0;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.3s ease, gap 0.3s ease;
}

.tabs-content .card .btn-link:hover {
    border-bottom-color: var(--accent-color);
    gap: 0.6rem;
    color: var(--accent-color);
}

.tabs-content .card .badge {
    font-size: 0.70rem;
    margin-bottom: 2rem;
    padding: 0.25rem 0.6rem;
}

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

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

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

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

/* 05b - Evolución */
.evolucion-section {
    background: var(--bg-primary);
    padding: 3.5rem 0;
}

.evolucion-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.25rem;
}

.evolucion-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.evolucion-header .lead-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.evolucion-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 920px;
    margin: 2rem auto 2rem;
}

.evolucion-closing {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.evolucion-closing.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.evolucion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.evolucion-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}

.evolucion-card:nth-child(1).visible { transition-delay: 0s; }
.evolucion-card:nth-child(2).visible { transition-delay: 0.2s; }

.evolucion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.evolucion-card:nth-child(2) {
    flex-direction: row-reverse;
}

.evolucion-card-body {
    flex: 1 1 55%;
    padding: 2.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evolucion-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(230, 89, 38, 0.08);
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.evolucion-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.evolucion-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.btn-evo {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--accent-color);
    background: transparent;
    border: 1.5px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-evo:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.evolucion-card-img {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    min-height: 260px;
}

.evolucion-card:nth-child(1) .evolucion-card-img {
    background: rgba(230, 89, 38, 0.04);
    border-radius: 0 12px 12px 0;
}

.evolucion-card:nth-child(2) .evolucion-card-img {
    background: rgba(26, 26, 26, 0.03);
    border-radius: 12px 0 0 12px;
}

.evolucion-card-img svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
}

/* 06 - Para Quien */
.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 05 - Workflow Sticky Scroll */
.wf-section {
    padding: 2rem 0 0;
    background-color: var(--bg-tertiary);
}

#soluciones {
    padding-bottom: 2rem;
}

.wf-header {
    --shrink-progress: 0;
    
    position: sticky;
    top: 90px;
    z-index: 10;
    background-color: var(--bg-tertiary);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    
    /* Calculate dynamic padding and border based on scroll progress */
    padding: 0 5% calc(0.5rem * (1 - var(--shrink-progress)));
    border-bottom: calc(1px * var(--shrink-progress)) solid rgba(0, 0, 0, calc(0.05 * var(--shrink-progress)));
    
    /* We don't need transitions here because progress is tied directly to scroll */
}


.wf-header h2 {
    /* 
       Interpolate between base font-size clamp(2rem, 4vw, 3rem) 
       and shrunk font-size clamp(1.25rem, 2.5vw, 1.75rem) 
    */
    font-size: calc(
        clamp(2rem, 4vw, 3rem) * (1 - var(--shrink-progress)) + 
        clamp(1.25rem, 2.5vw, 1.75rem) * var(--shrink-progress)
    );
    margin-bottom: calc(1.5rem - (1rem * var(--shrink-progress)));
}

.wf-header .subheadline {
    /* Base: 0.95rem shrinks to 0.8rem */
    font-size: calc(0.95rem - (0.15rem * var(--shrink-progress)));
    /* Base margin 2.5rem shrinks to 1rem */
    margin-bottom: calc(2.5rem - (1.5rem * var(--shrink-progress)));
    /* Opacity fades from 1 to 0.7 */
    opacity: calc(1 - (0.3 * var(--shrink-progress)));
    overflow: hidden;
}

.wf-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 0 5%;
    position: relative;
    gap: 3rem;
}

/* --- Sidebar (Sticky Flowchart) --- */
.wf-sidebar {
    flex: 0 0 auto;
    position: sticky;
    top: 270px;
    align-self: flex-start;
    height: fit-content;
    padding-bottom: 4rem;
}

.wf-diagram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Node row: box + label */
.wf-node {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Phase box */
.wf-box {
    width: 110px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    flex-shrink: 0;
}

.wf-box--active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 0 20px rgba(230, 89, 38, 0.15), 0 0 0 4px rgba(230, 89, 38, 0.06);
}


/* Label beside box */
.wf-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
}

.wf-node:has(.wf-box--active) .wf-label {
    color: var(--text-primary);
    opacity: 1;
}

/* Connector: line - diamond - line */
.wf-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    flex-shrink: 0;
}

.wf-line {
    width: 2px;
    height: 18px;
    background: var(--border-color);
    transition: background 0.5s ease;
}

.wf-connector--done .wf-line {
    background: var(--accent-color);
}

/* Diamond shape */
.wf-diamond {
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.wf-diamond svg {
    transform: rotate(-45deg);
    color: transparent;
    transition: color 0.4s ease;
}

.wf-connector--done .wf-diamond {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.wf-connector--done .wf-diamond svg {
    color: #fff;
}

/* --- Right Column: Phase Content --- */
.wf-phases {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-auto-rows: 1fr;
}

.wf-phase {
    display: flex;
    align-items: stretch;
    padding: 1.5rem 0;
}

.wf-phase:last-child {
    padding-bottom: 4rem;
}

.wf-phase-inner {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--card-shadow);
    opacity: 0.3;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.wf-phase--active .wf-phase-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Phase tag */
.wf-phase-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.wf-phase-inner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.wf-phase-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.wf-phase-inner p.wf-phase-tagline {
    font-size: 1.5rem;
    line-height: 1.5;
}

.wf-phase-text {
    flex: 1;
    min-width: 0;
}

/* Phase image */
.wf-phase-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Tool logos */
.wf-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.wf-logos span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-tertiary);
    transition: opacity 0.3s ease;
}

.wf-logos span:hover {
    opacity: 1;
}

/* Phases 1, 2, 3 & 4 compact spacing */
#wf-phase-2 .wf-phase-inner > p,
#wf-phase-3 .wf-phase-inner > p {
    margin-bottom: 0;
}

#wf-phase-2 .wf-divider,
#wf-phase-3 .wf-divider {
    margin: 0.2rem 0 0.3rem;
}

#wf-phase-1 .wf-divider,
#wf-phase-4 .wf-divider {
    margin: 1.25rem 0 1.5rem;
}

#wf-phase-1 .wf-phase-inner,
#wf-phase-2 .wf-phase-inner,
#wf-phase-3 .wf-phase-inner,
#wf-phase-4 .wf-phase-inner {
    gap: 0;
}

/* Phase 2 Minicards */
.wf-minicards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.wf-minicard {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.wf-minicard-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(230, 89, 38, 0.08);
    border: 1px solid rgba(230, 89, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.wf-minicard-icon svg {
    width: 13px;
    height: 13px;
}

.wf-minicard-body {
    flex: 1;
    min-width: 0;
}

.wf-minicard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.wf-minicard-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.wf-ready-badge {
    font-size: 0.62rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}


.wf-active-badge {
    font-size: 0.62rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}


.wf-minicard-body > p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    max-width: 85%;
}

.wf-minicard-tools {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.wf-minicard-tools span {
    font-size: 0.65rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Phase 4 Stat Tiles */
.wf-stat-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
}

.wf-stat-tile {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
}

.wf-stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.wf-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.wf-stat-body {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Phase 4 spacing */
#wf-phase-4 .wf-phase-inner > h3 {
    margin-bottom: 0.75rem;
}

#wf-phase-4 .wf-phase-inner > p {
    margin-bottom: 0;
}

#wf-phase-4 .wf-divider {
    margin: 1.25rem 0 1.5rem;
}

#wf-phase-4 .wf-phase-inner {
    gap: 0;
}

/* Phase split layout (two-column card) */
.wf-phase-inner--split {
    flex-direction: column;
    justify-content: center;
}

.wf-phase-inner--split .wf-phase-tag {
    margin-bottom: 0.25rem;
}

.wf-phase-tagline {
    margin: 2rem 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
}

.wf-phase-inner--split h3 {
    margin-bottom: 0.25rem;
}


.wf-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 0 1.5rem;
    width: 100%;
}

.wf-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.wf-col-left {
    flex: 0 0 46%;
    text-align: justify;
}

.wf-col-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.wf-postit {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    align-self: flex-start;
    width: 100%;
    white-space: nowrap;
}

.wf-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wf-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.wf-checklist .wf-check {
    color: var(--accent-color);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Specific column adjustments for Lead Scoring block */
@media (min-width: 769px) {
    .lead-scoring-col .wf-col-left {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .lead-scoring-col .wf-col-right {
        flex: 0 0 55%;
        max-width: 55%;
    }
}

.wf-title-lg {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-secondary);
}

/* Align columns vertically centered */
.align-center {
    align-items: center;
}

.mb-md {
    margin-bottom: 2.5rem;
}

.mt-0 {
    margin-top: 0 !important;
}

/* Lead Scoring Mockup */
.lead-scoring-mockup {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.lead-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lead-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}


.lead-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.lead-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lead-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.lead-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lead-score {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
}

.lead-score.high-score {
    background: rgba(230, 89, 38, 0.1);
    color: var(--accent-color);
}

.lead-score.med-score {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.lead-reason {
    font-size: 0.7rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0.4rem;
    font-weight: 500;
}

.lead-more {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Outbound Sequence Diagram */
/* M-List Diagram */
.mlist-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.mlist-box {
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.mlist-box.mlist-dark {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}


.mlist-box.mlist-accent {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.mlist-box.mlist-close {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230,89,38,0.35);
}

.mlist-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.mlist-dark .mlist-header {
    color: rgba(255,255,255,0.5);
    border-bottom-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.mlist-accent .mlist-header {
    color: var(--accent-color);
    border-bottom-color: rgba(230,89,38,0.2);
    background: rgba(230,89,38,0.05);
}

.mlist-close .mlist-header {
    color: rgba(255,255,255,0.6);
    border-bottom-color: rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.1);
}

.mlist-body {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.mlist-dark .mlist-body {
    color: #fff;
    font-weight: 600;
}

.mlist-accent .mlist-body {
    color: var(--accent-color);
    font-weight: 500;
}

.mlist-close .mlist-body {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.mlist-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mlist-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.mlist-connector::before {
    content: '';
    width: 1.5px;
    height: 8px;
    background: var(--border-color);
    display: block;
}

.mlist-connector::after {
    content: '+';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-primary);
    display: block;
}

.mlist-connector-accent::before {
    background: var(--accent-color);
    opacity: 0.4;
}

.mlist-connector-accent::after {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mlist-split {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.mlist-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

@media (max-width: 768px) {
    .mlist-split {
        flex-direction: column;
        align-items: center;
    }
    .mlist-track {
        width: 100%;
    }
}


/* Email Mockup */
.email-mockup {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.email-header {
    background: var(--bg-secondary);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.email-header .dots {
    display: flex;
    gap: 6px;
}

.email-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

/* OS Window button colors */
.email-header .dots span:nth-child(1) {
    background: #ff5f56;
}

.email-header .dots span:nth-child(2) {
    background: #ffbd2e;
}

.email-header .dots span:nth-child(3) {
    background: #27c93f;
}

.email-header .subject {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.email-body p {
    margin-bottom: 1rem;
    color: inherit;
    font-size: inherit;
}

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

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .evolucion-section { padding: 2.5rem 0; }
    .evolucion-header { margin-bottom: 2rem; }
    .evolucion-card,
    .evolucion-card:nth-child(2) {
        flex-direction: column;
    }
    .evolucion-card-img,
    .evolucion-card:nth-child(1) .evolucion-card-img,
    .evolucion-card:nth-child(2) .evolucion-card-img {
        min-height: 180px;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .evolucion-card-body {
        padding: 1.5rem;
    }

    .wf-section {
        padding: 4rem 0 0;
    }

    .wf-header {
        position: relative;
        top: 0;
    }

    .wf-wrapper {
        flex-direction: column;
        gap: 0;
        margin-top: 2rem;
    }

    .wf-sidebar {
        position: relative;
        top: 0;
        flex: unset;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .wf-diagram {
        flex-direction: row;
        align-items: center;
        min-width: max-content;
        padding: 0 0.5rem;
    }

    .wf-node {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .wf-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .wf-connector {
        flex-direction: row;
        width: auto;
        height: auto;
        align-items: center;
    }

    .wf-line {
        width: 20px;
        height: 2px;
    }

    .wf-diamond {
        width: 20px;
        height: 20px;
    }

    .wf-diamond svg {
        width: 10px;
        height: 10px;
    }

    .wf-box {
        width: 70px;
        height: 36px;
        font-size: 0.65rem;
    }

    .wf-phases {
        padding: 0;
    }

    .wf-phase {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .wf-phase:last-child {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .wf-phase-inner {
        padding: 1.5rem;
        flex-direction: column;
    }

    .wf-phase-img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .wf-columns {
        flex-direction: column;
        gap: 1.25rem;
    }

    .wf-col-left {
        flex: unset;
    }
}

/* 08 - Casos de éxito — Carousel */
.testimonials-section {
    padding: 3rem 0;
}
.cases-carousel {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    overflow: hidden;
    min-height: 420px;
}

.case-slide {
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100px;
    display: flex;
    flex-direction: column;
}

.case-slide.active {
    flex: 1;
    cursor: default;
}

/* Preview — shown when NOT active */
.case-slide-preview {
    padding: 1.25rem 0.75rem;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.case-slide.active .case-slide-preview {
    display: none;
}

.case-slide-preview h3 {
    font-size: 1.1rem;
    white-space: nowrap;
}

.case-slide-preview .case-tag {
    writing-mode: horizontal-tb;
}

/* Full content — shown when active */
.case-slide-full {
    display: none;
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-slide:not(.active) .case-slide-full {
    display: none;
}

.case-slide.active .case-slide-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: caseReveal 0.45s ease 0.5s forwards;
}

@keyframes caseReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Case card internals */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.case-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.case-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.case-hero-metric {
    text-align: right;
    line-height: 1.2;
}

.case-hero-metric .font-heading {
    font-size: 2.2rem;
    display: block;
}

.case-hero-metric span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.case-metric {
    flex: 1;
    text-align: center;
}

.case-metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.case-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-desc {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.case-footer {
    margin-top: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.case-footer blockquote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.case-footer .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Hover on inactive slides */
.case-slide:not(.active):hover {
    background: var(--bg-tertiary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* 09 - About Us */
#about-us {
    padding: 2rem 0;
}

.about-layout {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    line-height: 1.7;
}

.about-team-carousel {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-carousel-track {
    position: relative;
    flex: 1;
}

.team-member-card {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.team-member-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.team-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
}

.team-card-image {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--bg-tertiary);
    overflow: hidden;
}

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

.team-member-info {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
}

.team-member-card h4 {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.team-member-card .text-sm {
    font-size: 1rem;
}

.team-quote {
    font-style: italic;
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 0.75rem;
}

/* 10 - Stack */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.logo-grid span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.logo-grid span:hover {
    opacity: 1;
}

.intro-box {
    max-width: 600px;
    margin: 3rem auto 0;
    border: 1px solid var(--border-color);
}

/* 11 - Blog */
.article-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-article-enhanced {
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card-article-enhanced:hover {
    transform: translateY(-5px);
}

.card-article-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-article-img-label {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

.card-article-body {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-article-body h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.article-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-article-body .btn-link {
    margin-top: auto;
}

/* ═══════════════════════════════════════════════
   BLOG PAGE
   ═══════════════════════════════════════════════ */

.blog-hero-section {
    padding: 7rem 0 3rem;
}

.blog-hero-section h1 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero-section .subheadline {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-subscribe {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 1.5rem auto 0;
}

.blog-subscribe input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.blog-subscribe .btn {
    flex-shrink: 0;
}

.blog-subscribe-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.blog-section {
    padding: 0 0 4rem;
}

/* Blog filter bar — mirrors cases filter */
.blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 72px;
    z-index: 90;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.blog-filter-bar.stuck {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.blog-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(230, 89, 38, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.blog-count span {
    font-weight: 700;
    color: var(--accent-color);
}

/* Filter wrap — pill bar on desktop */
.blog-filter-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem;
}

.blog-filter-trigger {
    display: none;
}

.blog-filter-options {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Blog grid — 2 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Blog card animations */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card.hidden {
    display: none;
}

/* Blog Article Page */
.blog-article-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.blog-article-hero .article-tags {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.blog-article-hero h1 {
    max-width: 720px;
    margin: 0 auto 1rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.blog-article-hero .article-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 12 - FAQ */
.faq-section {
    padding-bottom: 3rem;
}

.cta-section {
    padding-top: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-v2 {
    border-top: none;
}

.accordion-v2-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-v2-item:hover {
    box-shadow: var(--card-shadow);
}

.accordion-v2-header {
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.accordion-v2-icon {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-v2-header.active .accordion-v2-icon {
    transform: rotate(45deg);
}

.accordion-v2-item .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-v2-item .accordion-content p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-hidden {
    display: none;
}

.faq-hidden.faq-visible {
    display: block;
}

.faq-toggle-btn {
    font-size: 0.9rem;
}

/* 13 - Contacto */
.cta-section .split-header {
    flex: 1;
}

.cta-section .split-content {
    flex: 1.5;
}

.contact-form {
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-institucional {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 2.5rem;
    text-align: center;
    margin: 0 auto 2rem;
    width: fit-content;
}

.institucional-logos {
    height: 56px;
    width: auto;
    max-width: 100%;
}

.grid-footer {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-brand p {
    color: #999;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #fff;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-footer {
        grid-template-columns: 1fr;
    }

    .email-capture-form {
        flex-direction: column;
        width: 100%;
    }

    .email-capture-form input {
        width: 100%;
    }

    .text-center-mobile {
        text-align: center;
    }

    /* Cases carousel mobile */
    .cases-carousel {
        flex-direction: column;
        gap: 0.75rem;
    }

    .case-slide {
        width: 100%;
        min-height: auto;
    }

    .case-slide-preview {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        padding: 1rem 1.25rem;
        flex-direction: row;
        height: auto;
    }

    .case-slide-full {
        padding: 1.5rem;
    }

    .case-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .case-hero-metric {
        text-align: left;
    }

    .case-hero-metric .font-heading {
        font-size: 2rem;
    }

    .case-metrics {
        flex-wrap: wrap;
    }

    .case-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* About section mobile */
    .about-layout {
        flex-direction: column;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-team-carousel {
        min-width: unset;
    }

    /* Blog cards mobile */
    .card-article-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    /* Blog page mobile */
    .blog-hero-section {
        padding: 6rem 0 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-filter-bar {
        top: 60px;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 4%;
    }

    .blog-filter-wrap {
        position: relative;
        max-width: none;
        flex-direction: column;
        border-radius: 16px;
        padding: 0.3rem;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .blog-filter-wrap.open {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .blog-filter-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 1.2rem;
        background: none;
        border: none;
        border-radius: 999px;
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent-color);
        cursor: pointer;
        white-space: nowrap;
    }

    .blog-filter-icon {
        color: var(--accent-color);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .blog-filter-wrap.open .blog-filter-icon {
        transform: rotate(180deg);
    }

    .blog-filter-options {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        width: 100%;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease;
    }

    .blog-filter-wrap.open .blog-filter-options {
        max-height: 400px;
        opacity: 1;
        padding-bottom: 0.3rem;
    }

    .blog-filter-options .filter-option {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
        border-radius: 12px;
        text-align: center;
        width: 100%;
    }

    .blog-count {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ═══════════════════════════════════════════════
   04 - DOLOR SECTION
   ═══════════════════════════════════════════════ */
.dolor-section {
    padding: 5rem 0;
}

.dolor-split {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.dolor-left {
    flex: 0 0 33%;
    position: sticky;
    top: 100px;
    text-align: center;
    padding-top: 1.1rem;
}

.dolor-left h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.dolor-right {
    flex: 1;
}

/* ── Checklist ── */
.dolor-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dolor-check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.dolor-check-item:first-child {
    border-top: 1px solid var(--border-color);
}

.dolor-check-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: #f0ede8;
    color: #7a7672;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dolor-check-icon svg {
    width: 18px;
    height: 18px;
}

.dolor-check-item p {
    margin: 0;
    font-size: 1.05rem;
    color: #585858;
    line-height: 1.5;
}

/* ── CTA cierre ── */
.dolor-cierre {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.dolor-cierre p {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* ── Carousel ── */
.carousel-dolor {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    aspect-ratio: 16 / 10;
}

.carousel-dolor:hover .arrow-dolor {
    opacity: 1;
}

.slide-dolor {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide-dolor.active {
    opacity: 1;
}

.slide-dolor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.slide-dolor .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.slide-dolor .overlay p {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 400;
}

.slide-dolor .overlay strong {
    color: #fff;
    font-weight: 600;
}

/* ── Arrows ── */
.arrow-dolor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-dolor:hover {
    background: rgba(255,255,255,0.3);
}

.arrow-dolor.prev { left: 1rem; }
.arrow-dolor.next { right: 1rem; }

/* ── Dots ── */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.dot-dolor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot-dolor.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ── Mobile CTA below carousel ── */
.dolor-cierre-mobile {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dolor-split {
        flex-direction: column;
        gap: 2rem;
    }

    .dolor-left {
        position: static;
        flex: none;
        width: 100%;
    }

    .dolor-left .lead-text {
        font-size: 0.9rem;
    }

    .dolor-cierre-desktop {
        display: none;
    }

    .dolor-cierre-mobile {
        display: block;
        margin-top: 1.5rem;
        text-align: center;
    }

    .dolor-cierre-mobile .dolor-cierre {
        text-align: center;
        padding: 0.75rem 1rem;
        border-left-width: 3px;
    }

    .dolor-cierre-mobile .dolor-cierre p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .dolor-cierre-mobile .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .carousel-nav {
        margin-top: 0.75rem;
        gap: 0.35rem;
    }

    .dot-dolor {
        width: 6px;
        height: 6px;
    }

    .carousel-dolor {
        aspect-ratio: 4 / 3;
    }

    .slide-dolor .overlay {
        padding: 1.5rem;
    }

    .slide-dolor .overlay p {
        font-size: 1.05rem;
    }

    .arrow-dolor {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .arrow-dolor.prev { left: 0.75rem; }
    .arrow-dolor.next { right: 0.75rem; }
}

/* =============================================
   STACK SECTION — Orbit Layout
   ============================================= */
.stack-section {
    padding: 5rem 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.stack-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.stack-orbit-wrap {
    flex: 0 0 auto;
}

.stack-text {
    flex: 1;
    min-width: 0;
}

.stack-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.stack-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.stack-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Orbit container */
.orbit-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.orbit-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    opacity: 0;
    animation: orbit-pulse 3s ease-out infinite;
}

@keyframes orbit-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

.orbit-center img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
}

/* Orbit rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
}

.orbit-ring-inner {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    animation: orbit-spin 25s linear infinite;
}

.orbit-ring-outer {
    width: 350px;
    height: 350px;
    margin-left: -175px;
    margin-top: -175px;
    animation: orbit-spin 40s linear infinite reverse;
}

@keyframes orbit-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Orbit logos */
.orbit-logo {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.orbit-logo:hover {
    box-shadow: 0 4px 16px rgba(230, 89, 38, 0.2);
}

.orbit-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Inner ring logo positions (4 logos) */
.orbit-ring-inner .orbit-logo {
    animation: counter-spin 25s linear infinite;
}
.orbit-ring-inner .orbit-logo:nth-child(1) { top: -20px; left: 50%; margin-left: -20px; }
.orbit-ring-inner .orbit-logo:nth-child(2) { top: 50%; right: -20px; margin-top: -20px; }
.orbit-ring-inner .orbit-logo:nth-child(3) { bottom: -20px; left: 50%; margin-left: -20px; }
.orbit-ring-inner .orbit-logo:nth-child(4) { top: 50%; left: -20px; margin-top: -20px; }

/* Outer ring logo positions (6 logos) */
.orbit-ring-outer .orbit-logo {
    animation: counter-spin-reverse 40s linear infinite;
}
.orbit-ring-outer .orbit-logo:nth-child(1) { top: -20px; left: 50%; margin-left: -20px; }
.orbit-ring-outer .orbit-logo:nth-child(2) { top: 10%; right: -6px; }
.orbit-ring-outer .orbit-logo:nth-child(3) { bottom: 10%; right: -6px; }
.orbit-ring-outer .orbit-logo:nth-child(4) { bottom: -20px; left: 50%; margin-left: -20px; }
.orbit-ring-outer .orbit-logo:nth-child(5) { bottom: 10%; left: -6px; }
.orbit-ring-outer .orbit-logo:nth-child(6) { top: 10%; left: -6px; }

@keyframes counter-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
@keyframes counter-spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .stack-split {
        flex-direction: column;
        gap: 2rem;
    }
    .stack-text {
        text-align: center;
    }
    .orbit-container { width: 300px; height: 300px; }
    .orbit-ring-inner { width: 160px; height: 160px; margin-left: -80px; margin-top: -80px; }
    .orbit-ring-outer { width: 270px; height: 270px; margin-left: -135px; margin-top: -135px; }
    .orbit-center { width: 58px; height: 58px; }
    .orbit-center img { width: 36px; height: 36px; }
    .orbit-logo { width: 34px; height: 34px; }
    .orbit-logo img { width: 20px; height: 20px; }
    .orbit-ring-inner .orbit-logo:nth-child(1) { top: -17px; margin-left: -17px; }
    .orbit-ring-inner .orbit-logo:nth-child(2) { right: -17px; margin-top: -17px; }
    .orbit-ring-inner .orbit-logo:nth-child(3) { bottom: -17px; margin-left: -17px; }
    .orbit-ring-inner .orbit-logo:nth-child(4) { left: -17px; margin-top: -17px; }
    .orbit-ring-outer .orbit-logo:nth-child(1) { top: -17px; margin-left: -17px; }
    .orbit-ring-outer .orbit-logo:nth-child(4) { bottom: -17px; margin-left: -17px; }
}

/* =============================================
   ICP SECTION — Tabs + Checks
   ============================================= */
.icp-section {
    padding: 5rem 0;
    background: var(--bg-tertiary);
}

.icp-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.icp-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.icp-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.icp-layout {
    display: flex;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.icp-left {
    flex: 1.4;
    min-width: 0;
}

.icp-right {
    flex: 1;
    min-width: 0;
}

.icp-sectors-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Sector tabs nav */
.sector-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.sector-tabs-nav::-webkit-scrollbar {
    display: none;
}

.sector-tab-btn {
    padding: 0.65rem 0.9rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.sector-tab-btn:hover {
    color: var(--text-primary);
}

.sector-tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.sector-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

/* Sector tab panes */
.sector-tab-pane {
    display: none;
    animation: icp-tab-fade 0.3s ease;
}

.sector-tab-pane.active {
    display: block;
}

@keyframes icp-tab-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.sector-tab-content {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.sector-tab-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.sector-tab-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Checks box */
.icp-checks-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.4rem;
}

.icp-checks-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.icp-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.icp-check:last-child {
    margin-bottom: 0;
}

.icp-check svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Cierre */
.icp-cierre {
    text-align: center;
    max-width: 600px;
    margin: 1rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.icp-cierre p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.icp-cierre .btn {
    margin-right: 1rem;
}

.btn-icp-subtle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration-color: var(--border-color);
    display: inline-block;
}

.btn-icp-subtle:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

@media (max-width: 768px) {
    .icp-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .icp-cierre .btn {
        margin-right: 0;
        margin-bottom: 0.75rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════
   CASES PAGE — Filter & Listing
   ═══════════════════════════════════════════════ */

/* ── Fixed background with floating logos ── */
.float-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--bg-primary) 0%, #ebe8e0 60%, #ddd9cf 100%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.float-bg ~ .footer {
    position: relative;
    z-index: 1;
}

/* ── Hero with floating logos ── */
.hero-float {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 1;
}

.hero-float .hero-content {
    position: relative;
    z-index: 2;
}

.float-logo {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.float-logo:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 12px 36px rgba(230, 89, 38, 0.15);
    border-color: var(--accent-color);
    z-index: 10;
}

.float-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.float-logo.lg { width: 100px; height: 100px; padding: 18px; }
.float-logo.md { width: 84px; height: 84px; padding: 15px; }
.float-logo.sm { width: 68px; height: 68px; padding: 12px; }

.float-logo.logo-1 { top: 12%; left: 6%; animation: float-gentle 6s ease-in-out infinite; }
.float-logo.logo-2 { top: 8%; right: 12%; animation: drift-diagonal 8s ease-in-out infinite; }
.float-logo.logo-3 { top: 40%; left: 3%; animation: ellipse-drift 10s ease-in-out infinite; }
.float-logo.logo-4 { top: 35%; right: 5%; animation: bounce-soft 5s ease-in-out infinite; }
.float-logo.logo-5 { bottom: 18%; left: 8%; animation: sway-horizontal 7s ease-in-out infinite; }
.float-logo.logo-6 { bottom: 15%; right: 8%; animation: figure-eight 12s ease-in-out infinite; }
.float-logo.logo-7 { top: 22%; left: 18%; animation: float-rotate 9s ease-in-out infinite; }
.float-logo.logo-8 { top: 20%; right: 20%; animation: zigzag-vertical 7s ease-in-out infinite; }
.float-logo.logo-9 { top: 58%; left: 12%; animation: pendulum 8s ease-in-out infinite; }
.float-logo.logo-10 { top: 55%; right: 14%; animation: float-gentle 7s ease-in-out infinite reverse; }
.float-logo.logo-11 { bottom: 8%; left: 22%; animation: drift-diagonal-rev 9s ease-in-out infinite; }
.float-logo.logo-12 { bottom: 10%; right: 22%; animation: bounce-soft 6s ease-in-out infinite 1s; }
.float-logo.logo-13 { bottom: 30%; left: 2%; animation: ellipse-drift 11s ease-in-out infinite reverse; }
.float-logo.logo-14 { top: 48%; right: 2%; animation: sway-horizontal 6s ease-in-out infinite reverse; }

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes drift-diagonal {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-12px, 10px); }
    50% { transform: translate(-6px, 20px); }
    75% { transform: translate(8px, 10px); }
}
@keyframes drift-diagonal-rev {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -8px); }
    50% { transform: translate(5px, -16px); }
    75% { transform: translate(-8px, -8px); }
}
@keyframes ellipse-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(0, -20px); }
    75% { transform: translate(-15px, -10px); }
}
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-14px); }
    60% { transform: translateY(-6px); }
}
@keyframes sway-horizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(16px); }
}
@keyframes figure-eight {
    0%, 100% { transform: translate(0, 0); }
    12.5% { transform: translate(12px, -8px); }
    25% { transform: translate(0, -16px); }
    37.5% { transform: translate(-12px, -8px); }
    50% { transform: translate(0, 0); }
    62.5% { transform: translate(12px, 8px); }
    75% { transform: translate(0, 16px); }
    87.5% { transform: translate(-12px, 8px); }
}
@keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes zigzag-vertical {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -12px); }
    50% { transform: translate(0, -20px); }
    75% { transform: translate(-8px, -12px); }
}
@keyframes pendulum {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(2deg) translateY(-6px); }
    50% { transform: rotate(0deg) translateY(-12px); }
    75% { transform: rotate(-2deg) translateY(-6px); }
}

.hero-stat-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}
.hero-stat span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Sticky filter bar ── */
.cases-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.75rem 5%;
    margin-bottom: 1rem;
    position: sticky;
    top: 72px;
    z-index: 40;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cases-filter-bar.stuck {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Service filter pill group */
.cases-service-filter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem;
}

.service-filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.service-filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.service-filter-btn.active {
    background: var(--text-primary);
    color: #fff;
    font-weight: 600;
}

.service-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.service-dot.dot-ventas { background: var(--accent-color); }
.service-dot.dot-operaciones { background: #2563eb; }

.service-filter-btn.active .service-dot.dot-ventas,
.service-filter-btn.active .service-dot.dot-operaciones { background: #fff; }

/* Filter wrap — always-open pill bar on desktop */
.cases-filter-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem;
}

/* Trigger — hidden on desktop */
.cases-filter-trigger {
    display: none;
}

/* Options — always visible on desktop */
.cases-filter-options {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Individual filter option */
.filter-option {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-option.active {
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
}

/* Cases section — transparent so fixed bg shows through */
.cases-section {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 1rem 0 1.5rem;
}

/* Cases grid — stacked full-width cards */
.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal card */
.card-case {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.card-case.visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card-case.hidden {
    display: none;
}

/* Left visual area */
.case-card-visual {
    flex: 0 0 320px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.case-card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 89, 38, 0.06) 0%, transparent 70%);
    transition: transform 0.6s ease;
}

.card-case:hover .case-card-visual::before {
    transform: scale(1.3);
}

.case-company-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.case-company-logo {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    mix-blend-mode: multiply;
}

.case-card-visual:has(.case-company-logo) {
    padding: 1.5rem;
}

.case-card-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
}

/* Right content area */
.case-card-content {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.case-card-content .article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.case-card-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.case-card-metric strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.case-card-metric span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Unified metrics row in case cards */
.case-card-metrics {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.case-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.case-metric strong {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.case-metric span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.case-metric-highlight {
    background: rgba(230, 89, 38, 0.08);
}

.case-metric-highlight strong {
    color: var(--accent-color);
}

.card-case[data-service="operaciones"] .case-metric-highlight {
    background: rgba(37, 99, 235, 0.08);
}

.card-case[data-service="operaciones"] .case-metric-highlight strong {
    color: #2563eb;
}

.case-card-content .article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.case-card-content .btn-link {
    align-self: flex-start;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card-case:hover .btn-link {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* CTA Card — always last */
.card-case-cta {
    order: 9999;
    cursor: default;
}

.card-case-cta .case-card-visual {
    background: linear-gradient(135deg, rgba(230, 89, 38, 0.12) 0%, rgba(230, 89, 38, 0.06) 100%) !important;
}

.card-case-cta .case-company-name,
.card-case-cta .case-card-category {
    color: var(--text-primary) !important;
}

.card-case-cta:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.card-case-cta .case-card-content h3 {
    font-size: 1.6rem;
}

/* Service-colored card visuals */
.card-case[data-service="ventas"] .case-card-visual {
    background: linear-gradient(135deg, #fef3ed 0%, #fdf0e8 100%);
}
.card-case[data-service="ventas"] .case-card-visual::before {
    background: radial-gradient(circle, rgba(230, 89, 38, 0.08) 0%, transparent 70%);
}
.card-case[data-service="ventas"] .case-card-metric strong {
    color: var(--accent-color);
}

.card-case[data-service="operaciones"] .case-card-visual {
    background: linear-gradient(135deg, #eff4ff 0%, #e8eeff 100%);
}
.card-case[data-service="operaciones"] .case-card-visual::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}
.card-case[data-service="operaciones"] .case-card-metric strong {
    color: #2563eb;
}

/* Service badge in card visual */
.case-service-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}
.case-service-badge.badge-ventas {
    background: rgba(230, 89, 38, 0.12);
    color: var(--accent-color);
}
.case-service-badge.badge-operaciones {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE — Consolidated
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Global overrides ── */
    section {
        padding: 3rem 0;
    }

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

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-split {
        flex-direction: column;
    }

    .split-header,
    .split-content {
        min-width: 0 !important;
        flex: unset !important;
        padding-left: 0 !important;
    }

    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ── 01 Hero ── */
    .hero-section {
        padding: 5rem 0 3rem;
    }

    .headline br {
        display: none;
    }

    .lgaas-hero .headline br {
        display: block;
    }

    .rotating-wrapper {
        display: block;
        height: auto;
        min-height: 1.4em;
    }

    .subheadline {
        margin-bottom: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* ── 02 Metrics ── */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .metrics-section {
        padding: 2rem 0;
    }

    /* ── 03 Logos Marquee ── */
    .marquee-content {
        gap: 3rem;
        padding-right: 3rem;
    }

    .marquee-content a {
        font-size: 1rem;
    }

    .brand-logo-icon {
        height: 28px;
        max-width: 80px;
    }

    /* ── 05 Soluciones / Services ── */
    .tabs-nav {
        flex-wrap: wrap;
        padding: 0 0.75rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .tabs-content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .wf-columns {
        flex-direction: column;
        gap: 1.25rem;
    }

    .wf-col-left,
    .wf-col-right {
        flex: unset !important;
        max-width: 100% !important;
        width: 100%;
    }

    .lead-scoring-mockup {
        max-width: 100%;
    }

    .email-mockup {
        max-width: 100%;
    }

    /* ── Workflow stat tiles ── */
    .wf-stat-tiles {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Tabs content grids ── */
    .tabs-content .grid-3 {
        grid-template-columns: 1fr;
    }

    .tabs-content .card-service {
        text-align: left;
        align-items: flex-start;
    }

    /* ── 04 Dolor ── */
    .dolor-section {
        padding: 3rem 0;
    }

    .dolor-card {
        padding: 1rem 1.25rem;
    }

    .dolor-cierre {
        padding: 1.25rem 1.5rem;
    }

    /* ── 09 About — team carousel height fix ── */
    .team-carousel-track {
        min-height: 320px;
    }

    /* ── 13 Contact ── */
    .contact-form {
        padding: 1.5rem;
    }

    .email-capture-form input {
        min-width: 0;
    }
}


/* ── Small phones ── */
@media (max-width: 480px) {
    .container {
        padding: 0 6%;
    }

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

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

    .hero-section {
        padding: 4rem 0 2rem;
    }

    .tab-btn .badge {
        display: none;
    }

    .wf-stat-tiles {
        grid-template-columns: 1fr;
    }

    .tabs-content {
        padding: 1.25rem;
    }

    /* ── Cases page ── */
    .hero-float {
        min-height: 60vh;
        padding: 5rem 0 2rem;
    }

    .float-logo.lg { width: 64px; height: 64px; padding: 12px; }
    .float-logo.md { width: 54px; height: 54px; padding: 10px; }
    .float-logo.sm { width: 46px; height: 46px; padding: 8px; }

    .float-logo.logo-1 { top: 8%; left: 4%; }
    .float-logo.logo-2 { top: 5%; right: 4%; }
    .float-logo.logo-3 { top: 30%; left: 1%; }
    .float-logo.logo-4 { top: 28%; right: 1%; }
    .float-logo.logo-5 { bottom: 22%; left: 3%; }
    .float-logo.logo-6 { bottom: 20%; right: 3%; }
    .float-logo.logo-7 { top: 16%; left: 25%; }
    .float-logo.logo-8 { top: 14%; right: 25%; }
    .float-logo.logo-9 { display: none; }
    .float-logo.logo-10 { display: none; }
    .float-logo.logo-11 { bottom: 6%; left: 15%; }
    .float-logo.logo-12 { bottom: 8%; right: 15%; }
    .float-logo.logo-13 { display: none; }
    .float-logo.logo-14 { display: none; }

    .hero-stat-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cases-filter-bar {
        top: 60px;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 4%;
    }

    .cases-filter-wrap {
        position: relative;
        max-width: none;
        flex-direction: column;
        border-radius: 16px;
        padding: 0.3rem;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .cases-filter-wrap.open {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    /* Show trigger on mobile */
    .cases-filter-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 1.2rem;
        background: none;
        border: none;
        border-radius: 999px;
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent-color);
        cursor: pointer;
        white-space: nowrap;
    }

    .cases-filter-icon {
        color: var(--accent-color);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cases-filter-wrap.open .cases-filter-icon {
        transform: rotate(180deg);
    }

    /* Options hidden by default on mobile */
    .cases-filter-options {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        width: 100%;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease;
    }

    .cases-filter-wrap.open .cases-filter-options {
        max-height: 400px;
        opacity: 1;
        padding-bottom: 0.3rem;
    }

    .filter-option {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
        border-radius: 12px;
        text-align: center;
        width: 100%;
    }

    .cases-service-filter {
        width: 100%;
        justify-content: center;
    }

    .service-filter-btn {
        flex: 1;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.45rem 0.6rem;
    }

    .card-case {
        flex-direction: column;
    }

    .case-card-visual {
        flex: none;
        padding: 2rem;
        min-height: 160px;
    }

    .case-card-content {
        padding: 1.5rem;
    }

    .case-card-metrics {
        gap: 0.35rem;
    }

    .case-metric strong {
        font-size: 0.95rem;
    }

    .case-metric span {
        font-size: 0.65rem;
    }
}


/* ═══════════════════════════════════════════════
   CASE STUDY — Individual Page Template
   ═══════════════════════════════════════════════ */

/* Back link */
.cs-back {
    padding: 1.5rem 0 0;
}

.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Hero */
.cs-hero {
    padding: 3rem 0 4rem;
}

.cs-hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.cs-hero-text {
    flex: 1;
}

.cs-hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 1rem 0 1.25rem;
    color: var(--text-primary);
}

.cs-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

.cs-hero-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    min-width: 180px;
}

.cs-hero-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cs-company-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cs-company-industry {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Key Metrics */
.cs-metrics {
    padding: 0 0 3.5rem;
}

.cs-metrics-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.cs-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    padding: 0 1.5rem;
}

.cs-metric strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1;
}

.cs-metric span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cs-metric-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Pillars — Challenge / Solution / Results */
.cs-pillars {
    padding: 0 0 4rem;
}

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

.cs-pillar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.cs-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(230, 89, 38, 0.08);
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.cs-pillar h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cs-pillar p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* Narrative */
.cs-narrative {
    padding: 0 0 4rem;
}

.cs-narrative-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cs-narrative-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.cs-narrative-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.cs-narrative-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.case-study-paywall {
    position: relative;
}

.case-study-paywall:not(.is-unlocked) {
    max-height: 680px;
    overflow: hidden;
    padding-bottom: 20rem;
}

.case-study-paywall:not(.is-unlocked)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 320px;
    background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(250, 247, 242, 0.75) 28%, rgba(250, 247, 242, 0.94) 62%, #faf7f2 100%);
    pointer-events: none;
    z-index: 1;
}

.case-study-gate {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    z-index: 2;
}

.case-study-gate-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
}

.case-study-gate-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.case-study-gate-card h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.case-study-gate-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.case-study-gate-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.case-study-gate-form input {
    flex: 1;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.case-study-gate-form input:focus {
    outline: 1px solid var(--accent-color);
    outline-offset: 2px;
}

/* Quote */
.cs-quote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    border-left: 3px solid var(--accent-color);
    background: var(--bg-tertiary);
    border-radius: 0 12px 12px 0;
}

.cs-quote p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Related Cases */
.cs-related {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border-color);
}

.cs-related h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cs-related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cs-related-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    min-height: 100px;
}

.cs-related-logo {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cs-related-visual span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cs-related-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cs-related-body h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

/* CTA */
.cs-cta {
    padding: 3rem 0 2rem;
}

.cs-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
}

/* ── Case Study Mobile ── */
@media (max-width: 768px) {
    .cs-hero-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .cs-hero-text h1 {
        font-size: 1.8rem;
    }

    .cs-hero-subtitle {
        font-size: 1rem;
        max-width: none;
    }

    .cs-hero-text .article-tags {
        justify-content: center;
    }

    .cs-hero-logo {
        padding: 1.5rem 2rem;
        min-width: unset;
    }

    .cs-hero-logo img {
        width: 60px;
        height: 60px;
    }

    .cs-metrics-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cs-metric-divider {
        width: 60%;
        height: 1px;
    }

    .cs-metric {
        padding: 0;
    }

    .cs-metric strong {
        font-size: 1.6rem;
    }

    .cs-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cs-narrative-content h2 {
        font-size: 1.5rem;
    }

    .cs-quote {
        padding: 1.25rem 1.5rem;
        margin: 2rem 0;
    }

    .cs-quote p {
        font-size: 1rem;
    }

    .cs-related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cs-related h2 {
        font-size: 1.3rem;
    }

    .cs-cta h2 {
        font-size: 1.4rem;
    }

    .case-study-paywall:not(.is-unlocked) {
        max-height: 820px;
        padding-bottom: 23rem;
    }

    .case-study-gate {
        width: calc(100% - 2rem);
        bottom: 1.5rem;
    }

    .case-study-gate-card {
        border-radius: 20px;
        padding: 1.25rem;
    }

    .case-study-gate-card h3 {
        font-size: 1.5rem;
    }

    .case-study-gate-form {
        flex-direction: column;
    }

    .case-study-gate-form input,
    .case-study-gate-form .btn {
        width: 100%;
    }
}

/* ========================================
   LGaaS PAGE
   ======================================== */

/* Scroll-triggered animations */
.lgaas-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.lgaas-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
.lgaas-fade[data-delay="1"] { transition-delay: 0.1s; }
.lgaas-fade[data-delay="2"] { transition-delay: 0.2s; }
.lgaas-fade[data-delay="3"] { transition-delay: 0.3s; }
.lgaas-fade[data-delay="4"] { transition-delay: 0.4s; }
.lgaas-fade[data-delay="5"] { transition-delay: 0.5s; }
.lgaas-fade[data-delay="6"] { transition-delay: 0.6s; }

.lgaas-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.lgaas-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.lgaas-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.lgaas-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.lgaas-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.lgaas-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Components */
.card-highlight {
    border-left: 3px solid var(--accent-color);
}

.checklist-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist-simple li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.checklist-simple li:last-child {
    border-bottom: none;
}

.card-feature hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.2rem 0;
}

/* LGaaS flow comparison section */
.lgaas-flow-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.lgaas-flow-block {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
.lgaas-flow-block--after {
    background: rgba(230, 89, 38, 0.08);
}
.lgaas-flow-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.lgaas-flow-label--accent {
    color: var(--accent-color);
}
.lgaas-flow-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.5rem;
}
.lgaas-flow-row:last-child {
    margin-bottom: 0;
}
.lgaas-flow-step-arrow {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
.lgaas-flow-step-arrow--big {
    flex: 3;
}
.lgaas-flow-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 0.25rem;
    white-space: nowrap;
}
.lgaas-flow-text--accent {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lgaas-flow-text--bold {
    color: var(--text-primary);
    font-weight: 500;
}
.lgaas-flow-line {
    height: 2px;
    background: var(--border-color);
    position: relative;
    margin-right: 4px;
}
.lgaas-flow-line::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--border-color);
}
.lgaas-flow-line--accent {
    height: 3px;
    background: var(--accent-color);
}
.lgaas-flow-line--accent::after {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 10px;
    border-left-color: var(--accent-color);
}

@media (max-width: 768px) {
    .lgaas-flow-block {
        padding: 1.5rem 1rem;
    }
    .lgaas-flow-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .lgaas-flow-step-arrow {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .lgaas-flow-step-arrow--big {
        flex: 0 0 100%;
    }
    .lgaas-flow-text {
        font-size: 0.78rem;
    }
    .lgaas-flow-label {
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════
   04b - CALCULADORA DE POTENCIAL
   ═══════════════════════════════════════════════ */
.calc-section {
    padding: 5rem 0;
}

.calc-flow {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── TAM Form ── */
.calc-tam-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.calc-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.calc-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Checkbox grid: 2 columns */
.calc-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}

.calc-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.35rem 0;
}

.calc-checkbox-item input[type="checkbox"] {
    display: none;
}

.calc-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.calc-checkbox-item input[type="checkbox"]:checked + .calc-checkbox-mark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.calc-checkbox-item input[type="checkbox"]:checked + .calc-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calc-checkbox-grid.highlight {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Pill selector for industries */
.calc-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.calc-pill-grid.highlight {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.calc-pill-item {
    cursor: pointer;
}

.calc-pill-item input[type="checkbox"] {
    display: none;
}

.calc-pill-label {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: all 0.2s ease;
    user-select: none;
}

.calc-pill-item:hover .calc-pill-label {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.calc-pill-item input[type="checkbox"]:checked + .calc-pill-label {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 500;
}

/* Number inputs for ranges */
.calc-range-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.calc-input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

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

.calc-range-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Select dropdown */
.calc-select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c5c5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
}

.calc-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Location multi-select dropdown */
.calc-location-select {
    position: relative;
    width: 100%;
    z-index: 20;
}

.calc-location-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

.calc-location-trigger:hover {
    border-color: var(--accent-color);
}

.calc-location-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: -3px;
}

.calc-location-select.open .calc-location-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.calc-location-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    z-index: 10;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calc-location-select.open .calc-location-dropdown {
    display: block;
}

.calc-location-dropdown .calc-checkbox-item {
    padding: 0.3rem 0;
}

/* 3-column result grid (centrado) */
.calc-result-grid--3col {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.calc-result-blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

/* ── Trigger button ── */
.calc-btn-trigger {
    margin-top: 2rem;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ── Recalculate button ── */
.calc-btn-recalc {
    display: none;
    margin-top: 1rem;
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
}

.calc-btn-recalc.visible {
    display: inline-block;
}

/* ── Loading state ── */
.calc-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 2rem 0;
}

.calc-loading.visible {
    display: flex;
}

.calc-loading p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: calc-spin 0.8s linear infinite;
}

@keyframes calc-spin {
    to { transform: rotate(360deg); }
}

/* ── Results panel ── */
.calc-results {
    display: none;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(15px);
    text-align: center;
}

.calc-results.visible {
    display: block;
    animation: calc-reveal 0.5s ease forwards;
}

@keyframes calc-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-results .badge {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.calc-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.calc-result-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.1;
}

.calc-result-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Lead capture section ── */
.calc-lead-section {
    display: none;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0;
}

.calc-lead-section.visible {
    display: block;
    animation: calc-reveal 0.5s ease forwards;
}

.calc-lead-intro {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.calc-lead-form {
    display: flex;
    gap: 0.6rem;
    max-width: 500px;
    margin: 0 auto;
}

.calc-lead-form input {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

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

.calc-lead-form .btn {
    white-space: nowrap;
}

/* ── Toast notification ── */
.calc-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.4s ease;
    max-width: min(92vw, 560px);
    text-align: center;
    cursor: pointer;
}

.calc-toast.visible {
    bottom: 2rem;
}

.calc-toast.error {
    background: #fff1f2;
    color: #9f1239;
    box-shadow: 0 8px 30px rgba(159, 18, 57, 0.16);
    border: 1px solid rgba(190, 24, 93, 0.18);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(18px);
    width: min(94vw, 920px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border-radius: 24px;
    background: rgba(26, 26, 26, 0.94);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.cookie-banner-copy {
    min-width: 0;
}

.cookie-banner-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cookie-banner-copy p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.cookie-banner-copy a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
}

.legal-page {
    min-height: 60vh;
}

.legal-hero {
    padding: 6rem 0 3rem;
}

.legal-section {
    padding: 2rem 0 5rem;
}

.legal-copy {
    max-width: 860px;
}

.legal-copy h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 0.9rem;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p,
.legal-copy li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .calc-section {
        padding: 3rem 0;
    }
    .calc-result-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .calc-results {
        padding: 1.5rem;
    }
    .calc-result-number {
        font-size: 1.6rem;
    }
    .calc-lead-form {
        flex-direction: column;
    }
    .calc-checkbox-grid {
        grid-template-columns: 1fr;
    }
    .calc-tam-form {
        padding: 1.25rem;
    }
    .calc-result-grid--3col {
        flex-direction: column;
        gap: 1.5rem;
    }
    .calc-form-row-2col {
        grid-template-columns: 1fr;
    }
    .calc-pill-label {
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }
    .calc-range-row {
        gap: 0.5rem;
    }
    .calc-btn-trigger {
        width: 100%;
    }
    .calc-btn-recalc {
        width: 100%;
    }
    .calc-location-dropdown {
        position: relative;
        top: auto;
        box-shadow: none;
        border-top: none;
        border-radius: 0 0 4px 4px;
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .calc-tam-form {
        padding: 1rem;
    }
    .calc-pill-grid {
        gap: 0.4rem;
    }
    .calc-pill-label {
        padding: 0.45rem 0.75rem;
        font-size: 0.78rem;
    }
    .calc-input {
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
        min-width: 0;
    }
    .calc-range-separator {
        font-size: 0.8rem;
    }
    .calc-results {
        padding: 1rem;
    }

    .cookie-banner {
        width: calc(100% - 20px);
        bottom: 1rem;
    }

    .cookie-banner-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
    }

    .cookie-banner-btn {
        width: 100%;
    }

    .legal-hero {
        padding: 5rem 0 2.5rem;
    }

    .legal-copy h2 {
        font-size: 1.35rem;
    }
    .calc-result-number {
        font-size: 1.4rem;
    }
    .calc-lead-form .btn {
        width: 100%;
    }
}

/* LGaaS consistent section spacing */
.lgaas-hero ~ section {
    padding: 3.5rem 0;
}

/* LGaaS card step + badge row */
.lgaas-hero ~ * .card-service .card-step {
    opacity: 1;
    display: inline;
    margin-bottom: 0;
    margin-right: auto;
}
.lgaas-hero ~ * .card-service .badge {
    margin-bottom: 0;
}
.lgaas-hero ~ * .card-service .card-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* LGaaS card hover & text sizing */
.lgaas-hero ~ * .card-service,
.lgaas-hero ~ * .card-feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lgaas-hero ~ * .card-service:hover,
.lgaas-hero ~ * .card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}
.lgaas-hero ~ * .card-service p,
.lgaas-hero ~ * .card-feature p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* LGaaS Enfoque Timeline (vertical zigzag) */
.enfoque-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Línea central continua */
.enfoque-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--accent-color), #f4a574);
    transform: translateX(-50%);
    border-radius: 3px;
}

.enfoque-step {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    gap: 1rem;
    align-items: start;
    position: relative;
}

.enfoque-step:nth-child(n+3) {
    margin-top: -3.5rem;
}

/* Card 02 un poco más arriba */
.enfoque-step:nth-child(3) {
    margin-top: -5.5rem;
}

/* Card 03 más cerca de card 01 */
.enfoque-step:nth-child(4) {
    margin-top: -5.5rem;
}

.enfoque-spacer {
    /* Lado vacío opuesto a la card */
}

.enfoque-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    justify-self: center;
}

/* Conector horizontal bolita → card */
.enfoque-number::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 1rem;
    background: var(--accent-color);
    transform: translateY(-50%);
}

.enfoque-step--left .enfoque-number::after {
    right: 100%;
}

.enfoque-step--right .enfoque-number::after {
    left: 100%;
}

.enfoque-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.15rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enfoque-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.enfoque-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.enfoque-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.enfoque-list li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.enfoque-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* LGaaS Responsive */
@media (max-width: 768px) {
    .lgaas-hero ~ section { padding: 2.5rem 0; }
    .lgaas-hero { padding: 3rem 0 2rem; }
    .lgaas-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .lgaas-comparison .grid-2 { grid-template-columns: 1fr; }
    .lgaas-slide-left { transform: translateX(-20px); }
    .lgaas-slide-right { transform: translateX(20px); }
    .lgaas-fade { transform: translateY(20px); }
    .checklist-simple li { font-size: 0.9rem; }
    .lgaas-cta .layout-split { flex-direction: column; }
    /* Enfoque: colapsar a columna simple en mobile */
    .enfoque-line { left: 16px; }
    .enfoque-step {
        grid-template-columns: 32px 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .enfoque-spacer { display: none; }
    .enfoque-number {
        width: 32px; height: 32px; font-size: 0.8rem;
        grid-column: 1;
        grid-row: 1;
    }
    .enfoque-card {
        padding: 1.25rem;
        grid-column: 2;
        grid-row: 1;
    }
    .enfoque-step:nth-child(n+3),
    .enfoque-step:nth-child(3),
    .enfoque-step:nth-child(4) { margin-top: 0; }
    .enfoque-number::after { display: none; }
    .enfoque-card h3 { font-size: 1.05rem; }
    .enfoque-list li { font-size: 0.87rem; padding-left: 1rem; }
    .enfoque-list li::before { width: 5px; height: 5px; top: 0.6em; }
}

@media (max-width: 480px) {
    .lgaas-hero .cta-group { flex-direction: column; gap: 0.75rem; }
    .lgaas-hero .cta-group .btn { width: 100%; text-align: center; }
    .enfoque-line { left: 12px; }
    .enfoque-step { grid-template-columns: 24px 1fr; gap: 0.75rem; }
    .enfoque-number { width: 24px; height: 24px; font-size: 0.7rem; }
    .enfoque-card { padding: 0.85rem; }
    .enfoque-card h3 { font-size: 0.95rem; }
    .enfoque-list li { font-size: 0.83rem; padding-left: 0.85rem; }
}


/* ========================================
   ABOUT PAGE
   ======================================== */

/* Tighter section spacing */
.about-section section {
    padding: 3.5rem 0;
}

.about-section .hero-section {
    padding: 5rem 0 3rem;
}

.about-section .cta-section {
    padding: 4rem 0;
}

/* Reverse layout-split (content left, header right) */
.layout-split-reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .layout-split-reverse {
        flex-direction: column;
    }
}

/* Story text */
.about-story {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.about-story p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Values carousel */
.values-carousel {
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.values-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-value {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.card-value:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 89, 38, 0.08);
    border-radius: 10px;
    margin: 0 auto 1rem;
}

.card-value h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-value p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Carousel navigation */
.values-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.values-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.values-nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(230, 89, 38, 0.06);
}

.values-dots {
    display: flex;
    gap: 0.5rem;
}

.values-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.values-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* Team cards */
.card-team {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-team:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-sm {
    aspect-ratio: 1;
    max-width: 160px;
    margin: 0 auto;
}

.team-photo-placeholder {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.team-photo-sm .team-photo-placeholder {
    font-size: 1.5rem;
}

.card-team h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-team .text-secondary {
    font-size: 0.85rem;
}

.card-team-compact {
    padding: 1.25rem;
}

/* About responsive */
@media (max-width: 900px) {
    .card-value {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .card-value {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .about-value-icon {
        width: 40px;
        height: 40px;
    }

    .team-photo-sm {
        max-width: 120px;
    }
}

/* ===== Social Page ===== */
.card-social {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-social:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.card-social-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-social-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    background: rgba(230, 89, 38, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.card-social-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.card-social h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Social intro layout */
.social-intro {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.social-intro-illustration {
    flex: 0 0 280px;
}

.social-intro-illustration svg {
    width: 100%;
    height: auto;
}

.social-intro-content {
    flex: 1;
}

@media (max-width: 768px) {
    .social-intro {
        flex-direction: column;
        gap: 2rem;
    }

    .social-intro-illustration {
        flex: none;
        width: 180px;
        margin: 0 auto;
    }
}
