﻿/* ===================
   FUNCIONES PAGE STYLES
=================== */

/* ===================
   HERO SECTION FUNCIONES
=================== */
.functions-hero-section {
    min-height: 60vh;
    background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-functions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 20% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: functionsBackgroundMove 25s ease-in-out infinite;
}

@keyframes functionsBackgroundMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -20px) rotate(0.5deg);
    }

    66% {
        transform: translate(-15px, 15px) rotate(-0.5deg);
    }
}

.hero-content-functions {
    z-index: 10;
    position: relative;
}

.functions-hero-section .badge {
    background: rgba(99, 102, 241, 0.2) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ===================
   NAVEGACIÓN DE FUNCIONES
=================== */
.functions-navigation {
    background: var(--darker-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 76px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.function-nav-pills .nav-pills {
    --bs-nav-pills-border-radius: 0;
    --bs-nav-pills-link-active-color: #ffffff;
    --bs-nav-pills-link-active-bg: var(--primary-color);
    gap: 0.5rem;
}

.function-nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

    .function-nav-pills .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .function-nav-pills .nav-link.active {
        background: var(--gradient-primary) !important;
        border-color: var(--primary-color);
        color: #ffffff !important;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

    .function-nav-pills .nav-link i {
        font-size: 0.9rem;
    }

/* ===================
   CONTENIDO DE FUNCIONES
=================== */
.functions-content {
    background: var(--dark-bg) !important;
}

.tab-pane {
    min-height: 500px;
}

/* ===================
   MÓDULOS SHOWCASE
=================== */
.modules-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

    .module-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary-color);
        transform: translateX(10px);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    }

.module-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.module-info h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.module-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.module-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .module-stats .stat {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

/* ===================
   HIGHLIGHTS
=================== */
.feature-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

    .highlight-item i {
        font-size: 1.2rem;
    }

    .highlight-item span {
        font-size: 1rem;
    }

/* ===================
   CONFIGURACIÓN PANEL
=================== */
.configuration-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(15px);
}

    .configuration-panel h3 {
        color: #ffffff;
        font-weight: 700;
        position: relative;
    }

        .configuration-panel h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

.config-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .config-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
        transform: translateY(-5px);
    }

.config-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.config-item h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.config-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===================
   IA SHOWCASE
=================== */
.ia-showcase {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.before-after-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.before-image, .after-image {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

    .before-image img, .after-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0.75rem;
    }

.image-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.ia-label {
    background: rgba(99, 102, 241, 0.9) !important;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.generation-time {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

    .generation-time i {
        color: var(--primary-color);
    }

/* ===================
   IA FEATURES
=================== */
.ia-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ia-feature-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .ia-feature-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(10px);
    }

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

    .feature-badge.exclusive {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: white;
    }

    .feature-badge.beta {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

    .feature-badge.custom {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        color: white;
    }

.ia-feature-item h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ia-feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===================
   INTERIOR DESIGN MODULE
=================== */
.interior-design-module {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(15px);
}

.module-header h3 {
    color: #ffffff;
    font-weight: 700;
}

.module-header .lead {
    color: rgba(255, 255, 255, 0.8);
}

.design-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .process-step:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateX(10px);
    }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.step-content h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.process-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.design-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 300px;
}

    .preview-card h6 {
        color: #ffffff;
        font-weight: 600;
    }

.preview-image {
    margin: 1.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .preview-image p {
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }

.preview-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================
   PROJECT WORKFLOW
=================== */
.project-workflow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .workflow-step:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

    .step-icon.pending {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
    }

    .step-icon.approved {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .step-icon.cancelled {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

.step-info h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* ===================
   PROJECT DASHBOARD PREVIEW
=================== */
.project-dashboard-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dashboard-header h5 {
        color: #ffffff;
        font-weight: 600;
        margin: 0;
    }

.new-indicator .badge {
    animation: pulse 2s infinite;
}

.project-list {
    padding: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

    .project-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }

    .project-item.new {
        border-color: var(--primary-color);
        background: rgba(99, 102, 241, 0.1);
    }

.project-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .status-dot.pending {
        background: #fbbf24;
    }

    .status-dot.approved {
        background: #10b981;
    }

    .status-dot.cancelled {
        background: #ef4444;
    }

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.new-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    }
}

.project-details {
    flex: 1;
}

    .project-details h6 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

.project-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin: 0;
}

    .project-info i {
        color: var(--primary-color);
    }

.project-actions {
    display: flex;
    gap: 0.5rem;
}

    .project-actions .btn {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

/* ===================
   PROJECT FEATURES
=================== */
.project-features {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(15px);
}

    .project-features h3 {
        color: #ffffff;
        font-weight: 700;
        position: relative;
    }

        .project-features h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

.feature-card-mini {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card-mini:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
        transform: translateY(-5px);
    }

    .feature-card-mini i {
        font-size: 2rem;
        margin-bottom: 1rem;
        display: block;
    }

    .feature-card-mini h6 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .feature-card-mini p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0;
    }

/* ===================
   INTEGRATION SHOWCASE
=================== */
.integration-benefits {
    margin-bottom: 2rem;
}

.benefit-point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

    .benefit-point i {
        font-size: 1.2rem;
    }

.integration-showcase {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.showcase-tabs .nav-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.showcase-tabs .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .showcase-tabs .nav-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }

    .showcase-tabs .nav-link.active {
        color: var(--primary-color);
        background: rgba(99, 102, 241, 0.1);
        border-bottom: 2px solid var(--primary-color);
    }

.integration-preview {
    padding: 2rem;
}

.preview-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

    .integration-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

.integration-banner {
    background: var(--gradient-primary);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.banner-content h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.banner-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.integration-widget {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .integration-widget:hover {
        transform: scale(1.1);
    }

.code-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

    .code-preview code {
        color: #10b981;
        font-size: 0.85rem;
        word-break: break-all;
    }

/* ===================
   INTEGRATION TYPES
=================== */
.integration-types {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(15px);
}

    .integration-types h3 {
        color: #ffffff;
        font-weight: 700;
        position: relative;
    }

        .integration-types h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

.integration-type-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

    .integration-type-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary-color);
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    }

.type-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.integration-type-card h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.integration-type-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

    .type-features li {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1.5rem;
    }

        .type-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }

/* ===================
   USER BENEFITS
=================== */
.user-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .benefit-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(10px);
    }

    .benefit-item i {
        font-size: 1.5rem;
        margin-top: 0.25rem;
    }

    .benefit-item h6 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .benefit-item p {
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        line-height: 1.5;
    }

