/* VendAce Page Styles */

/* Import common styles from index.css logic (duplicated for independence) */

/* Mode-specific content transitions */
#section-future-enablement [data-mode] {
    transition: opacity 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.scroll-reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Background Glow */
.bg-glow {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.bg-glow-hero {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease;
}

[data-theme="light"] .bg-glow-hero {
    background: radial-gradient(circle, rgba(0, 128, 255, 0.15) 0%, rgba(241, 245, 249, 0) 70%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    z-index: 1;
}

.hero-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 128, 255, 0.15);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 128, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.15);
}

.badge-inline {
    display: none;
    margin-left: 0.5rem;
    margin-bottom: 0;
    vertical-align: middle;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-block;
    transition: opacity 0.3s ease;
    line-height: 0;
}

.app-store-badge:hover {
    opacity: 0.8;
}

.app-store-badge-img {
    display: block;
    height: 60px;
    width: auto;
}

.app-store-light {
    display: none !important;
}

[data-theme="light"] .app-store-dark {
    display: none !important;
}

[data-theme="light"] .app-store-light {
    display: block !important;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 128, 255, 0.3), transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .hero-glow {
    background: radial-gradient(circle at 50% 50%, rgba(0, 128, 255, 0.2), transparent 70%);
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

/* First section after hero - reduced top padding */
/* Default: when responsive section is NOT present or is hidden */
section.hero + section.section-padding {
    padding-top: 1rem;
}

/* When responsive section is present and visible, adjust spacing */
section.hero + .responsive-mode-toggle-section + section.section-padding {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
    #section-future-enablement.section-padding {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    .features-showcase {
        padding: 2rem 0;
    }
    .responsive-mode-toggle-section {
        padding: 1.5rem 0;
    }
    section.hero + section.section-padding,
    section.hero + .responsive-mode-toggle-section + section.section-padding {
        padding-top: 0.75rem;
    }
}

/* Desktop: responsive section visible; sticky row is not used (sidebar takes over when scrolled) */
@media (min-width: 1651px) {
    /* Reduce hero height on desktop so panel sits closer; extra top padding to match home (hero a bit lower) */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 7rem);
        padding-bottom: 2rem;
    }
    
    /* Slightly more space between hero and panel on desktop */
    .responsive-mode-toggle-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Sticky row only on narrow viewports - hide sticky state on desktop */
    .responsive-mode-toggle-section.sticky {
        position: relative !important;
        top: auto !important;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

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

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.2);
}

[data-theme="light"] .card:hover {
    border-color: rgba(0, 128, 255, 0.3);
    box-shadow: 0 20px 40px -5px rgba(0, 128, 255, 0.15);
}

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

/* Card with Color Band */
.feature-card.card-color-band {
    padding-top: 0;
    overflow: hidden;
}

.feature-card.card-color-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), rgba(0, 128, 255, 0.6));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1;
}

[data-theme="light"] .feature-card.card-color-band::before {
    background: linear-gradient(90deg, var(--primary), rgba(0, 128, 255, 0.4));
}

.feature-card.card-color-band .card-content {
    padding-top: 2.5rem;
}

.feature-card.card-color-band h3 {
    margin-top: 0;
}

/* Card with Iconic Image */
.feature-card.card-iconic {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-card.card-iconic .card-icon-container {
    width: 120px;
    height: 120px;
    margin: 2rem auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 128, 255, 0.1);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .feature-card.card-iconic .card-icon-container {
    background: rgba(0, 128, 255, 0.12);
    /* border: 2px solid rgba(0, 128, 255, 0.2); */
}

.feature-card.card-iconic .card-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    display: block;
}

.feature-card.card-iconic .card-content {
    width: 100%;
    padding-top: 0;
}

.feature-card.card-iconic h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.feature-card.card-iconic p {
    text-align: left;
}

/* Card with Image */
.feature-card.card-image {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.feature-card.card-image .card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.08), rgba(0, 128, 255, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-theme="light"] .feature-card.card-image .card-image-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
}

.feature-card.card-image .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card.card-image .card-image-container > div {
    opacity: 0.3;
}

[data-theme="light"] .feature-card.card-image .card-image-container > div {
    opacity: 0.6;
}

.feature-card.card-image .card-content {
    padding: 1.5rem 2.5rem 2.5rem;
}

.feature-card.card-image h3 {
    margin-top: 0;
}

