/*
═══════════════════════════════════════════════════════════════════════════
IVC - INSTANT VALUE CREATION | STYLESHEET
Verum-X (70%) + Smart-2U (30%) Branding
Responsive Design | Light/Dark Themes | Mobile-First Approach
═══════════════════════════════════════════════════════════════════════════
*/

/* ═══════════════════════════════════════════════════════════════════════
   CSS VARIABLES - THEME SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Verum-X Primary Colors (70% - Professional, Serious) */
    --vx-dark: #1a1a2e;
    --vx-medium: #2d2d44;
    --vx-accent: #3b3b5c;
    --vx-light: #4a4a6a;
    
    /* Smart-2U Accent Colors (30% - Tech, Vibrant) */
    --s2u-primary: #00d4ff;
    --s2u-secondary: #7b2cbf;
    --s2u-accent: #ff6b35;
    --s2u-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Dark Theme Variables */
.theme-dark {
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #2d2d44;
    --text-primary: #f8f9fa;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --border-color: #3b3b5c;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h4 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

a {
    color: var(--s2u-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--s2u-secondary);
}

strong {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: 1rem 0 !important;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--s2u-gradient);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-sm);
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.section-collapsible {
    position: relative;
}

.section-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto 0.75rem !important;
    padding: 0.75rem 1.5rem;
    background: var(--s2u-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
    position: relative;
    overflow: hidden;
}

.section-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.section-toggle-btn:hover::before {
    width: 300px;
    height: 300px;
}

.section-toggle-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(123, 44, 191, 0.5);
}

.section-toggle-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.section-toggle-icon {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    transition: transform var(--transition-base);
    z-index: 1;
}

.section-toggle-text {
    z-index: 1;
}

.section-collapsible.collapsed .section-toggle-icon {
    transform: rotate(0deg);
}

.section-collapsible.expanded .section-toggle-icon {
    transform: rotate(180deg);
}

.section-collapsible.expanded .section-toggle-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-content-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.section-collapsible.collapsed .section-content-collapsible {
    display: none;
}

.section-collapsible.expanded .section-content-collapsible {
    display: block;
    max-height: 5000px;
    animation: fadeInContent 0.5s ease-in;
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
    opacity: 1;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for toggle button */
@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(123, 44, 191, 0.6);
    }
}

.section-toggle-btn.pulse {
    animation: pulseButton 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

.header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    width: 100%;
}

/* Light theme: inverted gradient for header (30% darker than Cómo funciona) */
body:not(.theme-dark) .header {
    background: linear-gradient(315deg, 
        rgba(0, 212, 255, 0.47) 0%,      /* Cyan - 36% + 30% = 47% */
        rgba(123, 44, 191, 0.31) 50%,    /* Morado - 24% + 30% = 31% */
        rgba(0, 212, 255, 0.62) 100%     /* Cyan más intenso - 48% + 30% = 62% */
    );
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem var(--container-padding);
    gap: var(--space-sm);
    max-width: 100%;
    overflow: visible;
}