/* ===================
   ROLES SHOWCASE
=================== */
.roles-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .role-card:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateX(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.admin-role {
    border-left: 4px solid #ef4444;
}

.worker-role {
    border-left: 4px solid #3b82f6;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.admin-role .role-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.worker-role .role-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.role-info h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

    .role-badge.admin {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .role-badge.worker {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
        border: 1px solid rgba(59, 130, 246, 0.3);
    }

.role-permissions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

    .permission-item i {
        font-size: 1rem;
    }

/* ===================
   COMPANY CONFIG
=================== */
.company-config {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(15px);
}

    .company-config h3 {
        color: #ffffff;
        font-weight: 700;
        position: relative;
    }

        .company-config h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

.config-section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .config-section:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary-color);
        transform: translateY(-5px);
    }

    .config-section h5 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

        .config-section h5 i {
            font-size: 1.2rem;
        }

.config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .config-list li {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        position: relative;
        padding-left: 1.5rem;
        line-height: 1.5;
    }

        .config-list li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 1.2rem;
        }

/* ===================
   FORM SHARING SECTION
=================== */
.form-sharing {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

    .form-sharing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        z-index: 1;
    }

    .form-sharing .container {
        position: relative;
        z-index: 2;
    }

.sharing-methods {
    margin-top: 2rem;
}