/* Card with Horizontal Layout */
.feature-card.card-horizontal {
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.feature-card.card-horizontal .card-image-container {
    width: 180px;
    min-width: 180px;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.08), rgba(0, 128, 255, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

[data-theme="light"] .feature-card.card-horizontal .card-image-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
}

.feature-card.card-horizontal .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card.card-horizontal .card-image-container > div {
    opacity: 0.3;
    font-size: 3rem !important;
}

[data-theme="light"] .feature-card.card-horizontal .card-image-container > div {
    opacity: 0.6;
}

.feature-card.card-horizontal .card-content {
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card.card-horizontal h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    background: none;
    color: var(--text-main);
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.feature-card.card-color-band h3,
.feature-card.card-image h3 {
    display: block;
    flex-direction: column;
}

.feature-card.card-color-band .card-content,
.feature-card.card-image .card-content {
    width: 100%;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

[data-theme="light"] .feature-card.card-image .card-content h3 {
    color: var(--text-main);
}

[data-theme="light"] .feature-card.card-image .card-content p {
    color: rgba(0, 0, 0, 0.7);
}

/* Tabs Container - Unified Panel */
.tabs-container {
    margin-top: 3rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
}

[data-theme="light"] .tabs-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

[data-theme="light"] .tabs-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

[data-theme="light"] .tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.tab-btn:last-child {
    border-right: none;
}

[data-theme="light"] .tab-btn {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(0, 128, 255, 0.8));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

[data-theme="light"] .tab-btn:hover {
    background: rgba(0, 128, 255, 0.03);
}

.tab-btn.active {
    background: rgba(0, 128, 255, 0.15);
    color: var(--primary);
}

[data-theme="light"] .tab-btn.active {
    background: rgba(0, 128, 255, 0.08);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.75rem;
    line-height: 1;
    display: block;
}

.tab-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.tabs-content {
    position: relative;
    min-height: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    background: #0e1420;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

[data-theme="light"] .tabs-content {
    background: #f7f7f7;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    height: 100%;
}

.tab-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    height: 100%;
}

.tab-panel-content {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: stretch;
}

[data-theme="light"] .tab-panel-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.tab-panel-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-panel-content h3 .card-icon {
    font-size: 2rem;
}

.tab-panel-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.tab-panel-content p strong {
    color: var(--primary);
    font-weight: 600;
}

.tab-panel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2.5rem 3rem;
}

.tab-panel-image {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.tab-panel-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .tabs-container {
        border-radius: var(--radius-md);
    }
    
    .tabs-content {
        min-height: auto;
        height: auto;
    }
    
    .tab-panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tab-panel-image {
        height: 250px;
    }
    
    .tab-btn {
        padding: 1rem 0.75rem;
        flex: 0 0 auto;
        min-width: 100px;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    .tab-label {
        font-size: 0.75rem;
    }
    
    .tab-panel-content {
        padding: 2rem 1.5rem;
    }
    
    .tab-panel-content h3 {
        font-size: 1.5rem;
    }
    
    .tab-panel-content p {
        font-size: 1rem;
    }
}

/* Primer segmento en móvil: tabs 2x3, texto con menos padding, imagen abajo visible */
@media (max-width: 768px) {
    #section-future-enablement .tabs-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 0.5rem;
        overflow-x: visible;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    [data-theme="light"] #section-future-enablement .tabs-nav {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    #section-future-enablement .tabs-nav .tab-btn {
        flex: none;
        min-width: 0;
        width: 100%;
        border-right: none;
        padding: 0.75rem 0.5rem;
    }
    #section-future-enablement .tabs-nav .tab-btn:nth-child(3n) {
        border-right: none;
    }
    #section-future-enablement .tabs-nav .tab-label {
        white-space: normal;
        line-height: 1.2;
        font-size: 0.7rem;
    }
    #section-future-enablement .tab-panel-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 1.5rem;
        padding: 1.25rem 1rem;
    }
    #section-future-enablement .tab-panel-text {
        padding: 0;
    }
    #section-future-enablement .tab-panel-image {
        height: 260px;
        min-height: 260px;
        border-radius: var(--radius-md);
        order: 2;
    }
    #section-future-enablement .tab-panel-image img {
        min-height: 260px;
        object-fit: cover;
    }
    #section-future-enablement .tab-panel-content h3 {
        font-size: 1.35rem;
    }
    #section-future-enablement .tab-panel-content p {
        font-size: 0.95rem;
    }
    #section-future-enablement .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Cards: mismos tamaños de texto que el primer segmento en móvil */
    .feature-card h3 {
        font-size: 1.35rem;
    }
    .feature-card p {
        font-size: 0.95rem;
    }
}

/* Steps Grid (How it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.4);
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

[data-theme="light"] .step-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .step-card:hover {
    border-color: rgba(0, 128, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 128, 255, 0.08);
}

[data-theme="light"] .step-card p {
    color: var(--text-muted);
}

/* Take Control of Your Career: siempre una fila de 3 pasos */
#section-take-control .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Showcase (Tailored) */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.showcase-accordion-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] .accordion-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-item.active {
    border-color: rgba(0, 128, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.15);
}

[data-theme="light"] .accordion-item.active {
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .accordion-header:hover {
    background: rgba(0, 128, 255, 0.03);
}

.accordion-item.active .accordion-header {
    background: rgba(0, 128, 255, 0.05);
}

[data-theme="light"] .accordion-item.active .accordion-header {
    background: rgba(0, 128, 255, 0.08);
}

.accordion-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.accordion-item.active .accordion-icon {
    filter: grayscale(0);
}

.accordion-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.accordion-arrow {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: none;
    box-sizing: border-box;
}

.accordion-content.animating {
    transition: max-height 0.3s ease-in-out;
}

.accordion-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 0.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}


.showcase-image-accordion {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image-accordion .app-mockup {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.showcase-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.showcase-feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .showcase-feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.showcase-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), rgba(0, 128, 255, 0.6));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-feature-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .showcase-feature-card:hover {
    border-color: rgba(0, 128, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.1);
}

.showcase-feature-card:hover::before {
    transform: scaleY(1);
}

.showcase-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
    filter: grayscale(0.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.showcase-feature-card:hover .showcase-feature-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.showcase-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.showcase-feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.showcase-features {
    margin-bottom: 3rem;
}

.showcase-features li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.showcase-features strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

.app-mockup {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Plan Cards - Choose Your Plan */
.plans-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    padding: 0;
    overflow: hidden;
}

.plan-content {
    padding: 2.5rem;
    text-align: left;
}

.plan-content .plan-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-main);
}

.plan-content .plan-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.plan-content .plan-billing {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.plan-content .plan-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 1.25rem;
}

[data-theme="light"] .plan-content .plan-divider {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.plan-content .plan-plus-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1.1em;
    height: 1.1em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Feature Comparison Table */
.feature-comparison-wrap {
    margin: 2rem auto 0;
    max-width: 720px;
}

.feature-comparison-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem;
}

