/* Bloco de Funcionalidades de IA */
.funcionalidades-ia-section {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    width: 100%;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.funcionalidades-ia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(147, 197, 253, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(186, 230, 253, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.funcionalidades-ia-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.funcionalidades-ia-header {
    text-align: center;
    margin-bottom: 50px;
}

.funcionalidades-ia-header h2 {
    color: #1e293b;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.funcionalidades-ia-header p {
    color: #475569;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tabs Navigation */
.funcionalidades-ia-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.funcionalidades-ia-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    flex: 0 1 auto;
}

.funcionalidades-ia-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.funcionalidades-ia-tab.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    font-weight: 600;
}

/* Content Area */
.funcionalidades-ia-panels {
    position: relative;
    min-height: 500px;
}

.funcionalidades-ia-hint {
    position: absolute;
    top: -35px;
    right: 0;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    z-index: 1;
}

.funcionalidades-ia-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.funcionalidades-ia-panel.active {
    display: block;
}

.funcionalidades-ia-panel-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.funcionalidades-ia-panel-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.funcionalidades-ia-image {
    flex: 1;
    max-width: 600px;
}

.funcionalidades-ia-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.funcionalidades-ia-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.funcionalidades-ia-text {
    flex: 1;
}

.funcionalidades-ia-text h3 {
    color: #1e3a8a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.funcionalidades-ia-text p {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.funcionalidades-ia-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.funcionalidades-ia-text ul li {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}

.funcionalidades-ia-text ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 18px;
}

.funcionalidades-ia-cta {
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.funcionalidades-ia-cta:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .funcionalidades-ia-tabs {
        max-width: 100%;
        padding: 15px;
    }

    .funcionalidades-ia-tab {
        font-size: 12px;
        padding: 9px 14px;
    }
}

@media (max-width: 968px) {
    .funcionalidades-ia-section {
        padding: 40px 0;
    }

    .funcionalidades-ia-header h2 {
        font-size: 32px;
    }

    .funcionalidades-ia-header p {
        font-size: 16px;
    }

    .funcionalidades-ia-tabs {
        gap: 6px;
        padding: 12px;
    }

    .funcionalidades-ia-tab {
        padding: 8px 12px;
        font-size: 11px;
    }

    .funcionalidades-ia-panel-inner {
        flex-direction: column;
        gap: 30px;
    }

    .funcionalidades-ia-panel-content {
        padding: 30px 20px;
    }

    .funcionalidades-ia-text h3 {
        font-size: 26px;
    }

    .funcionalidades-ia-text p,
    .funcionalidades-ia-text ul li {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .funcionalidades-ia-header h2 {
        font-size: 28px;
    }

    .funcionalidades-ia-tab {
        flex: 1 1 calc(50% - 6px);
        font-size: 11px;
        padding: 8px 10px;
    }

    .funcionalidades-ia-text h3 {
        font-size: 22px;
    }

    .funcionalidades-ia-panels {
        min-height: 400px;
    }

    .funcionalidades-ia-hint {
        position: static;
        text-align: center;
        margin-bottom: 15px;
        font-size: 12px;
    }
}

/* Modal de Galeria de Imagens */
.ia-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.ia-gallery-modal.active {
    display: flex;
}

.ia-gallery-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Sidebar com miniaturas */
.ia-gallery-sidebar {
    width: 240px;
    background: rgba(248, 250, 252, 0.98);
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.ia-gallery-sidebar h3 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.ia-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.ia-gallery-thumb {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 8px;
    flex-shrink: 0;
}

.ia-gallery-thumb:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ia-gallery-thumb.active {
    border-color: #1e3a8a;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.ia-gallery-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.ia-gallery-thumb-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.3;
}

.ia-gallery-thumb.active .ia-gallery-thumb-title {
    color: #1e3a8a;
    font-weight: 600;
}

/* Área principal da imagem */
.ia-gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.ia-gallery-image-container {
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
}

.ia-gallery-image-container img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ia-gallery-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.ia-gallery-cta {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
    border: none;
}

.ia-gallery-cta:hover {
    background: #d97706;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    color: #ffffff;
}

/* Botão fechar */
.ia-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(248, 250, 252, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.ia-gallery-close:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Botões de navegação */
.ia-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(248, 250, 252, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ia-gallery-nav:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ia-gallery-nav.prev {
    left: 20px;
}

.ia-gallery-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 968px) {
    .ia-gallery-sidebar {
        width: 200px;
        padding: 15px;
    }

    .ia-gallery-sidebar h3 {
        font-size: 16px;
    }

    .ia-gallery-thumb-title {
        font-size: 12px;
    }

    .ia-gallery-main {
        padding: 20px;
    }

    .ia-gallery-title {
        font-size: 16px;
        bottom: -40px;
    }

    .ia-gallery-cta {
        font-size: 14px;
        padding: 14px 28px;
        bottom: -100px;
    }
}

@media (max-width: 640px) {
    .ia-gallery-container {
        flex-direction: column;
    }

    .ia-gallery-sidebar {
        width: 100%;
        max-height: 150px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }

    .ia-gallery-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }

    .ia-gallery-thumb {
        min-width: 120px;
        padding: 8px;
    }

    .ia-gallery-thumb-title {
        font-size: 11px;
    }

    .ia-gallery-main {
        padding: 15px;
    }

    .ia-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .ia-gallery-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    .ia-gallery-title {
        font-size: 14px;
        position: static;
        margin-top: 15px;
    }

    .ia-gallery-cta {
        position: static;
        transform: none;
        margin-top: 15px;
        font-size: 13px;
        padding: 12px 20px;
        display: inline-block;
    }
}