.sharing-method {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

    .sharing-method:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

    .method-icon.whatsapp {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

    .method-icon.email {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .method-icon.link {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

.sharing-method h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sharing-method p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* ===================
   CTA BUTTONS
=================== */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* ===================
   RESPONSIVE DESIGN
=================== */

/* Tablets en horizontal */
@media (min-width: 768px) and (max-width: 1024px) {
    .functions-hero-section {
        min-height: 50vh;
        padding-top: 120px;
    }

    .function-nav-pills .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .module-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .image-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .divider {
        transform: rotate(90deg);
    }
}

/* Tablets y móviles */
@media (max-width: 768px) {
    .functions-hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

        .functions-hero-section h1 {
            font-size: 2.5rem;
            line-height: 1.2;
        }

    .functions-navigation {
        position: static;
        padding: 1rem 0;
    }

    .function-nav-pills .nav-pills {
        flex-direction: column;
        gap: 0.75rem;
    }

    .function-nav-pills .nav-link {
        text-align: center;
        padding: 1rem;
        width: 100%;
    }

    .modules-showcase {
        margin-top: 2rem;
    }

    .module-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .module-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .module-stats {
        justify-content: center;
    }

    .configuration-panel {
        padding: 2rem 1.5rem;
    }

    .config-item {
        margin-bottom: 1.5rem;
    }

    .image-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .divider {
        transform: rotate(90deg);
        margin: 0.5rem auto;
    }

    .before-image img, .after-image img {
        height: 150px;
    }

    .ia-features {
        gap: 1rem;
    }

    .ia-feature-item {
        padding: 1.25rem;
    }

    .design-process {
        gap: 0.75rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }

    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .project-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-actions {
        justify-content: center;
    }

    .roles-showcase {
        gap: 1rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    .role-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .role-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .integration-showcase .nav-tabs {
        flex-direction: column;
    }

    .showcase-tabs .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .integration-preview {
        padding: 1.5rem;
    }

    .preview-container {
        padding: 1.5rem;
        min-height: 100px;
    }

    .integration-type-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .type-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .benefit-point {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .sharing-method {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

        .cta-buttons .btn {
            width: 100%;
            max-width: 300px;
        }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .functions-hero-section {
        padding-top: 120px;
        padding-bottom: 1.5rem;
    }

        .functions-hero-section h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

        .functions-hero-section .lead {
            font-size: 1rem;
        }

    .function-nav-pills .nav-link {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .module-card {
        padding: 1rem;
    }

    .module-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .module-stats .stat {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .configuration-panel,
    .project-features,
    .integration-types,
    .company-config,
    .interior-design-module {
        padding: 1.5rem 1rem;
    }

    .config-item,
    .feature-card-mini,
    .integration-type-card,
    .config-section {
        padding: 1.25rem 1rem;
    }

    .config-icon,
    .type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .before-image img, .after-image img {
        height: 120px;
    }

    .ia-feature-item,
    .process-step,
    .workflow-step,
    .role-card {
        padding: 1rem;
    }

    .step-number,
    .step-icon,
    .role-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .project-item {
        padding: 1rem;
    }

    .project-details h6 {
        font-size: 0.85rem;
    }

    .project-info {
        font-size: 0.7rem;
    }

    .project-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .integration-preview {
        padding: 1rem;
    }

    .preview-container {
        padding: 1rem;
        min-height: 80px;
    }

    .code-preview {
        padding: 0.75rem;
    }

        .code-preview code {
            font-size: 0.75rem;
        }

    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .sharing-method {
        padding: 1.25rem 0.75rem;
    }
}

/* ===================
   UTILIDADES ADICIONALES
=================== */

/* Scrollbar para navegación horizontal en móvil */
@media (max-width: 767px) {
    .function-nav-pills .nav-pills {
        overflow-x: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }

        .function-nav-pills .nav-pills::-webkit-scrollbar {
            height: 4px;
        }

        .function-nav-pills .nav-pills::-webkit-scrollbar-track {
            background: transparent;
        }

        .function-nav-pills .nav-pills::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 2px;
        }

    .function-nav-pills .nav-link {
        white-space: nowrap;
        min-width: fit-content;
    }
}

/* Mejoras de accesibilidad */
.function-nav-pills .nav-link:focus,
.showcase-tabs .nav-link:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.show {
    animation: fadeInUp 0.5s ease-out;
}

/* Estados de hover mejorados para móvil */
@media (hover: hover) {
    .module-card:hover,
    .config-item:hover,
    .feature-card-mini:hover,
    .integration-type-card:hover,
    .config-section:hover,
    .ia-feature-item:hover,
    .process-step:hover,
    .workflow-step:hover,
    .role-card:hover,
    .benefit-item:hover,
    .sharing-method:hover {
        cursor: pointer;
    }
}

/* Preloader específico para funciones */
.functions-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .functions-loading.hide {
        opacity: 0;
        pointer-events: none;
    }

.functions-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dark mode específico para funciones */
@media (prefers-color-scheme: dark) {
    .functions-hero-section,
    .functions-content,
    .form-sharing {
        color-scheme: dark;
    }
}

/* ===================
   CSS FALTANTE PARA FUNCIONES.CSS
=================== */

/* ===================
   INTEGRATION SHOWCASE - ESTILOS FALTANTES
=================== */

/* Efectos de demostración para los ejemplos */
.integration-btn.demo-pulse {
    animation: demoPulse 1s ease-in-out 3;
}

@keyframes demoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    }
}

.integration-banner.demo-slide {
    animation: demoSlide 2s ease-in-out;
}

@keyframes demoSlide {
    0% {
        transform: translateX(-20px);
        opacity: 0.8;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.integration-widget.demo-bounce {
    animation: demoBounce 1.5s ease-in-out;
}

@keyframes demoBounce {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1) rotate(10deg);
    }

    50% {
        transform: scale(1.2) rotate(-5deg);
    }

    75% {
        transform: scale(1.05) rotate(3deg);
    }
}

/* Estados de loading para botones de acción */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

    .btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: btnSpin 1s linear infinite;
    }

@keyframes btnSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================
   BÚSQUEDA DE FUNCIONALIDADES
=================== */

.functions-search-container {
    margin-top: 2rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
}

.functions-search {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    border-radius: 2rem !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .functions-search:focus {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
        outline: none;
    }

    .functions-search::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

    .search-clear:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-result-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.result-tab {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.result-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

    .result-content mark {
        background: rgba(99, 102, 241, 0.3);
        color: var(--primary-color);
        padding: 0.1rem 0.2rem;
        border-radius: 0.25rem;
    }

.no-results {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ===================
   TOUR GUIADO
=================== */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.5), 0 0 0 8px rgba(99, 102, 241, 0.3) !important;
    border-radius: 0.5rem;
}

.tour-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 350px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    .tour-tooltip::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-bottom-color: rgba(15, 23, 42, 0.95);
    }

    .tour-tooltip.tour-tooltip-above::before {
        bottom: auto;
        top: 100%;
        border-bottom-color: transparent;
        border-top-color: rgba(15, 23, 42, 0.95);
    }

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .tour-header h6 {
        color: #ffffff;
        font-weight: 700;
        margin: 0;
    }

.tour-progress {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tour-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.tour-navigation {
    display: flex;
    gap: 0.5rem;
}

.tour-trigger {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

    .tour-trigger:hover {
        transform: scale(1.1);
    }

/* ===================
   MODULE TOOLTIP
=================== */

.module-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 250px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

    .module-tooltip h6 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .module-tooltip ul {
        list-style: none;
        padding: 0;
        margin: 0 0 1rem 0;
    }

    .module-tooltip li {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        position: relative;
        padding-left: 1rem;
    }

        .module-tooltip li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }

.tooltip-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

    .tooltip-stats span {
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .tooltip-stats i {
        color: var(--primary-color);
    }

/* ===================
   MODULE CONFIG MODAL
=================== */

.module-config-modal h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.config-options {
    margin-bottom: 2rem;
}

.config-group {
    margin-bottom: 1.5rem;
}

    .config-group label {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

    .config-group .form-range {
        margin-bottom: 0.5rem;
    }

.range-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.config-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .config-preview h6 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 1rem;
        text-align: center;
    }

.preview-calculation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

    .calc-line.total {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.75rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .calc-line strong {
        color: var(--primary-color);
        font-weight: 700;
    }

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

    .modal-actions .btn {
        flex: 1;
    }

/* ===================
   ROLE DETAILS MODAL
=================== */

.role-details-modal h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.permissions-list {
    margin-bottom: 2rem;
}

.permission-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

    .permission-detail.allowed {
        border-left: 4px solid #10b981;
    }

    .permission-detail.denied {
        border-left: 4px solid #ef4444;
        opacity: 0.7;
    }

    .permission-detail i {
        font-size: 1.1rem;
    }

    .permission-detail.allowed i {
        color: #10b981;
    }

    .permission-detail.denied i {
        color: #ef4444;
    }

    .permission-detail span {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

.role-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

    .role-actions .btn {
        flex: 1;
    }

/* ===================
   CONFIG PANEL MODAL
=================== */

.config-panel-modal h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.config-form {
    margin-bottom: 2rem;
}

    .config-form .form-group {
        margin-bottom: 1rem;
    }

    .config-form label {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

    .config-form .form-control {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-radius: 0.5rem;
        padding: 0.75rem;
    }

        .config-form .form-control:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
            outline: none;
        }

        .config-form .form-control::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

.config-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

    .config-actions .btn {
        flex: 1;
    }

/* ===================
   SHARING METHODS - EFECTOS ADICIONALES
=================== */

.method-clicked {
    animation: methodClick 0.6s ease-out;
}

@keyframes methodClick {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ===================
   PROJECT STATUS UPDATES
=================== */

.status-updated {
    animation: statusUpdate 2s ease-out;
}

@keyframes statusUpdate {
    0% {
        background: rgba(99, 102, 241, 0.2);
        transform: scale(1);
    }

    50% {
        background: rgba(99, 102, 241, 0.3);
        transform: scale(1.02);
    }

    100% {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
}

/* ===================
   ROLE HIGHLIGHT EFFECTS
=================== */

.role-highlight {
    animation: roleHighlight 1s ease-in-out;
}

@keyframes roleHighlight {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
    }
}

.permission-animate {
    animation: permissionShow 0.5s ease-out both;
}

@keyframes permissionShow {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================
   ANIMATE IN VIEW
=================== */

.animate-in-view {
    animation: animateInView 0.6s ease-out;
}

@keyframes animateInView {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================
   RESPONSIVE ADICIONAL
=================== */

@media (max-width: 576px) {
    .functions-search-container {
        margin: 1.5rem -1rem 0 -1rem;
        padding: 0 1rem;
    }

    .search-results {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .tour-tooltip {
        max-width: 280px;
        padding: 1rem;
    }

    .tour-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .tour-navigation {
        justify-content: center;
        width: 100%;
    }

    .modal-actions,
    .role-actions,
    .config-actions {
        flex-direction: column;
    }

    .module-tooltip {
        max-width: 200px;
        padding: 0.75rem;
    }
}

/* ===================
   SHOWCASE TABS - CORRECCIÓN
=================== */

.showcase-tabs .nav-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 0.75rem 0.75rem 0 0;
}

.showcase-tabs .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0;
}

    .showcase-tabs .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .showcase-tabs .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(99, 102, 241, 0.1) !important;
        border-bottom: 2px solid var(--primary-color);
    }

/* Contenido de los tabs */
.integration-showcase .tab-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0.75rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.integration-showcase .tab-pane {
    background: transparent !important;
}