.feature-comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .feature-comparison-table-wrap {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

.feature-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.feature-comparison-table th,
.feature-comparison-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .feature-comparison-table th,
[data-theme="light"] .feature-comparison-table td {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.feature-comparison-table thead th {
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .feature-comparison-table thead th {
    background: rgba(0, 0, 0, 0.04);
}

.feature-comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .feature-comparison-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.feature-comparison-table td:first-child {
    color: var(--text-muted);
}

.feature-comparison-table th:nth-child(2),
.feature-comparison-table th:nth-child(3) {
    text-align: center;
}

.feature-comparison-table td:nth-child(2),
.feature-comparison-table td:nth-child(3) {
    text-align: center;
    width: 4rem;
}

.plan-check {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.plan-empty {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
}

.plan-image {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Box */
.cta-box {
    background: var(--gradient-primary);
    border-radius: 2rem;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 128, 255, 0.5);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
    position: relative;
    z-index: 1;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.42), rgba(0, 80, 180, 0.34));
    box-shadow: 0 20px 40px -10px rgba(0, 128, 255, 0.25), 0 0 0 1px rgba(0, 128, 255, 0.1);
    border: 1px solid rgba(0, 128, 255, 0.35);
}

[data-theme="light"] .cta-box h2 {
    color: var(--text-main);
}

[data-theme="light"] .cta-box p {
    color: var(--text-muted);
    opacity: 1;
}

[data-theme="light"] .cta-box .btn {
    background: white;
    color: rgb(0, 128, 255);
    border: 2px solid rgb(0, 128, 255);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.2);
}

[data-theme="light"] .cta-box .btn:hover {
    background: rgb(0, 128, 255);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 128, 255, 0.3);
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    transition: all 0.3s ease;
    resize: none;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1) !important;
}

.submit-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .showcase-layout,
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    #section-choose-plan .plans-row {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .showcase-features li {
        text-align: left;
    }
    
    .showcase-feature-card {
        padding: 1.5rem;
    }
    
    .showcase-feature-icon {
        font-size: 2rem;
    }
    
    .showcase-feature-card h3 {
        font-size: 1.125rem;
    }
    
    .showcase-feature-card p {
        font-size: 0.95rem;
    }
    
    .showcase-accordion-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .showcase-image-accordion {
        order: -1;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
    }
    
    .accordion-icon {
        font-size: 1.5rem;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 0 1.25rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .accordion-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* Hero mobile: chip inline a la derecha de "Selling", botones igual altura y centrados, imagen centrada */
    .hero-content {
        text-align: left;
    }
    .hero-title-row .badge-desktop {
        display: none;
    }
    .hero-title-row .badge-inline {
        display: inline-block;
    }
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .hero-buttons {
        justify-content: center;
        align-items: stretch;
    }
    .hero-buttons .hero-btn-test {
        display: none;
    }
    .hero-buttons .btn {
        min-height: 48px;
    }
    .hero-buttons .app-store-badge {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
    }
    .hero-buttons .app-store-badge-img {
        height: 46px;
        width: auto;
    }
    .hero-visual {
        justify-content: center;
    }
    .hero-image-wrapper {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-box p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-box .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    /* Secure. Scalable. Seamless.: mínimo 2x2, nunca 1 columna */
    #section-secure-scalable .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    /* The Training App for Your Entire Career: mínimo 2x2, nunca 1 columna */
    #section-training-app .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Menos padding en las cards para que quepa bien en tamaño pequeño */
    #section-secure-scalable .card,
    #section-training-app .card {
        padding: 1.25rem;
    }
    #section-secure-scalable .feature-card.card-color-band .card-content,
    #section-training-app .feature-card.card-color-band .card-content {
        padding-top: 1.25rem;
    }
    #section-secure-scalable .feature-card.card-iconic .card-icon-container,
    #section-training-app .feature-card.card-iconic .card-icon-container {
        margin: 1rem auto 0.75rem auto;
    }
    #section-secure-scalable .feature-card.card-iconic .card-icon-image,
    #section-training-app .feature-card.card-iconic .card-icon-image {
        padding: 1rem;
    }
    /* Choose Your Plan: menos padding en cards y tabla más compacta */
    #section-choose-plan .plan-content {
        padding: 1.25rem 1.5rem;
    }
    #section-choose-plan .plan-content .plan-title {
        font-size: 1.5rem;
    }
    #section-choose-plan .plan-features li {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
    #section-choose-plan .feature-comparison-table th,
    #section-choose-plan .feature-comparison-table td {
        padding: 0.5rem 0.85rem;
    }
    #section-choose-plan .feature-comparison-table {
        font-size: 0.875rem;
    }
    #section-choose-plan .feature-comparison-title {
        font-size: 1.25rem;
    }
    /* Take Control: reducir texto y padding para que siga en una fila */
    #section-take-control .step-card {
        padding: 1.25rem 1rem;
    }
    #section-take-control .step-card h3 {
        font-size: 1rem;
    }
    #section-take-control .step-number {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Features Showcase Section */
.features-showcase {
    padding: 5rem 0;
}

/* Responsive Mode Toggle Section - Always visible; animates to sticky row (narrow) or sidebar takes over (desktop) */
.responsive-mode-toggle-section {
    display: block;
    padding: 3rem 0;
    position: relative;
    z-index: 998;
    border-bottom: 1px solid transparent;
}

/* Placeholder for smooth height transition */
.responsive-mode-toggle-placeholder {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    pointer-events: none;
}

.responsive-mode-toggle-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 800px;
    margin: 0 auto;
}

[data-theme="light"] .responsive-mode-toggle-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.responsive-mode-toggle-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-vendace-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-vendace-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-mode-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.responsive-mode-toggle-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 128, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(17, 24, 39, 0.9);
}

[data-theme="light"] .responsive-mode-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 128, 255, 0.05);
}

