/* ============================================
   CORTEX S-3 SECTION - PÁGINA OPERAÇÕES
   ============================================ */

/* Container principal */
.cortex-s3-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Grid desktop: 3 colunas (instruções | botão | instruções) */
.cortex-s3-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

/* Instruções laterais */
.cortex-s3-instructions-left {
    text-align: right;
    opacity: 0.7;
}

.cortex-s3-instructions-right {
    text-align: left;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .cortex-s3-container {
        max-width: 100%;
        padding: 40px 0 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Reduzir espaço do título */
    .cortex-s3-container > div:first-child {
        margin-bottom: 12px !important;
        width: 100%;
        padding: 0 16px;
    }

    /* Mobile: Esconder instruções laterais */
    .cortex-s3-instructions-left,
    .cortex-s3-instructions-right {
        display: none;
    }

    /* Mobile: Row pai com full viewport width */
    .cortex-s3-grid {
        grid-template-columns: 1fr;
        gap: 0;
        display: block;
        /* Ocupa 100% da largura da viewport */
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
    }

    /* Container do botão centralizado perfeitamente */
    #cortexButtonContainer {
        margin: 30px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 0 0 50px;
        background: transparent;
    }

    /* Botão maior no mobile - mantém todos os efeitos */
    #cortexButtonContainer .cortex-chat-trigger {
        width: 220px;
        height: 220px;
    }

    /* Reduzir distância da dica de uso */
    .cortex-s3-container > div:last-child {
        margin-top: 5px !important;
        width: 100%;
        padding: 0 16px;
    }
}