/* Logo IVC Principal (Left) */
.header-logo-main {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-ivc-link {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: var(--bg-secondary);
    transition: all var(--transition-base);
}

.logo-ivc-link:hover {
    border-color: var(--s2u-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.theme-dark .logo-ivc-link {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .logo-ivc-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--s2u-primary);
}

.logo-ivc-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Logo (legacy - keep for compatibility) */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.logo-verumx-img {
    height: 45px;
}

.logo-smart2u-img {
    height: 35px;
}

.logo-separator {
    color: var(--s2u-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1.5rem;
    margin: 0 0.25rem;
}

/* Logo text fallback (if images don't load) */
.logo-verumx {
    color: var(--vx-dark);
}

.theme-dark .logo-verumx {
    color: var(--text-primary);
}

.logo-smart2u {
    color: var(--s2u-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

/* Hamburger animation to X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation - Global styles (override in media queries) */
.nav {
    display: none; /* Hidden by default on mobile/tablet */
}

.nav.active {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Always on top */
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav.active .nav-list {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 90%;
    margin: 0 auto;
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-sm);
}

.nav.active .nav-list li {
    width: 100%;
}

.nav.active .nav-link {
    display: block;
    width: 100%;
    padding: var(--space-md);
    text-align: center;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    text-decoration: none;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--s2u-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
    border-color: var(--s2u-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.nav-link-cta {
    background: linear-gradient(135deg, var(--s2u-primary) 0%, var(--s2u-secondary) 100%);
    color: white !important;
    font-weight: var(--font-weight-bold);
    padding: 0.55rem 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    border: 2px solid transparent;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, var(--s2u-secondary) 0%, var(--s2u-primary) 100%);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark mode navigation */
.theme-dark .nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.theme-dark .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--s2u-primary);
}

/* ========================================
   DESKTOP NAVIGATION (Header Menu)
   ======================================== */
/* Hide desktop nav by default (mobile/tablet) */
.desktop-nav {
    display: none;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Collaborate Link */
.collaborate-link {
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.collaborate-link:hover {
    color: var(--s2u-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--s2u-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.theme-dark .collaborate-link {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
    color: var(--text-secondary);
}

.theme-dark .collaborate-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(123, 44, 191, 0.25) 100%);
    color: var(--s2u-primary);
}

/* Ecosystem Logos (Right side of header) */
.header-ecosystem-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.8rem;
    border-left: 1px solid var(--border-color);
}

.ecosystem-logo-link {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: var(--bg-secondary);
    transition: all var(--transition-base);
}

.ecosystem-logo-link:hover {
    border-color: var(--s2u-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.theme-dark .ecosystem-logo-link {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .ecosystem-logo-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: var(--s2u-primary);
}

.ecosystem-logo-link .logo-img {
    height: 45px;
}

.ecosystem-logo-link .logo-verumx-img {
    height: 48px;
}

.ecosystem-logo-link .logo-smart2u-img {
    height: 38px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.lang-btn-active {
    color: var(--s2u-primary);
    font-weight: var(--font-weight-bold);
}

.lang-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.theme-light .theme-icon-dark {
    display: none;
}

.theme-dark .theme-icon-light {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--s2u-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--s2u-primary);
    color: var(--s2u-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
    padding: 1.5rem 0 !important;
    /* Light theme gradient background - default */
    background: linear-gradient(135deg, 
        rgba(123, 44, 191, 0.36) 0%,     /* Morado */
        rgba(0, 212, 255, 0.24) 50%,     /* Cyan */
        rgba(123, 44, 191, 0.48) 100%    /* Morado más intenso */
    );
    position: relative;
    overflow: hidden;
}

/* Dark theme override */
.theme-dark .hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    /* Light theme glow - default */
    background: radial-gradient(circle, rgba(123, 44, 191, 0.42) 0%, rgba(0, 212, 255, 0.26) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Dark theme glow override */
.theme-dark .hero::before {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

/* Section: Cómo funciona - Inverted gradient (light theme only) */
.section-how-works {
    position: relative;
    overflow: hidden;
    /* Light theme: inverted gradient (cyan to purple, direction 315deg) */
    background: linear-gradient(315deg, 
        rgba(0, 212, 255, 0.36) 0%,      /* Cyan */
        rgba(123, 44, 191, 0.24) 50%,    /* Morado */
        rgba(0, 212, 255, 0.48) 100%     /* Cyan más intenso */
    );
}

/* Dark theme override for Cómo funciona */
.theme-dark .section-how-works {
    background: transparent;
}

/* Glow effect for Cómo funciona section (inverted colors, left side) */
.section-how-works::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    /* Light theme glow - inverted colors */
    background: radial-gradient(circle, rgba(0, 212, 255, 0.42) 0%, rgba(123, 44, 191, 0.26) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Dark theme glow override for Cómo funciona */
.theme-dark .section-how-works::before {
    display: none;
}

/* Ensure content is above the glow effect */
.section-how-works .container {
    position: relative;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-overtitle {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    color: var(--s2u-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.hero-title {
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--s2u-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.hero-bullets {
    list-style: none;
    margin-bottom: var(--space-md);
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bullets li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.hero-price {
    background-color: var(--bg-secondary);
    border: 2px solid var(--s2u-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--s2u-primary);
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Video Thumbnail */
.video-thumbnail-container {
    margin-bottom: var(--space-sm);
}

.video-thumbnail-no-controls {
    position: relative;
    max-width: 375px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.thumbnail-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide all video controls */
.thumbnail-video::-webkit-media-controls {
    display: none !important;
}

.thumbnail-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.thumbnail-video::-webkit-media-controls-panel {
    display: none !important;
}

.thumbnail-video::-webkit-media-controls-play-button {
    display: none !important;
}

.thumbnail-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-lg);
}

.content-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-secondary);
}

.content-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--s2u-primary);
    font-weight: var(--font-weight-bold);
}

.problem-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-lg);
}

.problem-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-secondary);
}

.problem-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   PROFILES SECTION (Para quién es)
   ═══════════════════════════════════════════════════════════════════════ */

/* Profiles Tabs Navigation */
.profiles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.profile-tab {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.profile-tab:hover {
    border-color: var(--s2u-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.profile-tab.active {
    background: var(--s2u-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(123, 44, 191, 0.3);
}

/* Profiles Content Container */
.profiles-content {
    max-width: 900px;
    margin: 0 auto;
}

.profile-panel {
    display: none;
    animation: fadeInProfile 0.4s ease-in;
}

.profile-panel.active {
    display: block;
}

@keyframes fadeInProfile {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section within Panel - Accordion Style */
.profile-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
}

.profile-section:hover {
    border-color: var(--s2u-primary);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: all var(--transition-fast);
}

.profile-section-header:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.profile-section.active .profile-section-header {
    background-color: rgba(0, 212, 255, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.profile-section h3 {
    color: var(--s2u-primary);
    font-size: 1.15rem;
    margin: 0;
    font-weight: var(--font-weight-semibold);
    flex: 1;
}

.profile-section-icon {
    font-size: 1.5rem;
    color: var(--s2u-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.profile-section.active .profile-section-icon {
    transform: rotate(45deg);
}

.profile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.profile-section.active .profile-section-content {
    max-height: 2000px;
}

.profile-section-content-inner {
    padding: var(--space-lg);
}

.profile-section-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.profile-section-content ul li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.profile-section-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--s2u-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
}

.profile-section-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

/* Responsive Design for Profiles */
@media (max-width: 1024px) {
    .profiles-tabs {
        display: none !important;
    }
    .profile-tab {
        max-width: 100%;
        flex: 1 1 auto;
    }
    .profile-section {
        padding: var(--space-md);
    }
    /* Mejorar botones colapsables en móviles */
    .section-toggle-btn {
        max-width: 90%;
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        margin: 0.5rem auto 0.75rem;
    }
    .section-toggle-icon {
        font-size: 1rem;
    }
    /* Asegurar que el contenido esté centrado */
    .container {
        padding: 0 1rem;
        margin: 0 auto;
        text-align: center;
    }
    .section-title {
        text-align: center;
        width: 100%;
    }
}

/* Old styles - keeping for backward compatibility if needed */
.who-for-list {
    list-style: none;
    padding-left: 0;
}

.who-for-list li {
    padding: 1rem;
    margin-bottom: var(--space-sm);
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--s2u-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    border-left: 4px solid var(--s2u-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.highlight-box h3 {
    color: var(--s2u-primary);
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   DELIVERABLES GRID
   ═══════════════════════════════════════════════════════════════════════ */

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.deliverable-card {
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.deliverable-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--s2u-primary);
}

.deliverable-card h3 {
    color: var(--s2u-primary);
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   STEPS (HOW IT WORKS)
   ═══════════════════════════════════════════════════════════════════════ */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.step-card {
    background-color: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    position: relative;
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--s2u-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--s2u-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    margin-top: var(--space-md);
    text-align: center;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   PROBLEMS & BENEFITS GRIDS
   ═══════════════════════════════════════════════════════════════════════ */

.problems-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.problem-card,
.benefit-card {
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.problem-card:hover,
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-card h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.benefit-card h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   INVESTMENT SECTION
   ═══════════════════════════════════════════════════════════════════════ */

/* Section: Inversión y retorno - Same gradient as hero (light theme only) */
.section-investment {
    position: relative;
    overflow: hidden;
    /* Light theme: same gradient as hero */
    background: linear-gradient(135deg, 
        rgba(123, 44, 191, 0.36) 0%,     /* Morado */
        rgba(0, 212, 255, 0.24) 50%,     /* Cyan */
        rgba(123, 44, 191, 0.48) 100%    /* Morado más intenso */
    );
}

/* Dark theme override for Inversión */
.theme-dark .section-investment {
    background: transparent;
}

/* Glow effect for Inversión section (same as hero, right side) */
.section-investment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    /* Light theme glow - same as hero */
    background: radial-gradient(circle, rgba(123, 44, 191, 0.42) 0%, rgba(0, 212, 255, 0.26) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Dark theme glow override for Inversión */
.theme-dark .section-investment::before {
    display: none;
}

/* Ensure content is above the glow effect */
.section-investment .container {
    position: relative;
    z-index: 1;
}

.investment-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 2px solid var(--s2u-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.investment-price {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.investment-label {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.investment-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--s2u-primary);
    margin-bottom: 0;
}

.investment-returns h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   GUARANTEE SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.guarantee-card {
    background-color: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.guarantee-card h3 {
    color: var(--s2u-primary);
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════
   CASES SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.case-card {
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.case-card h3 {
    color: var(--s2u-primary);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.case-problem,
.case-result {
    margin-bottom: var(--space-md);
}

.case-problem strong,
.case-result strong {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════════════ */

/* FAQ Tabs Navigation */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.faq-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.faq-tab:hover {
    border-color: var(--s2u-primary);
    color: var(--s2u-primary);
    transform: translateY(-2px);
}

.faq-tab.active {
    background: linear-gradient(135deg, var(--s2u-primary) 0%, var(--s2u-secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.theme-dark .faq-tab {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .faq-tab:hover {
    background: rgba(0, 212, 255, 0.15);
}

/* FAQ Blocks Container */
.faq-blocks-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-block {
    display: none;
}

.faq-block.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--s2u-primary);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    background-color: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--s2u-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--s2u-primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL CTA & BOOKING FORM
   ═══════════════════════════════════════════════════════════════════════ */

.section-final-cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

/* Light theme: same gradient as hero for final CTA */
body:not(.theme-dark) .section-final-cta {
    background: linear-gradient(135deg, 
        rgba(123, 44, 191, 0.36) 0%,     /* Morado */
        rgba(0, 212, 255, 0.24) 50%,     /* Cyan */
        rgba(123, 44, 191, 0.48) 100%    /* Morado más intenso */
    );
}

/* Glow effect for final CTA section (same as hero, right side) */
.section-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Light theme glow effect */
body:not(.theme-dark) .section-final-cta::before {
    background: radial-gradient(circle, rgba(123, 44, 191, 0.42) 0%, rgba(0, 212, 255, 0.26) 40%, transparent 70%);
}

/* Ensure content is above the glow effect */
.section-final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.final-cta-tagline {
    font-size: 1.35rem;
    margin-bottom: var(--space-xl);
}

/* ========================================
   IFRAME CONTACT FORM (Collapsible)
   ======================================== */
.iframe-contact-container {
    background-color: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    border: 2px solid var(--border-color);
}

.iframe-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--s2u-primary) 0%, var(--s2u-secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.iframe-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.iframe-toggle-btn:hover::before {
    left: 100%;
}

.iframe-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.6);
}

.iframe-toggle-btn:active,
.iframe-toggle-btn:focus {
    transform: translateY(0);
    outline: none;
}

/* Mobile tap feedback */
@media (hover: none) and (pointer: coarse) {
    .iframe-toggle-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

.btn-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 0.9rem;
    transition: transform var(--transition-base);
}

.iframe-toggle-btn.active .btn-arrow {
    transform: rotate(180deg);
}

.iframe-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.iframe-wrapper.active {
    max-height: 650px;
    margin-top: var(--space-lg);
}

.iframe-wrapper iframe {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.final-cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.footer {
    background-color: var(--vx-dark);
    color: var(--bg-secondary);
    padding: var(--space-xl) 0 var(--space-lg);
}

.theme-dark .footer {
    background-color: var(--bg-tertiary);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-branding {
    text-align: center;
}

.footer-ivc-link {
    display: inline-block;
    margin-bottom: var(--space-md);
    transition: opacity var(--transition-fast);
}

.footer-ivc-link:hover {
    opacity: 0.85;
}

.footer-ivc-logo {
    height: 78px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.theme-dark .footer-ivc-logo {
    opacity: 1;
}

.footer-by {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logos a {
    display: block;
    transition: opacity var(--transition-fast);
}

.footer-logos a:hover {
    opacity: 1;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.footer-logo-img:hover {
    opacity: 0.85;
}

.theme-dark .footer-logo-img {
    opacity: 1;
}

.footer-group-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin: 1rem auto 0.5rem;
    opacity: 1;
}

.theme-dark .footer-group-logo {
    opacity: 1;
}

.footer-separator {
    color: var(--s2u-primary);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

/* Text fallback for logos */
.footer-logo:first-child {
    color: var(--bg-primary);
}

.footer-logo:last-child {
    color: var(--s2u-primary);
}

.footer-group {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links h4,
.footer-social h4 {
    color: var(--s2u-primary);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--s2u-primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--s2u-primary);
    border-color: var(--s2u-primary);
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE FIRST
   ═══════════════════════════════════════════════════════════════════════ */

/* Mobile (default styles above are mobile-first) */

/* ========================================
   MOBILE + TABLET: Overlay Menu (≤1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Overlay behavior already defined globally in .nav.active */
    /* Just ensure hover effects for mobile */
    .nav-link:hover,
    .nav-link:focus {
        background-color: var(--color-primary-hover);
    }
    
    /* Header adjustments */
    .header-container {
        flex-wrap: wrap;
        padding: 0.5rem var(--container-padding);
        overflow: visible;
    }
    
    .header-controls {
        order: 3;
        width: 100%;
        justify-content: space-between;
        padding-top: var(--space-xs);
        border-top: 1px solid var(--border-color);
        overflow: visible;
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    /* Hide ecosystem logos on mobile or show them smaller */
    .header-ecosystem-logos {
        border-left: none;
        padding-left: 0;
        gap: 0.1rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .ecosystem-logo-link {
        padding: 0.1rem 0.2rem;
        flex-shrink: 0;
    }
    
    .ecosystem-logo-link .logo-img {
        height: 20px;
        width: auto;
    }
    
    .ecosystem-logo-link .logo-verumx-img {
        height: 22px;
        width: auto;
    }
    
    .ecosystem-logo-link .logo-smart2u-img {
        height: 18px;
        width: auto;
    }
    
    .collaborate-link {
        font-size: 0.75rem;
        white-space: nowrap;
        padding: 0 0.25rem;
    }
    
    .lang-switcher {
        flex-shrink: 0;
    }
    
    .theme-toggle {
        flex-shrink: 0;
    }
    
    .header-ecosystem-logos .logo-separator {
        font-size: 1rem;
    }
    
    /* Logo adjustments for mobile */
    .logo-ivc-img {
        height: 48px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-verumx-img {
        height: 36px;
    }
    
    .logo-smart2u-img {
        height: 28px;
    }
    
    .logo-separator {
        font-size: 1.25rem;
    }
}

/* ========================================
   DESKTOP: Horizontal Menu (≥1280px)
   ======================================== */
@media (min-width: 1280px) {
    /* Hide hamburger button */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Show desktop navigation menu */
    .desktop-nav {
        display: block;
        flex: 1;
    }
    
    .desktop-nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .desktop-nav-link {
        display: inline-block;
        padding: 0.5rem 0.9rem;
        border-radius: var(--radius-md);
        font-size: 0.85rem;
        font-weight: var(--font-weight-semibold);
        text-decoration: none;
        color: var(--text-primary);
        background: var(--bg-secondary);
        border: 2px solid transparent;
        transition: all var(--transition-base);
        white-space: nowrap;
        position: relative;
    }
    
    .desktop-nav-link:hover {
        color: var(--s2u-primary);
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 44, 191, 0.15) 100%);
        border-color: var(--s2u-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
    }
    
    .desktop-nav-link.desktop-nav-cta {
        background: linear-gradient(135deg, var(--s2u-primary) 0%, var(--s2u-secondary) 100%);
        color: white !important;
        font-weight: var(--font-weight-bold);
        padding: 0.55rem 1.2rem;
        box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
        border: 2px solid transparent;
    }
    
    .desktop-nav-link.desktop-nav-cta:hover {
        background: linear-gradient(135deg, var(--s2u-secondary) 0%, var(--s2u-primary) 100%);
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    /* Dark mode desktop nav */
    .theme-dark .desktop-nav-link {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }
    
    .theme-dark .desktop-nav-link:hover {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
        border-color: var(--s2u-primary);
    }
    
    /* Reset overlay nav to hidden on desktop (no longer needed) */
    .nav {
        display: none !important;
    }
    
    .nav.active {
        display: none !important;
    }
    
    /* Ensure header-container doesn't wrap or hide content */
    .header-container {
        flex-wrap: nowrap;
        overflow: visible;
    }
}

/* ========================================
   TABLET/LAPTOP: iPad Horizontal & Small Laptops (1024px-1279px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Allow header content to wrap if needed */
    .header-container {
        flex-wrap: wrap;
        row-gap: var(--space-sm);
        overflow: visible;
        max-width: 100%;
    }
    
    /* Logo IVC stays in order 1 (default) */
    .header-logo-main {
        order: 1;
    }
    
    /* Mobile toggle hidden in this range */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Controls block: language, theme, logos */
    .header-controls {
        order: 3;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Navigation list can wrap to second line if needed */
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    /* Reduce nav link padding for tighter spacing */
    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    /* Ecosystem logos: ensure they don't overflow */
    .header-ecosystem-logos {
        display: flex;
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .ecosystem-logo-link .logo-img {
        height: 32px;
    }
    
    .ecosystem-logo-link .logo-verumx-img {
        height: 34px;
    }
    
    .ecosystem-logo-link .logo-smart2u-img {
        height: 28px;
    }
}

@media (max-width: 1024px) {
    /* Footer logo adjustments */
    .footer-ivc-logo {
        height: 65px;
    }
    
    .footer-logo-img {
        height: 56px;
    }
    
    .footer-group-logo {
        height: 40px;
    }
    
    /* Reduce spacing on mobile */
    .section {
        padding: 0.75rem 0 !important;
    }
    
    .hero {
        padding: 1rem 0 !important;
    }
    
    /* Typography adjustments */
    html {
        font-size: 15px;
    }
    
    /* Grid adjustments */
    .deliverables-grid,
    .steps-container,
    .problems-grid,
    .benefits-grid,
    .cases-grid,
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    
    /* Button adjustments */
    .hero-ctas,
    .final-cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Video thumbnail adjustments */
    .video-thumbnail-no-controls {
        max-width: 100%;
    }
    
    /* Collaborate link adjustments */
    .collaborate-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Hide collaborate text on very small screens, show icon only */
    .collaborate-link span {
        display: inline;
    }
}

/* Small mobile: 360px and down */
@media (max-width: 360px) {
    :root {
        --container-padding: 1rem;
    }
    
    html {
        font-size: 14px;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .section {
        padding: var(--space-3xl) 0 var(--space-3xl);
    }
    
    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Better spacing for nav buttons on desktop */
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-link-cta {
        padding: 0.6rem 1.3rem;
    }
}

/* Large desktop: 1440px and up */
@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }
    
    html {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--s2u-primary);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .theme-toggle,
    .lang-switcher,
    .mobile-menu-toggle {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