[data-theme="light"] .responsive-mode-toggle-section.sticky {
    background: rgba(255, 255, 255, 0.95);
}

.responsive-mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 128, 255, 0.15);
}

[data-theme="light"] .responsive-mode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

.responsive-mode-toggle-btn.active {
    background: rgba(0, 128, 255, 0.15);
    border-color: rgba(0, 128, 255, 0.3);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.15);
}

[data-theme="light"] .responsive-mode-toggle-btn.active {
    background: rgba(0, 128, 255, 0.1);
    border-color: rgba(0, 128, 255, 0.3);
    color: var(--primary);
}

/* Sticky state when scrolling - override scroll-reveal so row is always visible */
.responsive-mode-toggle-section.sticky {
    opacity: 1 !important;
    transform: none !important;
    position: fixed;
    top: var(--header-actual-height, var(--header-height));
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.75rem 0;
    margin: 0;
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

[data-theme="light"] .responsive-mode-toggle-section.sticky {
    background-color: rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.responsive-mode-toggle-section.sticky .responsive-mode-toggle-panel {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
}

.responsive-mode-toggle-section.sticky .responsive-mode-toggle-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    text-align: center;
    width: 100%;
}

.responsive-mode-toggle-section.sticky .responsive-vendace-description {
    display: none;
}

.responsive-mode-toggle-section.sticky .responsive-vendace-title {
    display: block;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.responsive-mode-toggle-section.sticky .responsive-mode-buttons {
    gap: 0.75rem;
    display: flex;
}

.responsive-mode-toggle-section.sticky .responsive-mode-toggle-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-mode-toggle-section.sticky .responsive-vendace-title {
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-mode-toggle-section.sticky .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mode Toggle - Always floating on the left */
.features-mode-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    position: fixed !important;
    top: calc(var(--header-height) + 1.5rem);
    left: 1.5rem;
    z-index: 999;
    padding: 0;
    margin-bottom: 0;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vendace-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.features-mode-toggle.visible .vendace-menu-title {
    opacity: 1;
    transform: translateX(0);
}

.features-mode-toggle.visible {
    opacity: 1;
    transform: translateX(0);
}

.features-mode-toggle .mode-toggle-btn,
.features-mode-toggle .nav-sub-buttons {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.features-mode-toggle.visible .mode-toggle-btn,
.features-mode-toggle.visible .nav-sub-buttons {
    opacity: 1;
    transform: translateX(0);
}

.features-mode-toggle .mode-toggle-btn:nth-of-type(1) {
    transition-delay: 0.1s;
}

.features-mode-toggle .mode-toggle-btn:nth-of-type(2) {
    transition-delay: 0.15s;
}

.features-mode-toggle .nav-sub-buttons {
    transition-delay: 0.2s;
}

.mode-toggle-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    margin-right: 0;
    width: auto;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 128, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-card-rgb, 20, 20, 30), 0.9);
}

.mode-toggle-btn:first-child {
    border-radius: var(--radius-md);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-toggle-btn:last-of-type {
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Divider between mode buttons and sub-buttons */
.nav-sub-buttons::before {
    content: '';
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: block;
}

[data-theme="light"] .nav-sub-buttons::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

[data-theme="light"] .mode-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 128, 255, 0.05);
}

.mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 128, 255, 0.15);
}

/* Navigation Sub-buttons */
.nav-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0;
    width: 100%;
    max-width: 200px;
    align-self: stretch;
}

#nav-sub-buttons-companies {
    display: flex;
}

#nav-sub-buttons-individuals {
    display: none;
}

.nav-sub-btn {
    background: rgba(var(--bg-card-rgb, 20, 20, 30), 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    text-align: left;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    margin-left: 0.5rem;
    position: relative;
}

.nav-sub-btn::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .nav-sub-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-sub-btn::before {
    background: rgba(0, 0, 0, 0.1);
}

.nav-sub-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateX(2px);
    border-color: rgba(0, 128, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 128, 255, 0.08);
    opacity: 1;
}

.nav-sub-btn:hover::before {
    opacity: 1;
}

[data-theme="light"] .nav-sub-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 128, 255, 0.15);
}

.nav-sub-btn.active {
    background: rgba(0, 128, 255, 0.12);
    color: var(--primary);
    border-color: rgba(0, 128, 255, 0.3);
    box-shadow: 0 1px 4px rgba(0, 128, 255, 0.15), 0 0 10px rgba(0, 128, 255, 0.1);
    font-weight: 500;
    opacity: 1;
}

.nav-sub-btn.active::before {
    opacity: 1;
    background: rgba(0, 128, 255, 0.5);
}

[data-theme="light"] .nav-sub-btn.active {
    background: rgba(0, 128, 255, 0.08);
    border-color: rgba(0, 128, 255, 0.25);
}

.mode-toggle-btn.active {
    background: rgba(0, 128, 255, 0.15);
    border-color: rgba(0, 128, 255, 0.3);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.15);
}

[data-theme="light"] .mode-toggle-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
}

[data-theme="light"] .mode-toggle-btn:first-child {
    border-right: none;
}

[data-theme="light"] .mode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mode-toggle-btn.active {
    background: rgba(0, 128, 255, 0.1);
    border-color: rgba(0, 128, 255, 0.3);
    color: var(--primary);
}

.features-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-theme="light"] .features-panel {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.features-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 600px;
}

.features-panel .container {
    padding: 0;
}

.features-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: stretch;
    align-items: stretch;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .features-nav {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-nav-item {
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-main);
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem 0 1.25rem;
    position: relative;
}

.feature-nav-item:first-child {
    border-top-left-radius: var(--radius-lg);
}

.feature-nav-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--radius-lg);
}

[data-theme="light"] .feature-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-nav-item [data-mode] {
    transition: opacity 0.3s ease;
}

.feature-nav-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

[data-theme="light"] .feature-nav-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.feature-nav-item.active {
    background: rgba(0, 128, 255, 0.15);
    color: var(--primary);
    position: relative;
}

.feature-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

[data-theme="light"] .feature-nav-item.active {
    background: rgba(0, 128, 255, 0.1);
}

[data-theme="light"] .feature-nav-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
}

[data-theme="light"] .feature-nav-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .feature-nav-item.active {
    background: rgba(0, 128, 255, 0.1);
    border-color: rgba(0, 128, 255, 0.3);
    color: var(--primary);
}

.features-images {
    position: relative;
    min-height: 500px;
    padding: 0;
    height: 100%;
    background: rgb(14, 39, 71);
}

[data-theme="light"] .features-images {
    background: white;
}

.feature-image-item {
    position: absolute;
    inset: 0;
    transform: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.feature-image-item.active {
    opacity: 1;
    pointer-events: auto;
}

.features-text {
    position: relative;
    min-height: 500px;
    padding: 3rem 4rem 3rem 4rem;
    background: rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .features-text {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

.feature-text-item {
    position: absolute;
    inset: 0;
    transform: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 100%;
    pointer-events: none;
    padding: inherit;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text-item.active {
    opacity: 1;
    pointer-events: auto;
}


.feature-image-wrapper {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.4s ease;
    object-fit: contain;
    object-position: center center;
}

.feature-image:hover {
    transform: scale(1.02);
}

/* Discover VendAce - Vista móvil: page view con puntitos, título + info, popup */
.discover-mobile-header {
    display: none;
}
.discover-mobile-dots {
    display: none;
}
.discover-mobile-arrow {
    display: none;
}
.discover-info-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}
.discover-info-popup.active {
    display: flex;
}
.discover-info-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}
.discover-info-popup-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .discover-info-popup-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.discover-info-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.discover-info-popup-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: var(--text-main);
}
.discover-info-popup-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Desktop: los wrappers del carrusel no deben limitar la columna de imágenes */
@media (min-width: 769px) {
    #section-discover-vendace .discover-mobile-carousel-outer,
    #section-discover-vendace .discover-mobile-carousel-wrap {
        width: 100%;
        max-width: none;
        margin: 0;
        height: 100%;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    #section-discover-vendace .container {
        padding: 0 1rem;
    }
    #section-discover-vendace .discover-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem 0 0.75rem 0;
        margin-bottom: 0;
    }
    .discover-mobile-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
        flex: 1;
        min-width: 0;
    }
    .discover-mobile-info-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
        color: var(--primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .discover-mobile-info-icon {
        display: block;
        color: var(--primary);
    }
    [data-theme="light"] .discover-mobile-info-btn {
        border-color: rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.05);
    }
    #section-discover-vendace .features-nav,
    #section-discover-vendace .features-text {
        display: none !important;
    }
    #section-discover-vendace .features-showcase-grid {
        display: block;
        gap: 0;
    }
    #section-discover-vendace .discover-mobile-carousel-outer {
        position: relative;
        width: 100%;
    }
    #section-discover-vendace .discover-mobile-carousel-wrap {
        position: relative;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    #section-discover-vendace .discover-mobile-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    /* Mientras está pulsado: coloreado (JS añade .discover-mobile-arrow-pressed en pointerdown y quita en pointerup/leave) */
    #section-discover-vendace .discover-mobile-arrow:active,
    #section-discover-vendace .discover-mobile-arrow.discover-mobile-arrow-pressed {
        background: rgba(0, 128, 255, 0.5);
        border-color: var(--primary);
        color: #fff;
    }
    [data-theme="light"] #section-discover-vendace .discover-mobile-arrow:active,
    [data-theme="light"] #section-discover-vendace .discover-mobile-arrow.discover-mobile-arrow-pressed {
        background: rgba(0, 128, 255, 0.15);
        border-color: var(--primary);
        color: var(--primary);
    }
    #section-discover-vendace .discover-mobile-arrow:focus {
        outline: none;
    }
    /* En escritorio: hover azul; en táctil el foco no debe dejar el botón azul (blur() + este reset) */
    @media (hover: hover) {
        #section-discover-vendace .discover-mobile-arrow:hover {
            background: rgba(0, 128, 255, 0.5);
            border-color: var(--primary);
        }
        [data-theme="light"] #section-discover-vendace .discover-mobile-arrow:hover {
            background: rgba(0, 128, 255, 0.15);
            border-color: var(--primary);
            color: var(--primary);
        }
    }
    #section-discover-vendace .discover-mobile-prev {
        left: 0.5rem;
    }
    #section-discover-vendace .discover-mobile-next {
        right: 0.5rem;
    }
    [data-theme="light"] #section-discover-vendace .discover-mobile-arrow {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.2);
        color: #333;
    }
    #section-discover-vendace .features-images {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        min-height: 320px;
        height: auto;
        padding: 0;
        gap: 0;
        scrollbar-width: none;
    }
    #section-discover-vendace .features-images::-webkit-scrollbar {
        display: none;
    }
    #section-discover-vendace .feature-image-item {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
        height: auto;
        min-height: 320px;
    }
    #section-discover-vendace .feature-image-wrapper {
        width: 100%;
        height: 100%;
        min-height: 320px;
        border-radius: var(--radius-md);
    }
    #section-discover-vendace .feature-image-item.active {
        opacity: 1;
    }
    #section-discover-vendace .feature-image-item {
        opacity: 1;
        pointer-events: auto;
    }
    #section-discover-vendace .discover-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    .discover-mobile-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .discover-mobile-dot.active {
        background: var(--primary);
    }
    [data-theme="light"] .discover-mobile-dot {
        background: rgba(0, 0, 0, 0.25);
    }
    [data-theme="light"] .discover-mobile-dot.active {
        background: var(--primary);
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.image-modal-close:hover {
    transform: scale(1.2);
    opacity: 1;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.feature-title [data-mode] {
    transition: opacity 0.3s ease;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    transition: opacity 0.3s ease;
}

/* Companies Sections */
.companies-sections {
    transition: opacity 0.3s ease;
}

.companies-sections section {
    transition: opacity 0.3s ease;
}

/* Individuals Sections */
.individuals-sections {
    transition: opacity 0.3s ease;
}

.individuals-sections section {
    transition: opacity 0.3s ease;
}

.vendace-difference-content {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.vendace-difference-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vendace-difference-content .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vendace-difference-content .card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Venn Diagram Layout */
.venn-section-panel {
    margin-top: 3rem;
    padding: 3rem !important;
    overflow: visible !important;
    min-height: auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    -webkit-tap-highlight-color: transparent;
}

.venn-section-panel:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .venn-section-panel {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .venn-section-panel:hover {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.venn-section-panel * {
    position: relative;
    z-index: 2;
}

.venn-diagram-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 450px;
}

.venn-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    align-self: center;
}

.venn-diagram {
    position: relative;
    width: 500px;
    height: 450px;
    margin: 0;
    z-index: 3;
    align-self: center;
    -webkit-tap-highlight-color: transparent;
}

.venn-circle {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.venn-circle .venn-label {
    transition: all 0.3s ease;
}

.venn-diagram.venn-hover-circle-1 .venn-circle-1 {
    border-width: 4px;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 128, 255, 0.4), 0 0 90px rgba(0, 128, 255, 0.2);
    background: rgba(0, 128, 255, 0.15);
    transform: scale(1.02);
}

.venn-diagram.venn-hover-circle-2 .venn-circle-2 {
    border-width: 4px;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 128, 255, 0.4), 0 0 90px rgba(0, 128, 255, 0.2);
    background: rgba(0, 128, 255, 0.15);
    transform: scale(1.02);
}

.venn-diagram.venn-hover-circle-3 .venn-circle-3 {
    border-width: 4px;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 128, 255, 0.4), 0 0 90px rgba(0, 128, 255, 0.2);
    background: rgba(0, 128, 255, 0.15);
}

.venn-diagram.venn-hover-circle-1 .venn-circle-1 .venn-label,
.venn-diagram.venn-hover-circle-2 .venn-circle-2 .venn-label {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.8);
    transform: scale(1.1);
}

.venn-diagram.venn-hover-circle-3 .venn-circle-3 .venn-label {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.venn-diagram.venn-hover-intersection .venn-circle-1,
.venn-diagram.venn-hover-intersection .venn-circle-2,
.venn-diagram.venn-hover-intersection .venn-circle-3 {
    border-width: 3px;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.6), 0 0 50px rgba(0, 128, 255, 0.3);
    background: rgba(0, 128, 255, 0.1);
}

.venn-intersection {
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.venn-diagram.venn-hover-intersection .venn-intersection-text {
    text-shadow: 0 0 20px rgba(0, 128, 255, 1), 0 0 40px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 128, 255, 0.4);
    transform: scale(1.1);
    transition: all 0.3s ease;
    color: var(--primary) !important;
    font-weight: 800;
}

.venn-circle-1 {
    width: 250px;
    height: 250px;
    top: 30px;
    left: 60px;
}

.venn-circle-2 {
    width: 250px;
    height: 250px;
    top: 30px;
    right: 60px;
}

.venn-circle-3 {
    width: 250px;
    height: 250px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.venn-diagram.venn-hover-circle-3 .venn-circle-3 {
    border-width: 4px;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 128, 255, 0.4), 0 0 90px rgba(0, 128, 255, 0.2);
    background: rgba(0, 128, 255, 0.15);
    transform: translateX(-50%) scale(1.02);
}

.venn-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    padding: 0.5rem;
    position: absolute;
    z-index: 2;
    line-height: 1.2;
}

.venn-circle-1 .venn-label {
    top: 60px;
    left: 20px;
    width: 100px;
}

.venn-circle-2 .venn-label {
    top: 60px;
    right: 20px;
    width: 100px;
}

.venn-circle-3 .venn-label {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

.venn-intersection {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.venn-intersection-text {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    display: block;
    padding: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
    transition: all 0.3s ease;
}

/* Cuando hay hover en un círculo, el texto central vuelve a color normal */
.venn-diagram.venn-hover-circle-1 .venn-intersection-text,
.venn-diagram.venn-hover-circle-2 .venn-intersection-text,
.venn-diagram.venn-hover-circle-3 .venn-intersection-text {
    color: var(--text-main);
    text-shadow: none;
}

.venn-diagram.venn-hover-intersection .venn-intersection-text {
    text-shadow: 0 0 20px rgba(0, 128, 255, 0.8), 0 0 30px rgba(0, 128, 255, 0.4);
    transform: scale(1.05);
}

.venn-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.venn-text-panel h3,
.venn-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.venn-text-panel p,
.venn-panel-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Entre 769px y 1165px: reducir diagrama y texto para que no se salga; no aplicar en móvil (768px) */
@media (max-width: 1165px) and (min-width: 769px) {
    #section-educators-companies .venn-section-panel,
    #section-educators-individuals .venn-section-panel {
        padding: 2rem !important;
    }
    #section-educators-companies .venn-diagram-layout,
    #section-educators-individuals .venn-diagram-layout {
        gap: 2rem;
        min-height: 370px;
    }
    /* Contenedor del diagrama fijo: no se redimensiona con el texto */
    #section-educators-companies .venn-diagram-container,
    #section-educators-individuals .venn-diagram-container {
        flex: 0 0 410px;
        min-width: 410px;
        max-width: 410px;
        width: 410px;
        height: 369px;
        min-height: 369px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    /* Diagrama y círculos: dimensiones fijas, el cambio de texto no los afecta */
    #section-educators-companies .venn-diagram,
    #section-educators-individuals .venn-diagram {
        flex: none;
        width: 500px !important;
        height: 450px !important;
        min-width: 500px;
        min-height: 450px;
        transform: scale(0.82);
        transform-origin: center center;
        box-sizing: border-box;
    }
    #section-educators-companies .venn-text-panel,
    #section-educators-individuals .venn-text-panel {
        max-width: 380px;
        flex: 1 1 auto;
        min-width: 0;
    }
    #section-educators-companies .venn-panel-title,
    #section-educators-individuals .venn-panel-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    #section-educators-companies .venn-panel-text,
    #section-educators-individuals .venn-panel-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Venn layout intermedio solo desde 768px; hasta entonces se mantiene desktop (educators tiene su propio bloque 768px) */
@media (max-width: 768px) {
    .venn-section-panel {
        padding: 2rem;
    }
    .venn-diagram-layout {
        flex-direction: column;
        gap: 3rem;
    }
    .venn-diagram-container {
        min-height: 350px;
    }
    .venn-diagram {
        width: 100%;
        max-width: 400px;
        height: 320px;
    }
    .venn-circle-1 {
        width: 160px;
        height: 160px;
        top: 20px;
        left: 50px;
    }
    .venn-circle-2 {
        width: 160px;
        height: 160px;
        top: 20px;
        right: 50px;
    }
    .venn-circle-3 {
        width: 160px;
        height: 160px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .venn-circle-1 .venn-label {
        top: 40px;
        left: 10px;
        width: 80px;
    }
    .venn-circle-2 .venn-label {
        top: 40px;
        right: 10px;
        width: 80px;
    }
    .venn-circle-3 .venn-label {
        bottom: 40px;
        width: 100px;
    }
    .venn-intersection-text {
        font-size: 0.85rem;
    }
    .venn-label {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
}

@media (max-width: 768px) {
    #section-educators-companies .venn-section-panel,
    #section-educators-individuals .venn-section-panel {
        margin-top: 1.5rem;
        padding: 1.5rem 1rem !important;
    }
    #section-educators-companies .venn-diagram-layout,
    #section-educators-individuals .venn-diagram-layout {
        flex-direction: column;
        gap: 1.5rem;
        min-height: 0;
    }
    /* Mismo layout que desktop: contenedor con proporción 500/450 y diagrama escalado (0.72 = círculos más grandes) */
    #section-educators-companies .venn-diagram-container,
    #section-educators-individuals .venn-diagram-container {
        width: 100%;
        max-width: 360px;
        height: 324px;
        margin: 0 auto;
        min-height: 0;
        position: relative;
        overflow: hidden;
    }
    #section-educators-companies .venn-diagram,
    #section-educators-individuals .venn-diagram {
        width: 500px;
        height: 450px;
        position: absolute;
        left: 50%;
        top: 0;
        margin: 0;
        transform: translateX(-50%) scale(0.72);
        transform-origin: center top;
    }
    /* Círculos un poco más separados del centro (solo móvil) */
    #section-educators-companies .venn-circle-1,
    #section-educators-individuals .venn-circle-1 {
        width: 250px !important;
        height: 250px !important;
        top: 15px !important;
        left: 12px !important;
        right: auto !important;
    }
    #section-educators-companies .venn-circle-2,
    #section-educators-individuals .venn-circle-2 {
        width: 250px !important;
        height: 250px !important;
        top: 15px !important;
        right: 12px !important;
        left: auto !important;
    }
    #section-educators-companies .venn-circle-3,
    #section-educators-individuals .venn-circle-3 {
        width: 250px !important;
        height: 250px !important;
        bottom: 62px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    /* Eton y Oxford: un poco más abajo y un poco más hacia el centro */
    #section-educators-companies .venn-circle-1 .venn-label,
    #section-educators-individuals .venn-circle-1 .venn-label {
        top: 58px !important;
        left: 24px !important;
        right: auto !important;
        bottom: auto !important;
        width: 100px !important;
        transform: none !important;
        text-align: left !important;
        font-size: 1.05rem;
        line-height: 1.2;
    }
    #section-educators-companies .venn-circle-2 .venn-label,
    #section-educators-individuals .venn-circle-2 .venn-label {
        top: 58px !important;
        right: 24px !important;
        left: auto !important;
        bottom: auto !important;
        width: 100px !important;
        transform: none !important;
        text-align: right !important;
        font-size: 1.05rem;
        line-height: 1.2;
    }
    #section-educators-companies .venn-circle-3 .venn-label,
    #section-educators-individuals .venn-circle-3 .venn-label {
        bottom: 40px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        width: 120px !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        font-size: 1.05rem;
        line-height: 1.2;
    }
    #section-educators-companies .venn-diagram.venn-hover-circle-3 .venn-circle-3 .venn-label,
    #section-educators-individuals .venn-diagram.venn-hover-circle-3 .venn-circle-3 .venn-label {
        transform: translateX(-50%) scale(1.1) !important;
    }
    #section-educators-companies .venn-intersection,
    #section-educators-individuals .venn-intersection {
        top: 42% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    #section-educators-companies .venn-intersection-text,
    #section-educators-individuals .venn-intersection-text {
        font-size: 1.1rem;
        padding: 0.4rem;
        line-height: 1.2;
        text-align: center !important;
    }
    #section-educators-companies .venn-text-panel,
    #section-educators-individuals .venn-text-panel {
        max-width: 100%;
    }
    #section-educators-companies .venn-panel-title,
    #section-educators-individuals .venn-panel-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    #section-educators-companies .venn-panel-text,
    #section-educators-individuals .venn-panel-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Narrow viewport: hide sidebar, use sticky row when scrolling */
@media (max-width: 1650px) {
    /* Hide the fixed sidebar menu - panel animates to sticky row instead */
    .features-mode-toggle {
        display: none !important;
    }
    
    /* Hide sub-buttons in narrow mode - they only appear in desktop sidebar */
    .nav-sub-buttons {
        display: none !important;
    }
}

/* Discover VendAce y features: diseño móvil solo desde 768px; entre 993px y 768px se mantiene desktop */
@media (max-width: 768px) {
    .features-showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .feature-nav-item {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .features-images {
        min-height: auto;
        position: relative;
        padding: 0;
    }
    
    .feature-image-item {
        position: relative;
        top: auto;
        transform: none;
    }
    
    .features-text {
        min-height: auto;
        position: relative;
        padding: 2rem;
        background: transparent;
    }
    
    .features-images {
        padding: 0;
    }
    
    .feature-text-item {
        position: relative;
        top: auto;
        transform: none;
    }
    
    .feature-image-wrapper {
        max-width: 100%;
    }
    
    .feature-title {
        margin-bottom: 1.5rem;
    }
    
    .responsive-vendace-title {
        font-size: 2.5rem;
    }
    
    .responsive-mode-toggle-btn {
        min-width: 150px;
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Muy estrecho (ej. iPhone 14): reducir row para respetar paddings */
@media (max-width: 400px) {
    .responsive-mode-toggle-section {
        padding: 2rem 0;
    }
    .responsive-mode-toggle-panel {
        padding: 2rem 1.25rem;
    }
    .responsive-mode-toggle-content {
        gap: 1.5rem;
    }
    .responsive-vendace-title {
        font-size: 2rem;
    }
    .responsive-vendace-description {
        font-size: 1rem;
    }
    .responsive-mode-buttons {
        gap: 0.75rem;
    }
    .responsive-mode-toggle-btn {
        min-width: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Móvil estrecho: panel expandido (punto inicial) más pequeño para que la animación a sticky no desborde */
@media (max-width: 480px) {
    .responsive-mode-toggle-section .responsive-vendace-title {
        font-size: 1.35rem;
    }
    .responsive-mode-toggle-section .responsive-mode-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 0;
    }
    .responsive-mode-toggle-section .responsive-mode-toggle-content {
        gap: 0.75rem;
    }
    /* Mastery for Every Stage: formato carta con imagen superior (como card-image) */
    #section-mastery-journey .feature-card.card-horizontal {
        flex-direction: column;
    }
    #section-mastery-journey .feature-card.card-horizontal .card-image-container {
        width: 100%;
        min-width: 0;
        height: 180px;
        min-height: 180px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    #section-mastery-journey .feature-card.card-horizontal .card-content {
        padding: 1.5rem 2.5rem 2.5rem;
    }
    /* Take Control: aún más pequeño para una fila en pantallas muy estrechas */
    #section-take-control .steps-grid {
        gap: 0.75rem;
    }
    #section-take-control .step-card {
        padding: 0.75rem 0.5rem;
    }
    #section-take-control .step-card h3 {
        font-size: 0.8rem;
    }
    #section-take-control .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Sticky row en móvil estrecho: título más pequeño + padding lateral visible */
@media (max-width: 480px) {
    .responsive-mode-toggle-section.sticky .responsive-vendace-title {
        font-size: 1rem;
    }
    .responsive-mode-toggle-section.sticky .responsive-mode-toggle-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
        min-width: 0;
    }
    .responsive-mode-toggle-section.sticky .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .responsive-mode-toggle-section.sticky .responsive-mode-toggle-content {
        gap: 0.75rem;
    }
}

/* Split Image Card */
.split-image-card {
    display: flex;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
}

[data-theme="light"] .split-image-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.split-image-section {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.split-image-section {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.split-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.split-image-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: blur(12px);
    -webkit-filter: blur(12px);
}

.split-image-section:first-child .split-image-blur {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0) 100%);
}

.split-image-section:last-child .split-image-blur {
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0) 100%);
}

.split-image-section:hover .split-image-bg,
.split-image-section:hover .split-image-blur {
    transform: scale(1.12);
}

.split-image-card:hover .split-image-section:not(:hover) .split-image-bg,
.split-image-card:hover .split-image-section:not(:hover) .split-image-blur {
    transform: scale(1.05);
}

.split-image-section:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.split-image-section:last-child::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.split-image-section:hover {
    width: 60%;
}

.split-image-card:hover .split-image-section:not(:hover) {
    width: 40%;
}

.split-image-content {
    position: absolute;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 3;
}

.split-image-section:first-child .split-image-content {
    top: 35%;
    transform: translateY(-50%);
}

.split-image-section:last-child .split-image-content {
    top: 65%;
    transform: translateY(-50%);
}

.split-image-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.split-image-content p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.05rem;
}


/* A partir de 850px: dos cards apiladas, imagen a ancho completo con texto por encima */
@media (max-width: 850px) {
    #section-private-secure .split-image-card {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }
    #section-private-secure .split-image-section {
        width: 100%;
        height: 320px;
        min-height: 320px;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    #section-private-secure .split-image-section:first-child,
    #section-private-secure .split-image-section:last-child {
        width: 100%;
    }
    #section-private-secure .split-image-card:hover .split-image-section:not(:hover),
    #section-private-secure .split-image-section:hover {
        width: 100%;
    }
    #section-private-secure .split-image-section:first-child .split-image-content,
    #section-private-secure .split-image-section:last-child .split-image-content {
        top: auto;
        bottom: 0;
        transform: none;
        padding: 2rem 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    }
}
